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

[Solved] Iterate Page Controls Using Reflection

1 Answer 97 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tom Jaspering
Top achievements
Rank 1
Tom Jaspering asked on 09 Feb 2010, 07:43 AM
Hi,

I have a RadTreeView control which I have bound to the directory sctructure of a website very similar to Telerik's demo under Application Scenarios / Directory Structure found here. Anyway, what I'd like to do is when a user selects a page from the tree, I want to iterate through that page (not navigate to it) using reflection and list out the various controls available on the selected page in order to perform various administrative purposes. This is easy enough for User Controls as I can just use LoadControl to gain access to an instance of a user control and then reflect through it to pull out control references. But an actual  page is much different. I can't seem to find a way to either get a reference to the page in question or reflect the page. I think the nature of Partial Page Classes has something to do with it.

Anyway, if anyone has run into a similar issue, I'd love to hear how you worked around it.

Thanks in advance,
Tom

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Feb 2010, 08:57 AM
Hi Tom,

We are not aware how this can be done for pages. Our only suggestion is to split the page in user controls and load them instead.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Tom Jaspering
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or