Use Dynamic Data -> Group, Sort & Filter Broken

3 posts, 1 answers
  1. Alex
    Alex avatar
    8 posts
    Member since:
    May 2009

    Posted 13 May 2009 Link to this post

    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;
    // 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. Answer
    Vlad avatar
    11100 posts

    Posted 14 May 2009 Link to this post

    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,
    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.
  3. DevCraft banner
  4. Alex
    Alex avatar
    8 posts
    Member since:
    May 2009

    Posted 14 May 2009 Link to this post

    Works great. Thanks.
Back to Top