This is a migrated thread and some comments may be shown as answers.

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

5 Answers 153 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 18 Mar 2013, 01:51 PM
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!

5 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 18 Mar 2013, 04:12 PM
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
0
Carlos
Top achievements
Rank 1
answered on 18 Mar 2013, 05:27 PM
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? 
0
Carlos
Top achievements
Rank 1
answered on 19 Mar 2013, 01:47 PM
any thoughts.. anyone?
0
Pavlina
Telerik team
answered on 21 Mar 2013, 04:04 PM
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.
0
Carlos
Top achievements
Rank 1
answered on 21 Mar 2013, 04:43 PM
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!
Tags
TreeList
Asked by
Carlos
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Carlos
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or