How can I prevent RadGrid from refreshing when child TreeView node is expanded/collapsed?

6 posts, 0 answers
  1. Carlos
    Carlos avatar
    11 posts
    Member since:
    Mar 2013

    Posted 18 Mar 2013 Link to this post

    I have an ajaxified RadGrid with a RadTreeList in the <NestedViewTemplate>.  The data for both comes back as it should.  Expanding an item on the RadGrid works fine and reveals the RadTreeList with the correct number of rows/data; however, when attempting to expand one of the nodes on the RadTreeList, the RadGrid collapses.  On re-expanding the RadGrid, the RadTreeList node is displayed expanded.  How may I prevent the RadGrid from collapsing during the RadTreeList node expansion/collapse?

    Thanks for the help!
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 18 Mar 2013 Link to this post

    Hi Carlos,

    If you would like to store the currently loaded data on the server to prevent a 'full refresh', you would want to adjust the viewState (ASP.NET ViewState). There is a good demo which is on the Telerik website all about saving the viewstate of RadControls on the server-side. Try changing this setting and hopefully it will prevent the RadTreeList from refreshing the RadGrid.

    Good luck,
    Master Chief
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Carlos
    Carlos avatar
    11 posts
    Member since:
    Mar 2013

    Posted 18 Mar 2013 Link to this post

    Thanks for the reply!  I'll take a look at it.

    Just thinking, though, shouldn't there be some other way to accomplish what I want?  I don't have this problem at all using a RadGrid within a <NestedViewTemplate> RadGrid.  That works perfectly fine.  Why is the radtreelist different? 
  5. Carlos
    Carlos avatar
    11 posts
    Member since:
    Mar 2013

    Posted 19 Mar 2013 Link to this post

    any thoughts.. anyone?
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 21 Mar 2013 Link to this post

    Hi Carlos,

    To be able to assist you about this problem we need to replicate it first. I suggest you to open a formal support ticket and send us a simple project which demonstrates your logic. We will examine it in details and will get back to you with additional information.

    Regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Carlos
    Carlos avatar
    11 posts
    Member since:
    Mar 2013

    Posted 21 Mar 2013 Link to this post

    Thanks for the reply Pavlina!

    Before I open a ticket, I would like to ask if what I am trying to do is even possible?  A radgrid that has a nested radtreelist with X number of tiers.

    Appreciate the help!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017