Posted 19 Jun 2008
Link to this post
I'm using the RadControls for ASP.NET, specifically the MultiPage control and the tree view.
I'm trying to load a MultiPage control at runtime with a variable number of pageviews (about 5) with a tree view in each pageview. Before the code runs the multipage control has one pageview control that is empty. My code first creats a treeview in memory and adds the treeview to the existing pageviews controls collection. Then the code runs through a loop to generate a new pageview in memory, generate a tree view in memory, add the tree view to the new pageview contols collection, and finally add the pageview to the multipage controls collection. In theory this should work. But in my case it's not. When the page displays I don't see the control at all. By looking at the html source I can see that the MultiPage did render along with the original pageview. There is also a tree view inside the pageview as expected (except I can't see it). But the strange part is that the other pageviews that were created at runtime are not there. I'm guessing there is a property I'm missing to show the first pageview that is hidden in the html. But I can't figure out why the other four pageview controls are not getting added to the collection.