| <telerik:RadSplitter ID="spltMain" Width="100%" Height="100%" runat="server"> |
| <telerik:RadPane ID="paneMain" runat="server" Height="100%" Width="70%"> |
| <telerik:RadPanelBar ID="pbarMain" runat="server" Width="100%" ExpandMode="MultipleExpandedItems"> |
| <Items> |
| <telerik:RadPanelItem Text="Dashboard" Font-Size="14px" ForeColor="White" Expanded="true" Height="50%"> |
| <ItemTemplate> |
| <div style="margin: 0px 5px 0px 5px;"> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here<br /> |
| The dashboard will go here |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| <telerik:RadPanelItem Text="Most recently opened WO's" Font-Size="14px" ForeColor="White" Expanded="true" Height="50%"> |
| <ItemTemplate> |
| <div style="margin: 0px 5px 0px 5px;"> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here<br /> |
| The WO info will go here |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
| </telerik:RadPane> |
| <telerik:RadPane ID="paneMsgArea" runat="server" Height="100%" Width="30%"> |
| This should be the area where the emergency contact and messages will appear |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
<
telerik:RadMenu ID="RadMenu" Runat="server" Skin="Web20" Width="100%">
<DefaultGroupSettings Flow="Horizontal" />
<Items>
<telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
<Items>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
</telerik:RadMenuItem>
</Items>
<GroupSettings Flow="Horizontal" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Root RadMenuItem2">
<Items>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
</telerik:RadMenuItem>
</Items>
<GroupSettings Flow="Horizontal" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Root RadMenuItem3">
<Items>
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
</telerik:RadMenuItem>
</Items>
<GroupSettings Flow="Horizontal" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Root RadMenuItem4">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>

| function ChangePage(FileName) |
| { |
| if (window.frameElement) { |
| // A window is already open - Redirect |
| GetRadWindow().SetUrl(FileName); |
| // Resize the window |
| var curWindowSize = GetRadWindow().getWindowBounds(); |
| GetRadWindow().center(); |
| GetRadWindow().setSize(width,height); |
| GetRadWindow().set_modal(modal); |
| //GetRadWindow().show(); |
| } else { |
| // No window - open a new one |
| openRadWindow(FileName,height,width,modal,0,1,1,qty); |
| } |
| } |
| function FirstComboBox_IndexChanged(sender, args) { |
| var comboBox = $find("secondRadComboBox")); |
| if (comboBox != null) { |
| var input = comboBox.get_inputDomElement(); |
| window.setTimeout(function() { input.focus(); }, 0); |
| } |
| } |
I've done quite a bit of searching and reading, and maybe I just don't get it. Here's my problem.
I have a RadGrid with a nested Detail table. The Detail Table is configured to use a Form Template. To bind the values in the Form Template, I'm using markup that looks like this:
| <asp:Label ID="lblID" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.ServerPowerID" ) %>' ></asp:Label> |
| <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update"%>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PowerInsert" : "PowerUpdate" %>'/> |
| <asp:Button ID="btnCancel" Text="Cancel" CausesValidation="false" runat="server" CommandName="Cancel"/> |
| if (e.CommandName == "PowerUpdate") |
| { |
| GridEditableItem editedItem = e.Item as GridEditableItem; |
| CMDB.ServerPower power = new CMDB.ServerPower(Convert.ToInt32((editedItem.FindControl("lblID") as Label).Text)); |
| power.ServerID= (Convert.ToInt32((editedItem.FindControl("lblServerID") as Label).Text)); |
| power.ServerPowerNameID = Convert.ToInt32((editedItem.FindControl("ddlServerPowerName") as DropDownList).SelectedValue); |
| power.ServerPowerCircuitID = Convert.ToInt32((editedItem.FindControl("ddlServerPowerCircuit") as DropDownList).SelectedValue); |
| power.ServerPowerNotes = (editedItem.FindControl("tbNotes") as TextBox).Text; |
| power.Save(User.Identity.Name.ToString()); |
| ServerRadGrid.Rebind(); |
| } |
