Sorting and data change

10 posts, 1 answers
  1. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 26 Sep 2012 Link to this post

    Hello,
    if a have a GridView with a name column that contains: A, B and C and the grid view is sorted by this column, when I change the name of the second row to Z, the grid view displays A, Z, C.
    Why the data is not moved to the last row in this case?
    Patrick
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Sep 2012 Link to this post

    Hi,

     Can you point us on some of our demos where this can be reproduced? I've tried to reproduce such behavior on this demo however everything worked as expected. 

    Greetings,
    Vlad
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 27 Sep 2012 Link to this post

    Hi Vlad,
    on the demo:
    1. Sort the grid view by Company Name.
    2. Select Berglunds on the grid view.
    3. On the left, add a Z in front of the company name.
    4. Press Tab to change the focus and commit the change.
    The name on the grid view in now ZBerglunds, but its position has not changed: the order is not correct now.
    Patrick
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Sep 2012 Link to this post

    Hello Patrick,

     Tab will not commit the change - Enter will. 

    All the best,
    Vlad
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  5. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 27 Sep 2012 Link to this post

    Vlad,
    if I press Enter after the change of the name, the name is not updated in the grid view.
    Patrick
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Sep 2012 Link to this post

    Hi,

     Please check this screencast for more info:
    http://screencast.com/t/rW5ZlLqM3X

    All the best,
    Vlad
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  7. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 27 Sep 2012 Link to this post

    Vlad,
    I'm not changing the value on the grid view, but on the data displayed at the left.
    Patrick
  8. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Sep 2012 Link to this post

    Hi Patrick,

     When you change your data outside of the grid the grid will reapply grouping, sorting, filtering, etc. only on CollectionChanged not on PropertyChanged.

    All the best,
    Vlad
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  9. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 27 Sep 2012 Link to this post

    Vlad,
    it's really annoying because, in my application, edition is not made at the grid view level, but the grid view remains in a tab and another tab is opened for edition.
    It is not possible to edit directly in the grid view, because some data are very big (more than 100 of properties) and contains data that can't be edited in a grid view (documents, photos, ...). In addition, there can be, in some cases, more than one list of items to update.
    It would be much more simpler if the grid view correctly manages the changes in the properties of a data item.
    Patrick
  10. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Sep 2012 Link to this post

    Hello,

     I believe you should check this demo to know more how to force the grid to update sorting on a property value change outside of RadGridView. 

    Greetings,
    Vlad
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top