This question is locked. New answers and comments are not allowed.
I am trying to nest a Telerik DatePicker control inside a Telerik grid and for some reason, I cannot get the calendar popup to work. I have tried several different ways of doing this, some have generated errors, but below is best result I have seen so far. I can easily add the DatePicker control outside of the Telerik grid and everything works just fine. Are nested controls allowed? Am I missing something?
Thanks,
Corey
Thanks,
Corey
| Html.Telerik().Grid(Model.MyObject) |
| .Name("MyGrid") |
| .Columns(columns => |
| { |
| columns.Bound(s => s.MyNo).Title("My #").Width(50); |
| columns.Bound(s => s.MyName).Title("My Name"); |
| columns.Template(s => |
| {%> |
| <%= Html.Telerik().DatePicker() |
| .Name("MyDatePicker") |
| .ShowButton(true) %> |
| <%}).Title("My Date Time").Width(160); |
| columns.Bound(s => s.MyStatus).Width(50); |
| columns.Bound(s => s.MyQuantity).Title("My Qty").Width(60); |
| columns.Bound(s => s.MyWeight).Title("My Weight").Width(80); |
| columns.Template(s => |
| { |
| %> |
| <%=Html.Hidden("MyHidden", s.MyId)%> |
| <%i++; |
| }).Title("").Width(0); |
| }) |
| .Render(); |