This is a migrated thread and some comments may be shown as answers.
"Skip" a cell, keeping the data in queue to render in next cell?
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Kenneth Jamieson
Top achievements
Rank 1
Kenneth Jamieson asked on 20 Mar 2012, 09:27 AM
So here is my problem, I have a page design to work on that is, in theory a 3 x 3 grid like this...

    X X X
    X X X 
    X X X

Where each X is a thumbnail. So far, no problem! Except the grid REALLY looks like this....

    * X X
    X * * 
    X * X

Where the * is a empty space ( a blank placeholder graphic ). The pattern will never change. The question is how can I inject some smarts into the grid templating (native or combined with JQuery templating) that will "skip" an iteration but not gobble up the data intended for that space?

Ken

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Mar 2012, 03:09 PM
Hi Kenneth,

Kendo templates allows use of JavaScript code inside the template definition. Generally speaking, you are not able to skip an iteration, however with if conditions you could change the appearance of the current field according to a variable. In that way you will modify the presentation of the data without loosing any records.

I hope this information helps.

All the best,
Alexander Valchev
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
Kenneth Jamieson
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or