If I put the Grid into a kendo-template for the TileLayout control, the ClientTemplate does not work properly. It only gets called once regardless of the number of items in the grid and the data is not being passed in.
This is my column definition:
columns.Bound(c => c.DocumentKey).Title(" ").ClientTemplate("#=CommandTemplate(data)#").Width(70);
And I am calling the .ToClientTemplate() on the Grid. Everything else work great except for this one issue.
I have not been able to find any other info, so what am I missing?
Hello Michael,
Since the Grid is declared into a Kendo Template the ClientTemplate configuration is another nested template inside the first one.
When you use nested templates you need to escape the "#" hash literal in the inner template to ensure it is going to be evaluated in the proper scope.
columns.Bound(c => c.DocumentKey).Title(" ").ClientTemplate("\\#=CommandTemplate(data)\\#").Width(70);
Please give this suggestion a try and let us know whether the issue persists.
Regards,
Stoyan
Progress Telerik