This is a migrated thread and some comments may be shown as answers.

templating documentation

3 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 28 Nov 2012, 06:15 AM
where can I find documentation on MVC widget templating such as the grid? I see examples here and there on 
http://demos.kendoui.com/web/grid eg. rowTemplate: kendo.template($("#rows").html()), altRowTemplate: kendo.template($("#rows-alt").html()),

but where can I find documentation for templating for mvc? would also like to see documentation as to how to use logic in templating for the mvc grid wrappers

eg.

# if(product == 12345) { # 

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 30 Nov 2012, 02:32 PM
Hello Phil,

Kendo UI Wrappers for ASP.NET MVC are using the standard Kendo UI templates. You can find more details here:
http://docs.kendoui.com/getting-started/framework/templates/overview

http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/faq

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Peter
Top achievements
Rank 1
answered on 07 Dec 2012, 12:25 PM
Hi,

I have a similar issue in that I can't find anywhere which details how to add a template for alternate rows in the documentation for the MVC grid.

I'm already using ClientRowTemplate and as far as I can make out I'll need to create a KendoUI template (not a problem) and then add it to the generated grid in the client but I can't work out how to do that.

Pete Sykes
0
Nikolay Rusev
Telerik team
answered on 12 Dec 2012, 12:16 PM
Hello Pete,

I am afraid that currently Kendo UI Grid wrapper for ASP.NET MVC does not expose setting for altTemplate as in the Kendo UI Grid.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Phil
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Peter
Top achievements
Rank 1
Share this question
or