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

Multi Loading Panel in same page

8 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
fibonacci
Top achievements
Rank 1
fibonacci asked on 28 Jan 2011, 01:51 PM
Hi guys;

When we use loading panel in our project we are getting some errors.
Our project have two panels and also two button into these panels when and
the loadiing panel firing with buttons ,we are getting  _event error and the
other error "Microsoft JScript runtime error: 'null' is null or not an object rad ajax manager".How we solve that problem..
(In other words,I wanna control loading panel with that buttons..)
our code like that;
<panel>
          <button>
</panel>
<panel>
        <button>
        <radgrid>
</panel>
        <loading panel>
Some code parts are coppied bellow there..

 

 

<telerik:RadAjaxManager ID="SiparisRadAjaxManager" DefaultLoadingPanelID="SiparisRadAjaxLoadingPanel"

 

 

 

 

 

 

runat="server">

 

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="SiparisRadGrid">

 

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="SiparisRadGrid" LoadingPanelID="SiparisRadAjaxLoadingPanel" />

 

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="SiparisKaydetButton" EventName="SiparisKaydet_Click">

 

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="SiparisPanel" LoadingPanelID="SiparisRadAjaxLoadingPanel" />

 

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="SiparisDetayKaydetButton" EventName="SiparisDetayKaydetButton_Click">

 

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="SiparisDetayPanel" LoadingPanelID="SiparisRadAjaxLoadingPanel" />

 

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

 

</AjaxSettings>

 

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="SiparisRadAjaxLoadingPanel" Skin="Web20"

 

 

 

 

 

 

runat="server">

 

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

 



8 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 31 Jan 2011, 05:28 PM
Hi Erkan,

I followed your scenario and prepared a simple test project. Please examine it and let me know  if it works as expected or if I am leaving something from your logic out.

Kind regards,
Pavlina
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
fibonacci
Top achievements
Rank 1
answered on 01 Feb 2011, 09:20 AM
I solved the problem with using radajaxpanel instead of the update panel like that;

 

 

<telerik:RadAjaxManager ID="SiparisRadAjaxManager" DefaultLoadingPanelID="SiparisRadAjaxLoadingPanel"

 

 

 

runat="server">

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="SiparisRadAjaxLoadingPanel" Skin="Web20" runat="server">

 

 

 

</telerik:RadAjaxLoadingPanel>

 


 

 

<telerik:RadAjaxPanel ID="SiparisRadAjaxPanel" runat="server" HorizontalAlign="NotSet"

 

 

 

LoadingPanelID="SiparisRadAjaxLoadingPanel" EnableAJAX="true">

 

 

 

 

<table style="width: 100%">

 

 

 

<tr>

 

 

 

<td align="center">

 

 

 

<asp:Button ID="GonderButton" runat="server" OnClick="GonderButton_Click"

 

 

 

Enabled="false" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="center">

 

 

 

<asp:TextBox ID="IDTextBox" runat="server" Style="display: none" ></asp:TextBox>

 

 

 

</telerik:RadAjaxPanel>

 

<telerik:RadAjaxPanel ID="SiparisPanel" runat="server" HorizontalAlign="NotSet"

 

 

 

 

 

 

 

LoadingPanelID="SiparisRadAjaxLoadingPanel" EnableAJAX="true"> ...............
.........
</telerik:RadAjaxPanel>

but now When using rad ajax panel TextBox value lost I think because of the postback

0
fibonacci
Top achievements
Rank 1
answered on 01 Feb 2011, 10:49 AM
  Hi,
I tried your sending example but also I m using (asp)update panel(to update grid) so still I get some errors..


0
Pavlina
Telerik team
answered on 01 Feb 2011, 01:20 PM
Hi Erkan,

Note that using UpdatePanel and RadAjaxManager / RadAjaxPanel in one application for updating same part of the page is not supported scenario.

Best wishes,
Pavlina
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
fibonacci
Top achievements
Rank 1
answered on 01 Feb 2011, 02:17 PM
Hi,

But when Im using only radajaxmanager with radajaxloading panel,textbox values is lost ,How can I resolve that problem?
0
iclal
Top achievements
Rank 1
answered on 01 Feb 2011, 02:21 PM
please helpp,i got erkan's problem too..
0
Pavlina
Telerik team
answered on 01 Feb 2011, 02:30 PM
Hello,

I followed your scenario and prepared a sample project attached to this post. Please check it out and let me know how it goes on your end and what differs in your case.

All the best,
Pavlina
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
fibonacci
Top achievements
Rank 1
answered on 01 Feb 2011, 04:51 PM

I solved the problem with seperating the code blocks..like that

 

 

 

<telerik:RadAjaxManager>

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="SiparisRadGrid">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="SiparisDetayPanel" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="SiparisRadGrid" LoadingPanelID="SiparisRadAjaxLoadingPanel" />

 

 

 

</UpdatedControls>.........................................

 

<

 

 

telerik:RadAjaxLoadingPanel ID="SiparisRadAjaxLoadingPanel" Skin="Web20" runat="server">

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

<asp:UpdatePanel runat="server" ID="pan">

 

 

 

<ContentTemplate>

 

 

 

<asp:TextBox ID="TextBox" runat="server" Style="display: none" Text=""></asp:TextBox>

 

 

 

</ContentTemplate>

 

 

 

</asp:UpdatePanel>

 

 

 

<telerik:RadAjaxPanel ID="panel" runat="server">..............

 

 

 

</telerik:RadAjaxPanel>

 

 

 

 

Tags
General Discussions
Asked by
fibonacci
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
fibonacci
Top achievements
Rank 1
iclal
Top achievements
Rank 1
Share this question
or