Hi, 
I am trying out the AjaxLoadPanel for the first time. I want a wait msg to appear after I click my search image-button while my Radgrid is loading. This works the first time I search after loading the page, but not the second time. I am sure I am making a beginner mistake somewhere.
btw. If I create another AjaxSetting with my ImgButton as trigger and my Radgrid as updatecontrol then I get a error complaining that my control contains code blocks. This happens even if I wrap it with an asp:panel, and yes I have to script in my header.
Hope someone can help me out here :-)
Axel
    
                                I am trying out the AjaxLoadPanel for the first time. I want a wait msg to appear after I click my search image-button while my Radgrid is loading. This works the first time I search after loading the page, but not the second time. I am sure I am making a beginner mistake somewhere.
btw. If I create another AjaxSetting with my ImgButton as trigger and my Radgrid as updatecontrol then I get a error complaining that my control contains code blocks. This happens even if I wrap it with an asp:panel, and yes I have to script in my header.
Hope someone can help me out here :-)
Axel
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" | 
| DefaultLoadingPanelID="RadAjaxLoadingPanel1"> | 
| <AjaxSettings> | 
| <telerik:AjaxSetting AjaxControlID="UserControlContainer"> | 
| <UpdatedControls> | 
| <telerik:AjaxUpdatedControl ControlID="UserControlContainer" /> | 
| </UpdatedControls> | 
| </telerik:AjaxSetting> | 
| </AjaxSettings> | 
| </telerik:RadAjaxManager> | 
| <asp:Panel id="UserControlContainer" class="UserControlContainer pealHeader" DefaultButton="btnSearch" runat="server"> | 
| <li class="full"> | 
| <asp:TextBox ID="tbSearch" runat="server" TabIndex="1" ></asp:TextBox> | 
| <asp:ImageButton ID="btnSearch" runat="server" | 
| Enabled="true" onclick="btnSearch_Click" TabIndex="3" ImageUrl="~/images/icons/lookingglass.png" /> | 
| </li> | 
| <div> | 
| <telerik:RadGrid ID="RadGrid1" runat="server" EnableAJAX="true" EnableAjaxSkinRendering="true"> | 
| . . . | 
| </telerik:RadGrid> | 
| </div> | 
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" EnableSkinTransparency="true" BackgroundPosition="Center" runat="server"> | 
| </telerik:RadAjaxLoadingPanel> | 
| </asp:Panel> | 
| ... serverside ...... | 
| protected void LoadData() | 
| { | 
| PartyDataContext pdc = new PartyDataContext(); | 
| var prty = pdc.IndividualsGetComplex(tbSearch.Text.ToUpper()).ToList(); | 
| RadGrid1.DataSourceID = ""; | 
| RadGrid1.DataSource = prty; | 
| } | 
| protected void btnSearch_Click(object sender, ImageClickEventArgs e) | 
| { | 
| LoadData(); | 
| RadGrid1.Rebind(); | 
| } |