or
hello
I need to know if it is possible to maintain the columns in edit mode,
without lost this mode when the page makes a
"pageLoad", because this is exactly what happens to me.
I can not put anything in the aspx of radgrid,
because it is a radgrid with autogenerated columns.
I put the columns in edit mode with the following method:
foreach (GridDataItem item in RadGrid1.Items)
{
item.Edit = true;
}
RadGrid1.MasterTableView.Rebind();
thank you very much
<telerik:GridNumericColumn ItemStyle-CssClass="rwStyle_Brkmgnt" ItemStyle-Wrap="false" UniqueName="NoOfOffices" DataField="NoOfOffices" > </telerik:GridNumericColumn>
.rwStyle_Brkmgnt { border-right: solid 1px #c1c1c1; border-bottom: solid 1px #c1c1c1; }<telerik:RadGrid ID="XLSView" runat="server" AutoGenerateColumns="True" AllowMultiRowSelection="true" Width="600px"> <MasterTableView Width="100%"> <DetailTables> <telerik:GridTableView Width="100%"> <Columns> <telerik:GridTemplateColumn UniqueName="chkDup" HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkDup" runat="server"> </asp:CheckBox> </ItemTemplate> <HeaderStyle Width="200px" /> </telerik:GridTemplateColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="true" /> </ClientSettings></telerik:RadGrid>Protected Sub XLSView_DetailTableDataBind(sender As Object, e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles XLSView.DetailTableDataBind... Dim test As DataTable = New DataTable() test.Columns.Add("FileID")... For Each dupFile As FILE In dupFiles Dim dr As DataRow = test.NewRow() dr("FileID") = dupFile.FILEID... Next e.DetailTableView.DataSource = test------------------------------------ Protected Sub XLSView_ColumnCreated(sender As Object, e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles XLSView.ColumnCreated If e.Column.UniqueName = "Description" Then Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) boundColumn.HeaderText = "DescriptionA" boundColumn.ItemStyle.Width = 600 boundColumn.HeaderStyle.Width = 600 boundColumn.FooterStyle.Width = 600 boundColumn.FilterControlWidth = 600 End If End Sub