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

Multiple controls + loading panel

1 Answer 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David Johnson
Top achievements
Rank 1
David Johnson asked on 05 Aug 2008, 11:28 PM
Hi,

I have created a usercontrol which is sometimes used more than once on a particular page. If I only have 1 instance of the control, e.g:

<

uc1:imagelibrary id="Imagelibrary1" runat="server" ControlType="Images" DefaultTab="Page" Category="Facilities" Type="ParkImage" Title="Facility Images" />

Then it works fine. If I have 2 or more, all the subsequent controls use the 1st controls LoadingPanel, instead of it's own. You can see by the code that it spits out:

UpdatedControls : [{ControlID:"ctl01_Imagelibrary2_ajaxPanelDataList",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_dlImages",
UpdatedControls : [{ControlID:
"ctl01_Imagelibrary2_ajaxPanelPaging",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_pager",
UpdatedControls : [{ControlID:
"ctl01_Imagelibrary2_ajaxPanelDataList",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_lnkPage" 

As you can see, the reference to ctl01_ImageLibrary1_LoadingPanelFull should actually be ct01_ImageLibrary2_LoadingPanelFull.

Now if I wireup the AjaxSettings dynamically/programmatically, it works fine and will use the relevant loading panel, however when I try the ASP.NET I get the above result.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Aug 2008, 07:53 AM

Hello Nath,

Can you please check whether you accidentally set DefaultLoadingPanelID through the RadAjaxManager settings? This might be the reason for the reused loading panel across different ajax settings. Furthermore, verify that you are using the latest release 2008.2.723 of RadControls for ASP.NET AJAX.

Best regards,

Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
David Johnson
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or