This is a migrated thread and some comments may be shown as answers.

Use Dynamic Data -> Group, Sort & Filter Broken

2 Answers 71 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 13 May 2009, 04:26 PM
First let me say I think Telerik RadGridView is by far and away the best Silverlight grid control - I have spent all day looking at a number of alternatives. Our company is close to putting in an order for this control but we are stuck on the following issue :

I am using C1.Silverlight.Data.dll to get dynamic data table :

m_dt = new DataTable();
m_dt.Columns.Add("ID", typeof(int));
m_dt.Columns.Add("FirstName", typeof(string));
m_dt.Columns.Add("LastName", typeof(string));
m_dt.Columns.Add("Active", typeof(bool));
for (int i = 0; i < 10; i++)
{
    m_dt.Rows.Add(i, "First " + i.ToString(), "Last " + i.ToString(), i % 2 == 0);
}

I bind to RadGridView using :
grid4.ItemsSource = m_dt.DefaultView;
Telerik.Windows.Controls.GridViewDataColumn col1 = new Telerik.Windows.Controls.GridViewDataColumn();
col1.HeaderText = "ID";
col1.DataMemberPath = "ID";
//col1.IsFilterable = true;
//col1.IsSortable = true;
//col1.IsGroupable = true;
grid4.Columns.Add(col1);
// same for other 3 cols

However now I can't sort, grid or filter in the grid.

I don't see why Telerik can't handle this because ALL the other Siverlight grids I tested this code worked straight out of the box (standard MS datagrid, Infragistics, DevExpress AgDataGrid). On each of these, I did not to specify the column names afterwards.

Consequently, this is not a Silverlight limitation but a current limitation with the RadGridView.

I want to use Telerik because I believe your component offers the best performance and most powerful feature-set (grouping, sorting, filtering).

Please help.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 14 May 2009, 05:35 AM
Hello Alex,

Can you send us an example where this can be reproduced? As far as I know the grid will work in such cases. I've developed even small DataTable class and the grid can be grouped, filtered and sorted without problems.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex
Top achievements
Rank 1
answered on 14 May 2009, 01:03 PM
Works great. Thanks.
Tags
Menu
Asked by
Alex
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Alex
Top achievements
Rank 1
Share this question
or