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

How to support multiple views for databinded objects

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 03 Dec 2010, 11:32 AM
Hello, I am testing your components (ASP.AJAX) in order to find out if they are suited to my need for a project of mine. 

I have a software design issue:

In my web application, I populate a RadTreeView from a dataset, when I click on a node it should display the corresponding data. My problem is that the data are different for some nodes. There are two cases, either I need to load a static web page to a container in my site, or to display some databinded controls. The databinded controls are different and they depend on the kind of the node clicked. I have all the necessary info available, but I am not sure what object to use as a container and how to add the databinded controlls.

What I 'm thinking of doing is to have an RadXMLhttpPanel in which I can load a static page by placing it in a <Div runat="server"> using the innerHTML method (i read the static page as text using the HttpRequest object of .net).
Now regarding the databinded controls, I would prefer to have them grouped somewhere (preferably to an external entity like an .aspx page, but I believe that if i use the above mechanism to load the page with the controls then it would be difficult to do the data binding). 

My other option is to have more that one RadXMLHttpPanels (one for external pages, and one for each set of databinded controlls) and each time to hide all except the one i need. 

Do you have in mind any other (better) way to do this ? 

Thank you for your time,
Thomas Sarmis.

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 03 Dec 2010, 12:17 PM
I think I found a solution using Web User Controls to encapsulate the data-binded controls i need.
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or