No Loading panel with ClientIDMode="Static" on triggers

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 19 Oct 2011 Link to this post

    I thought I'd share this solution here to save anyone else the hours of tearing hair out that I've had.

    I had a master page and user controls using RadAjaxProxyManagers and the RadAjaxLoadingPanel was displaying for some buttons and not others. I played around with the setup of the page and narrowed it down to the buttons that had causesvalidation="false" were the ones that worked as expected.

    This however was a red herring, as I eventually discovered the problem was caused by having ClientIDMode set to Static on the radbuttons! Why does setting ClientIDMode="Static" break showing the loading panel, but everything else functions fine?

    <asp:Content ID="bodyPlaceholder" ContentPlaceHolderID="BodyPlaceHolder" runat="server">
      <div id="wrapper" runat="server">
        <!-- various grids etc -->
           <div class="left">
             <telerik:RadButton runat="server" ID="addButton" ClientIDMode="Static" Text="Add" OnClick="Add" />
           <div class="right">
             <telerik:RadButton runat="server" ID="okButton" ClientIDMode="Static" Text="OK" OnClick="Ok" />
             <telerik:RadButton runat="server" ID="cancelButton" ClientIDMode="Static" Text="Cancel" OnClick="Cancel" CausesValidation="false" />
              <div class="clear">
      <telerik:RadAjaxManagerProxy runat="server" ID="ajaxProxy" ClientIDMode="Static">
          <telerik:AjaxSetting AjaxControlID="ajaxProxy">
              <telerik:AjaxUpdatedControl ControlID="wrapper" LoadingPanelID="loadingPanel" />
          <telerik:AjaxSetting AjaxControlID="wrapper">
              <telerik:AjaxUpdatedControl ControlID="wrapper" LoadingPanelID="loadingPanel" />
      <telerik:RadAjaxLoadingPanel runat="server" ID="loadingPanel" />

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 21 Oct 2011 Link to this post

    Hi Jeremy,

    Currently RadControls for ASP.NET AJAX do not offer support for ClientIDMode different than AutoID. Since these are controls with complex hierarchies of child controls and templates, setting their ClientID mode to Static will break most of their client functionality. Please note that even Microsoft does not recommend setting ClientIDMode="Static" on pages which do contain dynamic controls.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top