How to use RadAjaxLoadingPaanel on desired Click events?..

4 posts, 0 answers
  1. Amit
    Amit avatar
    88 posts
    Member since:
    Sep 2010

    Posted 10 Nov 2010 Link to this post

    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
  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 10 Nov 2010 Link to this post

    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
  3. Amit
    Amit avatar
    88 posts
    Member since:
    Sep 2010

    Posted 10 Nov 2010 Link to this post

    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
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 15 Nov 2010 Link to this post

    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
Back to Top