or
$(".rsRecurrenceOptionList").children().each(function (i) { if (i < 1 || i > 2) $(this).hide();});$(".rsRecurrenceOptionList li:eq(1) span input").attr("checked", "checked");| <Telerik> |
| <RadCompression compressionType="GZip"> |
| <IncludedMimeTypes> |
| <add mime="text/html" /> |
| </IncludedMimeTypes> |
| <!--<ExcludedMimeTypes> |
| <add mime="text/html" /> |
| </ExcludedMimeTypes>--> |
| <ExcludedPaths> |
| <add path="~/download.axd" /> |
| </ExcludedPaths> |
| </RadCompression> |
| </Telerik> |
protected void MyAccountsGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.IsInEditMode) { // find the template control }}<telerik:RadGrid ID="MyAccountsGrid" AllowSorting="true" runat="server" AllowPaging="true" PageSize="20" AllowMultiRowSelection="true" AllowFilteringByColumn="true" EnableLinqExpressions="true" AllowAutomaticInserts="false" OnItemDataBound="MyAccountsGrid_ItemDataBound"> <MasterTableView TableLayout="Auto" AutoGenerateColumns="false" AllowFilteringByColumn="true" CommandItemDisplay="Top" EditMode="InPlace" ClientDataKeyNames="Id,AccountNumber"> <CommandItemSettings ShowAddNewRecordButton="true" AddNewRecordText="Add" /> <telerik:GridTemplateColumn HeaderText="MyDDL" UniqueName="MyDDL"> <HeaderTemplate> MyDDL </HeaderTemplate> <ItemTemplate> <%# Eval("AccountType") %> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="accountTypeDDL" runat="server"></asp:DropDownList> </EditItemTemplate> </telerik:GridTemplateColumn>Hi ,
I can't seem to bind the source from my datatable. It is not showing anything.
protected void grdDmnDocFolder_NeedDataSource(object o, GridNeedDataSourceEventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("aaa"); dt.Columns.Add("ccc"); dt.Columns.Add("bbb"); DataRow dr = dt.NewRow(); dr["aaa"] = "a"; dr["bbb"] = "b"; dr["ccc"] = "c"; dt.Rows.Add(dr); dt.Rows.Add(dr); dt.Rows.Add(dr); dt.Rows.Add(dr); grdDmnDocFolder.DataSource = dt; }