I have a series of master details rows in a grid. In the detail of the master grid is a tab group. The detail grids are inside the individual tabs.
I am trying to format the display of an integer (4 digit year) inside the filter column. Removing the comma.
Here is the detail grid .csthml snippet.
The problem is that after the first detail row the formatting is no longer applied.
Also I am unable to move the format code to a .js file? I can't move it to any other .cshtml file either. Many of the detail grids have this column and having to put this filter format code into each of their .cshtml files is pretty "code smelly".
I am running the latest released build. 2013.2.918
Thanks,
Trav
I am trying to format the display of an integer (4 digit year) inside the filter column. Removing the comma.
Here is the detail grid .csthml snippet.
columns.Bound(s => s.SurveyYear).Filterable(f => f.UI("yearFilterFormatSurvey")).Width(85);
<
script
id
=
"yearFilterFormatSurvey"
type
=
"text/javascript"
>
function yearFilterFormatSurvey(element) {
element.kendoNumericTextBox({
format: 'n0',
decimals: 0,
});
}
</
script
>
Also I am unable to move the format code to a .js file? I can't move it to any other .cshtml file either. Many of the detail grids have this column and having to put this filter format code into each of their .cshtml files is pretty "code smelly".
I am running the latest released build. 2013.2.918
Thanks,
Trav