-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to set the header of a grid using templates? #41
Comments
Currently the header does not use KO templates. However, you can do something like: <div data-bind="kendoGrid: { data: items, rowTemplate: 'rowTmpl', altRowTemplate: 'altTmpl',
useKOTemplates: true, columns: [{headerTemplate: 'a'},{headerTemplate: 'b'},{headerTemplate: 'c'}]}">
</div> Here is a sample: http://jsfiddle.net/rniemeyer/MWLre/ Does that work for you? |
Thanks a lot that's work perfectly. |
The only problem I now have with the headerTemplate is I can't use the sortable and the groupable function on my Grid. Do you know a workaround for this? Thanks |
Looks like you just need to make sure that you specify which field that each column pertains to, so like:
|
Hello, Regarding this issue, there is one small problem : the sorting will not work on observable items. So if I get my info through $.getJSON from a server-side controller action, the data mapped in the kendo grid will not be sorted, even though the column header has the small arrow attached to it. Is there a way around it? Thanks, |
How to set Row Header in Kendo UI? |
Hey,
I'm using the kendoGrid binder to create my grid and i'm using the rowTemplate. The result is the grid without header. I want to know if it's possible to define the header of this grid?
Thanks alot
The text was updated successfully, but these errors were encountered: