or
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPag="True" DataSourceID="LinqDataSource1" GroupPanelPosition="Top"> <MasterTableView AutoGenerateColumns="False" DataKeyNames="TaskID" DataSourceID="LinqDataSource1"> <Columns> <telerik:GridDateTimeColumn DataField="DateCreated" DataType="System.DateTime" EnableTimeIndependentFiltering="true" FilterControlAltText="Filter DateCreated column" HeaderText="DateCreated" SortExpression="DateCreated" UniqueName="DateCreated" ShowFilterIcon="false" AutoPostBackOnFilter="true"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridDateTimeColumn> </Columns> </MasterTableView> </telerik:RadGrid> <asp:LinqDataSource ID="LinqDataSource1" OnSelect ing="LinqDataSource1_Selecting" runat="server"> </asp:LinqDataSource>public partial class Test : System.Web.UI.Page { private WebAPICalls MyWebAPi = new WebAPICalls(); protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e) { var tasks = MyWebAPi.GetDataTable("GetAllTasks"); //Doing this otherwise it complains about not finding the TaskID property var results = from rows in tasks.AsEnumerable() select rows; e.Result = results; } protected void Page_Load(object sender, EventArgs e) { } }
<telerik:RadWindow ID="VideoPlayerWindow" ClientIDMode="Static" runat="server" Modal="True" VisibleOnPageLoad="false" EnableShadow="true" Behaviors="Close" ReloadOnShow="true" AutoSize="true" OnClientBeforeClose="StopVideo"> <ContentTemplate> <asp:UpdatePanel ID="VideoPlayerUpdatePanel" runat="server" UpdateMode="Always"> <ContentTemplate> <uc1:ucVideo ID="Video1" runat="server" /> </ContentTemplate> </asp:UpdatePanel> </ContentTemplate> </telerik:RadWindow>... if (clientId == "VideoPlayerWindow") { oWnd = $find("<%=VideoPlayerWindow.ClientID%>"); } ...oWnd = $find(clientId);}
if(this._dockMode){this._contentElement.style.width="1px";
I am using the 2010.3.x version of the RadControls for ASP.NET. Thanks!
