Hi Everybody,
I have some questions about the way the ClientTemplates are working inside the Grid.
Today I have the following code.
Which are working fine.
@(Html.Kendo().Grid<Felix.DomainModel.BusinessEntities.ManuallyCreatedEntities.LandsforeningerModel> ().BindTo(Model.Countries).Name("Countries") .ToolBar(configurator => { configurator.Create(); }) .Editable(e => e.Mode(GridEditMode.InCell).CreateAt(GridInsertRowPosition.Bottom)) .Events(e => e.Edit("onEditItem")).Events(e => e.Save("onSaveItemLandsForening")) .Columns(columns => { columns.Bound(m => m.Name).Encoded(true).EditorTemplateName("RelatedCountries").ClientTemplate("#= Name #" + "<input type='hidden' name='Countries[#= indexCountries(data)#].Name' value='#= Name#' />" + "<input type='hidden' name='Countries[#= indexCountries(data)#].Id' value='#= Id #' />" ); columns.Bound(m => m.Startdate).Width(150).Encoded(true).ClientTemplate("#= kendo.toString(kendo.parseDate(Startdate,'dd/MM/yyyy'), '" + "dd-MM-yyyy" + "') #" + "<input type='hidden' name='Countries[#= indexCountries(data) #].Startdate' value='#= Convert2StringDate(Startdate) #' />").Format("{0: dd-MM-yyyy}"); columns.Command(m => m.Destroy()).Width(100); }) .DataSource(dataSource => dataSource.Ajax() .Model(model => { model.Id(p => p.Id); }) ))My question: is it possible to allow more formats in the input field, like ddMMyy and ddMMYYYY and not only dd-MM-YYYY.
How should this be done?