This is a migrated thread and some comments may be shown as answers.
Column Series - how to set CategoryMemberName using MVC helper
2 Answers 8 Views
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 25 Sep 2013, 11:44 PM
Hi
I'm trying to set the CategoryMemberName in MVC using the chart builder - ChartSeriesFactory. I see in the API docs there is an overload of column that is supposed to take 4 string arguments, yet I am getting compilation errors that no overload of column takes 4 strings. How can I set the CategoryField on my series to a string using MVC helper?

from the api docs

Column(System.String,System.String,System.String,System.String)
Defines bound bar series.
Parameters
valueMemberName System.String  The name of the value member.
colorMemberName System.String  The name of the color member.
categoryMemberName System.String The name of the category member.
noteTextMemberName System.String The name of the note text memberFrom <http://docs.kendoui.com/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/ChartSeriesFactory>

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 27 Sep 2013, 11:07 AM
Hi,

I've tested with the latest version:

.Series(series => {
     series.Column("Val", null, "Cat", null).Name("Nuclear");
})


This seems to work fine.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dan
Top achievements
Rank 1
answered on 27 Sep 2013, 04:59 PM
Thanks!
I've just upgraded to 2013.2.918.340 and that fixed it. I was previously using 2013.1.319.340

Dan
Asked by
Dan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Dan
Top achievements
Rank 1
Share this question
or