Hi All,
I have a grid working in a razor template that shows four levels of expansion. Right now it is all Server bound and working fine.
My goal now is two add the Ajax calls for the Payments grid to allow the user to Page records without a Postback for the entire page. Which does not work because the user loses their place as the page loads again.
The error I got by just adding the Ajax DataBinding declaration was "NotSupportedException: "Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well."
Looking at this link http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-troubleshooting.html#ClientTemplates it seems to demonstrate that you drop in the client template beside the server.Template.
The view I am building uses Razor @helper methods to render the grids. That takes place passing in the WebViewPage, and the data from the parent grid using the DetailViiew(). So I have modified the working view (see attached .cshtml) here to add (or try to add) the .ClientTemplate() code.
The error now is ... " Cannot convert lambda expression to type 'string' because it is not a delegate type", the offending line is the @<text> line in the client template.
Is this the right approach? Do we need to provide a client template for each column? And can someone help with formatting here? The intellisense seems to like it at design time.
Any help would be appreciated.
Thanks,
Reid