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.
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.