GridView

4 posts, 0 answers
  1. Miroslav
    Miroslav avatar
    5 posts
    Member since:
    May 2012

    Posted 14 Nov 2012 Link to this post

    Hello
    I have a grid which is bound to a collection .The rows have expanders inside of a cell .By default all are expanded.If i colapse them manually in the UI. And then i ad a new Item to the collection some times the other rows which were colapsed expand themselves.
    The new one is expanded as it should be.
    Any ideas on a solution would be helpful.
  2. Yoan
    Admin
    Yoan avatar
    1215 posts

    Posted 16 Nov 2012 Link to this post

    Hi Miroslav,

    Actually, this would be the expected behaviour since  UI Virtualization  is turned on by default. It enables RadGridView to reuse the existing containers over and over again for different data items, instead of creating new ones.

    Generally, it is not recommended to use GridViewToggleRowDetailsColumn if you have set RowDetailsVisibilityMode to Visible (if this is your case). An option for you would be to turn-off the virtualization. Although this is also not recommended, if you have small amount of data it may work for you.

    Kind regards,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Miroslav
    Miroslav avatar
    5 posts
    Member since:
    May 2012

    Posted 19 Nov 2012 Link to this post

    I tried setting the  EnableColumnVirtualization="False" EnableRowVirtualization="False" but this didnt fix the problem.if i add on item which has to be expanded the last colapsed one is automatically expanded.
                                      
  4. Yoan
    Admin
    Yoan avatar
    1215 posts

    Posted 21 Nov 2012 Link to this post

    Hello Miroslav,

    Actually, it is not very clear what may cause the problem. So, may I ask you some questions about your scenario? Do you use GridViewToggleRowDetailsColumn? How do you implement it?

    It would be great if you can share some code snippets with us. In that way we will be able to understand the problem better.

    Regards,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top