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

rowTemplate + columnMenu + sortable

5 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 24 Jun 2014, 08:35 PM
I've found what seems to be a bug when combining a rowTemplate , columnMenu: true and sortable: true.

In the demo below, hide the Country column and then sort by the ID column. After the sort, some of the cells are not staying hidden! Am I doing something wrong?

http://trykendoui.telerik.com/@esorenson/UsOp

I'd appreciate any help!

5 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 26 Jun 2014, 10:04 AM
Hello Eric,

You must handle column hiding in the row template. The following forum thread gives possible implementation.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eric
Top achievements
Rank 1
answered on 27 Jun 2014, 04:53 PM
Thanks Nikolay, that helps, but it doesn't entirely fix the issues. Please see this example, which includes steps to recreate:

http://trykendoui.telerik.com/@esorenson/usas

Thanks,
Eric
0
Nikolay Rusev
Telerik team
answered on 30 Jun 2014, 10:27 AM
Hello Eric,

I wasn't able to replicate this behavior. Here is a short video capturing the execution of provided steps in Chrome Version 35.0.1916.153 m.

http://screencast.com/t/zfu4SsyUx

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eric
Top achievements
Rank 1
answered on 30 Jun 2014, 01:59 PM
Thanks for looking at this, Nikolay. The video does show the issue. 

In the first example, the Last Name cells appear under the Title header, and the Title cells appear under the Last Name header.

In the second example, Last Name cells appear under the First Name header.


0
Nikolay Rusev
Telerik team
answered on 01 Jul 2014, 06:17 AM
Hello Eric,

I've missed that. Here is what is happening:

 - first scenario - the order of columns as well as the visibility state matters. You should not have the field names in the template hard coded

 - second scenario - group cells must have `k-group-cell` class name. It is used for row alignment and those cells are skipped on show/hide columns.

Here is the updated example: http://trykendoui.telerik.com/@rusev/axuM.

Regards,
Nikolay Rusev
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
Eric
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Eric
Top achievements
Rank 1
Share this question
or