Hierarchical mode in RadgridView

3 posts, 0 answers
  1. Hossein
    Hossein avatar
    11 posts
    Member since:
    Jul 2013

    Posted 26 Jan 2014 Link to this post

    Hi ,

    I have a RadGridView that shows some data in Hierarchical mode.

    I have a problem in this scenario:

    First. I expand more data in GridView(so, it shows child of node and child of child and ......).
    Second. I use RadGridView,Rows.Add() function to add 1 row. The row successfully added, but the added row go bottom of gridview and the vertical Scroll lost trust value.

    So, I should "up down" and "Up down" the vertical scroll to  get correct value.

    any suggestion please?!
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3282 posts

    Posted 29 Jan 2014 Link to this post

    Hello Hossein,

    Thank you for contacting Telerik Support.

    If I understand your requirement correctly, you are trying to prevent the newly added row automatic selection, which results in scrollbar value changes. In order to keep the current scrollbar value when adding a new row, it is necessary to set MasterTemplate.SelectLastAddedRow property to false:
    radGridView1.MasterTemplate.SelectLastAddedRow = false;

    If it is not the exact requirement, please specify in details the expected behavior. Thus, we would be able to assist you further.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Hossein
    Hossein avatar
    11 posts
    Member since:
    Jul 2013

    Posted 01 Feb 2014 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks for your response Desislava.
    It is ok. 
Back to Top