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

ClientSelectColumn on radgrid with dynamic height

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
NikkiOs
Top achievements
Rank 1
NikkiOs asked on 05 Apr 2012, 09:14 AM
Hi!

I have developed asp.net with telerik components for about 1,5 years now.

I have found out that if I create radgrid on aspx that meets the following requirements, the clientSelectColumn starts to misbehave:
 * allow paging = false
 * allow scrolling on grids clientSettings
 * add some columns, including telerik:GridClientSelectColumn
 * on client side: window.onresize = resize();  <- resize the grid to fit the page on "onload" and "onresize".
f.ex:
function resize() {
    if (grid) {
        var w = document.documentElement.clientWidth;
        var h = document.documentElement.clientHeight -100;
        grid.get_element().style.height = h + "px";
        grid.repaint();
     }
}


 * on "OnNeedDataSource" event, load so much data that you have to scroll the page to reach bottom.

 * scroll down and select a line by clicking on clientselectcolumn checkbox.
 -> with every click the pages contains are moving upwards and off from the web browsers window.

I got the same results with IE 9 and Firefox 11 (not so much offset, but it jumped a few times though).
If i set the grids height to be a static value this problem doesn't show up.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 Apr 2012, 08:17 AM
Hi,

I have created a sample project to test the behavior you are describing but everything is working on my end.

Could you give the project a try and let me know if I am missing something.

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
NikkiOs
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or