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

hideColumn then showColumn corrupts NestedView Grid

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dominic
Top achievements
Rank 1
Dominic asked on 22 Oct 2014, 01:48 PM
I have a grid (rgVisitors) with a NestedViewTemplate that contains another grid (rgLogs).

The grids are populated using client side webservices.

On the client (javascript) I clear and refresh the main rgVisitors grid data.
Part of that process involves toggling a GridClientSelectColumn column in the rgVisitors grid using MasterTableView.showColumn(colIndex)

This all works fine except that once I have the data; when I expand a rgVisitor row and attempt to populate the NestedView grid (rgLogs) then this rgLogs grid doesn't display across the whole width of the containing Grid (HTML inspection shows it has a colspan=7 )

If I flip the toggle again to hide and then show my GridClientSelectColumn column, then after reloading the main grid (rgVisitors) and attempting to expand the row shows the NestedView grid (rgLogs) data even narrower than last time (HTML inspection shows it has a colspan=4 )

I have attached 2 images that demonstrate this along with the highlighted line of HTML with Colspan that seems to be dynamically changing.

Any ideas? Is it a bug?



1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 27 Oct 2014, 01:41 PM
Hi Dominic,

Could you please try to call repaint() on the client for the problematic Grid and verify if this makes any difference? Also in case you are suing any Ajax settings on the page, please try to disable the Ajax and verify how it goes.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Dominic
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or