I have a user control named projects that has Grid1 and Grid2. I've followed the instructions on how to make Grid2 related to Grid1 so when I click on a row in Grid one, it initiates a call to my Database to retrieve info to populate Grid2.
Finally got everything working however, I'd like the loading panel to display while it's sending the ajaxrequest out to the database to update Grid2.
here is relevant code in my Default.aspx page.
<telerik:RadAjaxManager ID="RadAjaxMgrMain" runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<ajaxsettings>
<telerik:AjaxSetting AjaxControlID="lbutPrjs">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="defaultMainPnl"
LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</updatedcontrols>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="lbutPrjsSearch">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="defaultMainPnl"
LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</updatedcontrols>
</telerik:AjaxSetting>
</ajaxsettings>
</telerik:RadAjaxManager>
Relevant code from Projects.ascx
<script type="text/javascript">
function RowSelected()
{
window["<%= rgridWorkItems.ClientID %>"].AjaxRequest("<%= rgridWorkItems.UniqueID %>", "");
}
</script>
<asp:ScriptManagerProxy ID="scriptMgrProxyPrjs" runat="server"></asp:ScriptManagerProxy>
<telerik:RadAjaxManagerProxy ID="rAjaxMgrProxyPrjs" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rGridPrjs">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgridWorkItems" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<radG:RadGrid ID="rGridPrjs" runat="server" AllowPaging="True"
AutoGenerateColumns="false" EnableAJAX="true" GridLines="Both"
ShowHeader="true" OnColumnCreated="rGridPrjs_OnColumnCreated"
OnItemCreated="rGridPrjs_OnItemCreated"
OnNeedDataSource="rGridPrjs_NeedDataSource" skin="Office2007">
<clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True" AllowExpandCollapse="true" >
<selecting allowrowselect="True"></selecting>
<ClientEvents OnRowSelected="RowSelected" />
</clientsettings>
<MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" EnableNoRecordsTemplate="false"
DataKeyNames="projectId,parentProjectId" Width="100%"
>
<SelfHierarchySettings ParentKeyName="parentProjectId" KeyName="projectId" />
<Columns>
<radG:GridBoundColumn DataField="projectNumber" HeaderText="Project Number" ReadOnly="true" SortExpression="projectNumber" UniqueName="ProjectNumber"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="projectSummary" HeaderText="Project Summary" ReadOnly="true" SortExpression="projectSummary" UniqueName="ProjectSummary"></radG:GridBoundColumn>
</Columns>
</MasterTableView>
</radG:RadGrid>
<radG:RadGrid ID="rgridWorkItems" runat="server" AllowPaging="true" DataSourceID="odsWorkItems"
AutoGenerateColumns="false"
EnableAjax="true" GridLines="Both" ShowHeader="true" Skin="Office2007">
<clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True" AllowExpandCollapse="true">
<selecting allowrowselect="True"></selecting>
</clientsettings>
<MasterTableView EnableNoRecordsTemplate="true" DataKeyNames="workItemId" Width="100%">
<Columns>
<radG:GridBoundColumn DataField="workItemNumber" HeaderText="WorkItem #" ReadOnly="true" SortExpression="workItemNumber" UniqueName="workItemNumber"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="name" HeaderText="Name" ReadOnly="true" SortExpression="name" UniqueName="name"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="description" HeaderText="Description" ReadOnly="true" SortExpression="description" UniqueName="description"></radG:GridBoundColumn>
</Columns>
</MasterTableView>
</radG:RadGrid>
I'm starting to think because I'm calling ajaxRequest in jscript per instructions, i may need to display a loading animation manually and hide it manually when the call comes back from the server?
Any ideas?