SqlDataAdapter.Fill(dsDetails,
"RoleResponsibility")
SqlDataAdapter.Fill(dsDetails,
"Role")
The "Role" table in the dsDetails dataset is the master table, and the RoleResponsibility table is the child.
I have reviewed the documentation, and I am a little confused, mainly because the samples are creating tables in code.
How do you have a hierarchical view between two tables in a dataset ?
Thanks
RadAjaxLoadingPanel
images displayed as the page data was being updated within these usercontrols.
Recently I created a new usercontrol which contained nothing but a RadPanelBar and within that it contained two panel items. Each of the panel items contained one of the usercontrols mentioned above. Essentially this new control became a wrapper for the previous two controls to be included within a panel bar.
The problem I am having however is that the loading panel images do not appear to be getting triggered as it was before. The documentaion is a little sparse on this topic.
Here is a snippet sample of my code:
Main .aspx
| .... |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnRun"> |
| <UpdatedControls> |
| .... |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"> |
| ... |
| </telerik:RadAjaxLoadingPanel> |
| <uc1:MyControl ID="MainControl" runat="server" /> |
| ... |
Main usercontrol.ascx
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
| </telerik:RadAjaxManagerProxy> |
| <telerik:RadPanelBar Skin="Gray" ID="RadPanelBar1" runat="server" AllowCollapseAllItems="true" |
| ExpandMode="SingleExpandedItem" EnableViewState="true" Width="100%"> |
| <Items> |
| <telerik:RadPanelItem Text="Panel 1" runat="server" |
| Value="1"> |
| <Items> |
| <telerik:RadPanelItem runat="server"> |
| <ItemTemplate> |
| <us1:MyControl1 runat="server" ID="Control_1" /> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| <telerik:RadPanelItem Text="Panel 2" runat="server" Value="2"> |
| <Items> |
| <telerik:RadPanelItem runat="server"> |
| <ItemTemplate> |
| <uc1:MyControl2 runat="server" ID="Control_2" /> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| <CollapseAnimation Duration="100" Type="InOutBounce" /> |
| <ExpandAnimation Duration="100" Type="InOutBounce" /> |
| </telerik:RadPanelBar> |
Control1.ascx (Control2.ascx is similar)
| .... |
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
| <AjaxSettings> |
| ....<list removed for space> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel99" runat="server"> |
| <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
| style="border: 0px; position: relative; top: 75px;" /> |
| </telerik:RadAjaxLoadingPanel> |
| .... remaining page with controls .... |
I hope this makes sense. Bottom line question is how can I continue to get the loading panel images to work in this configuration.
Thanks!!
Paul
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="FileManager.WebForm2" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title></title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
</div>
</form>
</
body>
</
html>
When I open its in the RadEditor I lose the line
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="FileManager.WebForm2" %>
and only can see
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title></title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
</div>
</form>
</
body>
</
html>
How can I to solve this problem?
thanks.