Hi!
I've just setup a RadGrid which formats a couple of date columns using a custom format which is retrieved from App.config, just like this in Page_Load ():
If I do remove that code, the Edit Form for a record is rendered. I am also setting ReadOnly="true" with no ColumnEditor property set, declaratively, for those date columns since they are auto-generated and need no edition, with no luck.
So, how can I set Column's properties programatically without affecting the display of the Edit Form?
Those are my column definitions:
Thanks in advance.
I've just setup a RadGrid which formats a couple of date columns using a custom format which is retrieved from App.config, just like this in Page_Load ():
if (!IsPostBack){ (RadGridConsulta.Columns.FindByUniqueName ("Creacion") as GridDateTimeColumn).DataFormatString = Audinet.Framework.Aplicacion.Configuracion["format.datetime.short"]; (RadGridConsulta.Columns.FindByUniqueName ("Modificacion") as GridDateTimeColumn).DataFormatString = Audinet.Framework.Aplicacion.Configuracion["format.datetime.short"];}It just works when the list is generated, but when I click the Edit button, the Ajax is triggered but it finally does not render the edit form, returning again to the general listing.If I do remove that code, the Edit Form for a record is rendered. I am also setting ReadOnly="true" with no ColumnEditor property set, declaratively, for those date columns since they are auto-generated and need no edition, with no luck.
So, how can I set Column's properties programatically without affecting the display of the Edit Form?
Those are my column definitions:
<%-- Columna Creacion --%><telerik:GridDateTimeColumn DataField="Creacion" HeaderText="Creacion" UniqueName="Creacion" ReadOnly="true" SortExpression="Creacion" DataType="System.DateTime" HeaderStyle-Width="140px"></telerik:GridDateTimeColumn><%-- Columna Modificacion --%><telerik:GridDateTimeColumn DataField="Modificacion" HeaderText="Modificacion" UniqueName="Modificacion" ReadOnly="true" SortExpression="Modificacion" DataType="System.DateTime" HeaderStyle-Width="140px" ></telerik:GridDateTimeColumn>Thanks in advance.