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

How to use RadAjaxLoadingPaanel on desired Click events?..

3 Answers 27 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 10 Nov 2010, 06:10 AM
Hey everyone,

I am using a radgrid,with manual insert,delete and updates from external button clicks.I just want to know how can i use loading panel when debugger runs to these events.I am trying this--
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay"
            EnableSkinTransparency="true" Transparency="30">
        </telerik:RadAjaxLoadingPanel>

the first one is doing fine,but as i want this to be visible on btnSearch_Click.And after this OnClick event is not firing.Nothing happens.How to do this?...

Thanks
Amit

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Nov 2010, 11:33 AM
Hi Amit,

I followed your scenario and prepared a simple working project with similar functionality where the click event is fired as expected. Please examine it and let me know what is the difference in your scenario.

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Amit
Top achievements
Rank 1
answered on 10 Nov 2010, 12:29 PM
Hello Pavlina,

I am doing exactly the same except for that i've a little javascript enabled OnClientClick event of button.I am sending the required code to understand-- for javascript onClientClick event of btnSearch
function filterSearch()
                    {
                       var combo = $find('<%=RadComboBox1.ClientID %>');
                       if (combo.get_selectedIndex() == null)
                       {
                          alert("You must select a category before processing search!");
                          return false;
                       }
                    }
ajax manager-
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
           <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="btnSearch">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
               <telerik:AjaxSetting AjaxControlID="btnShowAll">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
               <telerik:AjaxSetting AjaxControlID="RadGrid1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </AjaxSettings>
       </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay"
           EnableSkinTransparency="true" Transparency="30">
       </telerik:RadAjaxLoadingPanel>
this is my button--
<asp:Button ID="btnSearch" runat="server" Style="float: left; color: black; font-weight: bold"
                                Text="Search" OnClick="btnSearch_Click" OnClientClick="javascript: return filterSearch();" />
i think this is not working due to client side javascript for this button.its working well for btnShowAll which has no client side javascript defined for it.The thing is that when i click on btnSearch the server side onclick click event is not called("NOTHING HAPPENS") and hence no loading panel.how to resolve this?...

Thanks
Amit
0
Pavlina
Telerik team
answered on 15 Nov 2010, 04:54 PM
Hello Amit,

I tested the setup locally, and the control behaved as expected. Since this information is not enough to replicate the issue, you can open a formal support ticket, and send us a small project, demonstrating your setup, along with the unwanted behavior. We will review it locally, and advise you further.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Amit
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Amit
Top achievements
Rank 1
Share this question
or