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

ajaxloadingpanel to encompass grid and fields

2 Answers 19 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris @ Intrinsic
Top achievements
Rank 1
Chris @ Intrinsic asked on 05 Jul 2011, 11:23 PM
I want to have my entire screen use the ajaxloadingpanel.  I have some code here:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlInner" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnReset">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlInner"  LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
  
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
        IsSticky="true" Style="position:absolute; top:0; left:0; height:100%; width:100%;">
    </telerik:RadAjaxLoadingPanel>

 

 

which works for texboxes, etc.  but not for a radgrid.  The grid is blank.  But, I tried wrapping the grid with the radajaxloadingpanel and then the grid gets updated fine, but NOT the text boxes.  I can't seem to make it all work together on one screen.  And, the example for wrapping the entire screen in the ajaxloadingpanel is 2 1/2 years old and so it doesn't apply here.

2 Answers, 1 is accepted

Sort by
0
Chris @ Intrinsic
Top achievements
Rank 1
answered on 06 Jul 2011, 11:26 PM
UPDATE:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
      <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="btnSearch">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="pnlInner" LoadingPanelID="RadAjaxLoadingPanel1" />
                  <telerik:AjaxUpdatedControl ControlID="pnlResultsGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
              </UpdatedControls>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="btnReset">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="pnlInner"  LoadingPanelID="RadAjaxLoadingPanel1" />
              </UpdatedControls>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="grdResults">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="pnlInner" LoadingPanelID="RadAjaxLoadingPanel1" />
                  <telerik:AjaxUpdatedControl ControlID="pnlResultsGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
              </UpdatedControls>
          </telerik:AjaxSetting>
      </AjaxSettings>
  </telerik:RadAjaxManagerProxy>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
      IsSticky="true" Style="position:absolute; top:0; left:0; height:100%; width:100%;">
  </telerik:RadAjaxLoadingPanel>

The above code works for all fields on my screen including the grid, but I've got hidden fields declared just above this rad ajax panel, and the contents of the hidden fields get destroyed every time a partial postback occurs (click a button on the form or on the grid.)  I verified this by just deleting the ajax code above and the hidden fields work fine.  So, what is the workaround for this please?

Thanks!
0
Maria Ilieva
Telerik team
answered on 08 Jul 2011, 11:41 AM
Hello Chris,

Please wrap the hidden field into always visible asp Panel and add those Panel as updated control into the RadAjaxManager settings. This would help persisting the value after ajax request.
Let me know if this works for you.

All the best,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Ajax
Asked by
Chris @ Intrinsic
Top achievements
Rank 1
Answers by
Chris @ Intrinsic
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or