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

Different Grid row template for mobile and desktop View.

2 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Taras
Top achievements
Rank 2
Taras asked on 10 Jul 2015, 12:02 PM

Hi, i need to implement kendo Grid for mobile and desktop view. The same data need to be showed in different way.

How data should looks like You can see in attached pictures.

So, my question. Is there any way to define different row template for mobile and desktop view to avoid creating two grids?

 

 

2 Answers, 1 is accepted

Sort by
0
Taras
Top achievements
Rank 2
answered on 10 Jul 2015, 12:10 PM
If it helps. The site is written on Asp.NET MVC, grid is added via angular directives.
0
Accepted
Alexander Valchev
Telerik team
answered on 14 Jul 2015, 11:21 AM
Hello Taras,

You may use kendo.support to detect if the application is run on mobile device and assign the corresponding template during in the configuration options.

For example:

rowTemplate: kendo.support.mobileOS ? $("#mobile-rowtemplate").html() : $("#web-rowtemplate").html()


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