var
masterFilter = (CompositeFilterDescription)(this.RadGridView1.FilterDescription);
var subjectFilter = (FieldFilterDescription)masterFilter.FilterDescriptions[0];
subjectFilter.Values.Add(
"Cats");
this is the error
Error 1 'Telerik.Windows.Data.FieldFilterDescription' does not contain a definition for 'Values' and no extension method 'Values' accepting a first argument of type 'Telerik.Windows.Data.FieldFilterDescription' could be found (are you missing a using directive or an assembly reference?)
Dim
seriesMapping2 As New SeriesMapping
seriesMapping2.SeriesDefinition =
New BarSeriesDefinition
Dim itemMapping2 As New ItemMapping
itemMapping2.DataPointMember = DataPointMember.YValue
itemMapping2.FieldName =
"YValue"
seriesMapping2.ItemMappings.Add(itemMapping2)
RadChart1.SeriesMappings.Add(seriesMapping2)
When i execute the chart, the X axis labels values are 1,2,3, .... and i would like to put here the values of "XValue" column on my datatable. How can i do it?
Also, If I try to put string values to "YValue" column in mi datatable, the chart fails, that is, only numeric values can be put as source of a serie?.
Thanks a lot.
| Group 1 | 140.30 |
| Group 2 | 5.00 |
| Group 3 | 81.70 |
| private void SetupGridView() | |
| { | |
| myGridView.Columns.Add(new GridViewDataColumn() | |
| { | |
| HeaderText = "Name", | |
| UniqueName = "Name", | |
| DataMemberBinding = new Binding("Name") | |
| }); | |
| myGridView.Columns.Add(new GridViewDataColumn() | |
| { | |
| HeaderText = "Address Line 1", | |
| UniqueName = "Address.Line1", | |
| DataMemberBinding = new Binding("Address.Line1"), | |
| IsFilterable = true | |
| }); | |
| } |
Any help is greatly appreciated.
Glen