telerik:RadGrid Dynamic column sorting not working

2 posts, 0 answers
  1. harry
    harry avatar
    1 posts
    Member since:
    Jul 2016

    Posted 06 Jul Link to this post

    Hi,

    We are facing problem for column sorting in RadGrid. We are adding columns dynamically to grid. and values are set in Itemdata bound event.

    can anyone help and provide suggestion on this? so that grid column sorting works on these dynamic generated columns once the data is loaded or bound in Itemdatabound.

     

    Thanks

     

     

     

  2. umesh
    umesh avatar
    3 posts
    Member since:
    Jul 2016

    Posted 07 Jul in reply to harry Link to this post

    have you called rebind() method at end of sorting?

     Dim srtExp As New Telerik.WebControls.GridSortExpression
            srtExp.FieldName =fieldname  'columnname
            srtExp.SetSortOrder(assending/decending)
            Me.EmpGrid.MasterTableView.SortExpressions.AddSortExpression(srtExp)
            Me.EmpGrid.MasterTableView.Rebind()

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top