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

[Solved] Using LoadPanel

7 Answers 190 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
NEX
Top achievements
Rank 1
NEX asked on 04 Jan 2008, 03:26 AM
How can I use a LoadingPanel with the treeview control? I tried putting the treeview into an ajaxpanel but then some of the events do not postback correctly.

7 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 04 Jan 2008, 07:33 AM
Hi Alfred Pena,

The LoadingPanel should be associated with an ajax panel or manager. Which RadTreeView's event does not fire correctly after placing the treeview in an ajax panel?

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
NEX
Top achievements
Rank 1
answered on 04 Jan 2008, 11:12 PM
Hmmm...actually the event is firing but for some reason Loading controls into an AjaxPanel is not working...the panel just does not show the controls...

The exact code to load the controls into the panel works perfectly when the
TreeView is not within an AjaxPanel.
0
Nikolay
Telerik team
answered on 07 Jan 2008, 09:25 AM
Hi Alfred Pena,

I prepared a small and running project for you.

Attached, please find the files. Download them and give them a go.

Hope this helps.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
NEX
Top achievements
Rank 1
answered on 07 Jan 2008, 01:13 PM
I could not figure out how to upload the file to the reply...so I will have to describe exactly what does not work :)

1. Add a 2nd RadAjaxPanel.

2. Add a Web User Control with just a label on it. (It does not matter what
   the user control contains...)

3. In the NodeClick event attempt to load the RadAjaxPanel with the
    Web User Control e.g.  RadAjaxPanel2.Controls.Add(LoadControl("WebUserControl.ascx"));

The Web User Control does not load.
0
Nikolay
Telerik team
answered on 08 Jan 2008, 01:35 PM
Hi Alfred Pena,

Thanks for the additional information.

This is indeed the expected behavior as the RadAjaxPanel is self-updating panel and it is supposed to update only its content.

I suggest that you do the following:

1. Use standard ASP.NET Panels
2. Use RadAjaxManager and set it to update both the panels

Hope this helps.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
NEX
Top achievements
Rank 1
answered on 13 Jan 2008, 04:02 AM
Ok. Thanks that works but for some reason I have to click twice to get it to work.

In the TreeView pageload:

// Only load Ajax settings if a control is not loaded on the Panel

RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(treeView, treeView, RadAjaxLoadingPanel1);

RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(treeView, PHForm);

0
Nikolay
Telerik team
answered on 14 Jan 2008, 09:55 AM
Hello Alfred Pena,

Can you modify the project I attached so that the problem appears? If you succeed, could you please post here the changes you made so that we can try to reproduce it at our side and find a solution?

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
NEX
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
NEX
Top achievements
Rank 1
Share this question
or