Forums

Forums / Developing Portals / How to reorder rows in GridView?

How to reorder rows in GridView?

Thread is closed for posting
2 posts, 1 answered
  1. quanganh
    quanganh avatar
    33 posts
    Registered:
    16 Jun 2016
    24 Jun 2016
    Link to this post
    Hi everyone,

    I see that the telerik:RadGrid don't have method to reorder rows in javascript. They just have method to reorderColumns
    (like var masterTableView = sender.get_masterTableView(); masterTableView.reorderColumns("ProductID", "CategoryID"); )

    So is it possible to reorder rows in gridview?

    Many thanks,
    Quang Anh

  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    28 Jun 2016 in reply to quanganh
    Link to this post
    Hello Quang,

    Normally row reordering is done through sorting in the Fetch XML of the grid. However I have dug up a forum post on the Telerik website that says you can use a OnRowDrop event to achieve this effect. Built-in row reordering is not supported by the RadGrid.

    Regards,
    Clinton
2 posts, 1 answered