Hi!
I have a GridView that I want to pre-filter with checkboxes.
I have read a blog about this here
http://blogs.telerik.com/xamlteam/posts/09-11-27/pre-filtering-radgridview-for-silverlight.aspx
with the following code:
The problem is that I get an error saying that "Cannot create an instance of the abstract class or interface "Telerik.Windows.Controls.GridView.ColumnFilterDescriptor".
Its pretty old code so I guess this has changed, but how do I do to make it work now?
I use the last Silverlight 4 version.
Regards,
Håkan
I have a GridView that I want to pre-filter with checkboxes.
I have read a blog about this here
http://blogs.telerik.com/xamlteam/posts/09-11-27/pre-filtering-radgridview-for-silverlight.aspx
with the following code:
ColumnFilterDescriptor countryColumnFilter =
new
ColumnFilterDescriptor((IDataFieldDescriptor)
this
.playersGrid.Columns[2]);
countryColumnFilter.DistinctFilter.DistinctValues.Add(
"England"
);
countryColumnFilter.DistinctFilter.DistinctValues.Add(
"Spain"
);
this
.playersGrid.FilterDescriptors.Add(countryColumnFilter);
The problem is that I get an error saying that "Cannot create an instance of the abstract class or interface "Telerik.Windows.Controls.GridView.ColumnFilterDescriptor".
Its pretty old code so I guess this has changed, but how do I do to make it work now?
I use the last Silverlight 4 version.
Regards,
Håkan