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

Expandable list with UserControls

3 Answers 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
EET Group
Top achievements
Rank 2
EET Group asked on 06 Jan 2008, 04:41 PM
I am trying to create a simple list of product categories, which should expand showing a user control when clicked. It's rather important that the user controls are loaded dynamically (on demand with AJAX), since they are a bit "heavy".

The user control that should be displayed is basically a GridView with some post-back features, like sorting, add to basket etc. which should of course also still work.

I have seen at a couple of controls, like Grid and Menu, but they doesn't seem to support AJAX loading of the sub-levels, and I don't know if it's the way to go.

I'm a bit new to the Telerik controls, so I'd appreciate if anyone could point me in the right direction, to a control which can accommodate this (simple?) feature set.

Thanks in advance,
Ole Michelsen

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 07 Jan 2008, 07:26 AM
Hello Buffer,

Thank you for contacting us and for the interesting question.

Some of RadControls actually have an internal AJAX mode (like the Grid) but all the controls can easily be ajaxified through the RadAjax controls, which basically convert all the postbacks into AJAX requests. Reading your description, it looks like you need something like a treeview load-on-demand, which feature you can find available here:

http://www.telerik.com/demos/aspnet/TreeView/Examples/Programming/ClientLoadOnDemandDirectory/DefaultCS.aspx

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
EET Group
Top achievements
Rank 2
answered on 07 Jan 2008, 03:00 PM
Thank you for your help - I only have one apparent problem:

I want the root nodes to be standard text (one template), and the first level nodes to be a template containing a User Control. All my data are loaded dynamically, so I can't use the template definitions in the ASPX code.

However, I can't find any attributes on the nodes other than TemplateControl - and this is not the way to assign specific templates to specific nodes I think?

Thanks again for any answer...
0
Nikolay
Telerik team
answered on 08 Jan 2008, 11:57 AM
Hi Buffer,

Thanks for the provided details. I am afraid that RadTreeView would not be usable for what you are up to. Quite frank, I think that the only RadControl that would mostly allow you to achieve your task is RadGrid. I suggest that you check the examples under the Ajax section in the RadGrid's QSF:

Ajax RadGrid

Hope this helps.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
EET Group
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
EET Group
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or