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

Fill form after clicking Treeview

5 Answers 81 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 03 Aug 2011, 05:04 PM
Hi,

How can I fill a web form with values from the database, based on the selected item of a RadTreeView (Telerik.Web.UI - ASP.NET AJAX ) ... must I do a Server Request of the page or can I do it with AJAX?

Tks, rgds
BSC 

5 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 04 Aug 2011, 04:58 PM
Hello Bruno,

 You can handle the NodeClick server event of RadTreeView and in the handler to query your data source and populate the Form. The clicked node you can get from the event arguments (e.Node).

I hope this helps.

Regards,
Nikolay Tsenkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Bruno
Top achievements
Rank 1
answered on 05 Aug 2011, 12:12 PM
Perfect! Thanks...

Now I just need to keep the node selected because it seems that the Treeview is somehow rendered again, and the selection is lost (or not visible). Can you please help me?

0
Nikolay Tsenkov
Telerik team
answered on 10 Aug 2011, 01:40 PM
Hi Bruno,

If it's the same page the TreeView should persist its state.
Perhaps you put the TreeView on a MasterPage?
If this is the case - I have wrote on this forum thread (check my last response) about persisting state in cookie.

If this isn't the case - could you, please, post an example of that page.

Regards,
Nikolay Tsenkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Bruno
Top achievements
Rank 1
answered on 10 Aug 2011, 02:51 PM
Hi Nikolay,

I was missing the HideSelection attribute set to false. And yes, I am using a master page.

It's solved. 

Regards
Bruno
0
Nikolay Tsenkov
Telerik team
answered on 11 Aug 2011, 06:09 PM
Hello Bruno,

 I am glad that the problem is solved.

Regards,
Nikolay Tsenkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TreeView
Asked by
Bruno
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or