or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MasterPortal.WebSite.WebForm1" %><!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"> <telerik:RadScriptManager runat="server" /> <telerik:RadDockLayout ID="MainLayout" runat="server"> <telerik:RadDockZone ID="RadDockZone_1" runat="server"> <telerik:RadDock ID="ReportDock" runat="server"> <ContentTemplate> <iframe src="http://www.google.com" /> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone> <telerik:RadDockZone ID="RadDockZone_2" runat="server" > </telerik:RadDockZone> </telerik:RadDockLayout> </form></body></html>
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="odsFill" GridLines="None" AllowPaging="True" Width="950px" DataKeyNames="xxx"> <MasterTableView DataSourceID="odsFill" AutoGenerateColumns="False" DataKeyNames="xxx" AllowPaging="true"> <RowIndicatorColumn HeaderStyle-Width="20px" /> <ExpandCollapseColumn HeaderStyle-Width="20px" /> <Columns> </Columns> <DetailTables> <telerik:GridTableView runat="server" > <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="xxx" MasterKeyField="xxx" /> </ParentTableRelation> <NoRecordsTemplate> There are no records.</NoRecordsTemplate> <Columns> <telerik:GridTemplateColumn DataField="TYPE" UniqueName="xxx" HeaderText="C"> <ItemTemplate> <asp:HyperLink ID="create3Clink" runat="server" Text="Create 3C" NavigateUrl='default.aspx' /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <NestedViewSettings> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="COMP_ID" MasterKeyField="COMP_ID" /> </ParentTableRelation> </NestedViewSettings> <NestedViewTemplate> <asp:Label ID="lblID" Text='test' runat="server" /> <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Verification" PageViewID="PageView3" /> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView runat="server" ID="PageView3" BorderStyle="Solid"> <h4> Verification</h4> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ToolBox %>" SelectCommand="SELECT * From MyTable"> </asp:SqlDataSource> </telerik:RadPageView> </telerik:RadMultiPage> </NestedViewTemplate> </telerik:GridTableView> </DetailTables> </MasterTableView> </telerik:RadGrid> Hello,
I am trying to save the dynamically created raddoc in to mssql. GetRegisteredDocksState() does not recognize the newly created raddoc.
Public Sub SaveState() Dim dockState As String Dim serializer As New Script.Serialization.JavaScriptSerializer() Dim stateList As List(Of DockState) = RadDockLayout1.GetRegisteredDocksState() Dim serializedList As New StringBuilder() Dim i As Integer = 0 While i < stateList.Count serializedList.Append(serializer.Serialize(stateList(i))) serializedList.Append("|") i += 1 End While dockState = serializedList.ToString() .... ....
Do you have any KB article on the same ?
I have a column in my rad grid that displays image when LastUserActivity < MostResentUpdate. I want that column to be sorted by default. What should i give in the sort expression in the fieldname..
<SortExpressions> <telerik:GridSortExpression FieldName="??????"/> </SortExpressions>
Thanks,
<telerik:RadGrid runat="server" ID="grdKCGs" AllowPaging="False" Width="600px" AllowMultiRowSelection="false" Visible="false" Skin="Default"> <MasterTableView DataKeyNames="KCGID" Width="600px" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"> <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate> <NestedViewTemplate> <asp:Panel runat="server" ID="InnerContainer" Visible="true"> <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Government Standards" PageViewID="PageView1"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Local Standards" PageViewID="PageView2"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView runat="server" ID="PageView1"> <table width="570px" cellpadding=3 cellspacing=0 border=0 style="border: 4px outset Silver;"> <tr> <td> <asp:Label ID="lblSwitches1" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <asp:Label ID="lblExtDesc1" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <asp:Label ID="lblAssessment1" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <telerik:RadGrid runat="server" ID="grdGStds" AllowPaging="False" Width="100%" Height="250px" ClientSettings-Scrolling-AllowScroll="true" AllowMultiRowSelection="false" Visible="false" Skin="Default" > <MasterTableView DataKeyNames="GovtBodyStdKey" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"> <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate> <Columns> <telerik:GridBoundColumn HeaderStyle-Width="100px" UniqueName="GovtBodyStdKey" HeaderText="Standard" Visible="True" DataField="GovtBodyStdKey" ReadOnly="true"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="GovtBodyStdDescription" HeaderText="Description" Visible="True" DataField="GovtBodyStdDescription" ReadOnly="true"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings AllowRowsDragDrop="false" > <Selecting AllowRowSelect="false" EnableDragToSelectrows="false" /> </ClientSettings> </telerik:RadGrid> </td> </tr> </table> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="PageView2"> <table width="570px" cellpadding=3 cellspacing=0 border=0 style="border: 4px outset Silver;"> <tr> <td> <asp:Label ID="lblSwitches2" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <asp:Label ID="lblExtDesc2" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <asp:Label ID="lblAssessment2" CssClass="cssContent" runat="server"></asp:Label> </td> </tr> <tr> <td> <telerik:RadGrid runat="server" ID="grdLStds" AllowPaging="False" Width="100%" Height="250px" ClientSettings-Scrolling-AllowScroll="true" AllowMultiRowSelection="false" Visible="false" Skin="Default" > <MasterTableView DataKeyNames="STANDARDNUMBER" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"> <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate> <Columns> <telerik:GridBoundColumn HeaderStyle-Width="100px" UniqueName="STANDARDNUMBER" HeaderText="Standard" Visible="True" DataField="STANDARDNUMBER" ReadOnly="true"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="LocalStandardDescription" HeaderText="Description" Visible="True" DataField="LocalStandardDescription" ReadOnly="true"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings AllowRowsDragDrop="false" > <Selecting AllowRowSelect="false" EnableDragToSelectrows="false" /> </ClientSettings> </telerik:RadGrid> </td> </tr> </table> </telerik:RadPageView> </telerik:RadMultiPage> </asp:Panel> </NestedViewTemplate> <Columns> <telerik:GridBoundColumn UniqueName="TopicKCGID" Visible="False" DataField="TopicKCGID" ReadOnly="true"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="KCGID" Visible="False" DataField="KCGID"></telerik:GridBoundColumn> <telerik:GridImageColumn ImageAlign="Middle" ImageUrl="../images/notshared.gif" AlternateText="This item is used once in the course(Not Shared)." UniqueName="imgShared" HeaderStyle-Width="25px"></telerik:GridImageColumn> <telerik:GridTemplateColumn UniqueName="Concept" HeaderStyle-Font-Bold="true" HeaderStyle-Width="490px"> <ItemStyle VerticalAlign="Top"></ItemStyle> <ItemTemplate> <asp:LinkButton id="LinkButton1" Runat="server" CommandName="e"> <telerik:RadCodeBlock ID="cb1" runat="server"> <%# Container.DataItem("KCGDescription")%> </telerik:RadCodeBlock> </asp:LinkButton> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridButtonColumn ShowInEditForm="false" HeaderText="Delete" ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete" HeaderStyle-width="60px" HeaderStyle-Font-Bold="true" CommandName="d" FooterText="" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="ImageButton" ImageUrl="../Images/delete.gif"> </telerik:GridButtonColumn> </Columns> </MasterTableView> <ClientSettings AllowRowsDragDrop="true" > <Selecting AllowRowSelect="true" EnableDragToSelectrows="false" /> </ClientSettings> </telerik:RadGrid>