Hi!
I´m building my grids (and its columns) dynamically using data from a database. This data includes information about the formatting and validation. To configure a grid easily I wrote some razor-extension-methods for the kendoUI-grid but now encounter some problems concerning configuration of kendoUI-grid.
1) To display a checkbox for bool-values I have to defined a clienttemplate like this:
This is always shown independent of edit-mode or display-mode. To make it only visible I added the disabled-attribute. But how can I realize a switch to an editable checkbox for InCell/InLine-editing?
2) Validation should be also configured by data from the database. E.g. the numeric-input: The grid creates automatically the numericTextBox - but how can I modify attributes like min, max or interval?
For both topics it is important to do these settings on the server-side!
Best Regards!
I´m building my grids (and its columns) dynamically using data from a database. This data includes information about the formatting and validation. To configure a grid easily I wrote some razor-extension-methods for the kendoUI-grid but now encounter some problems concerning configuration of kendoUI-grid.
1) To display a checkbox for bool-values I have to defined a clienttemplate like this:
boundColumn.ClientTemplate(
"<input .... />"
);
2) Validation should be also configured by data from the database. E.g. the numeric-input: The grid creates automatically the numericTextBox - but how can I modify attributes like min, max or interval?
For both topics it is important to do these settings on the server-side!
Best Regards!