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

Grid With Grouping fills only half of Page

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dimitar
Top achievements
Rank 1
Dimitar asked on 07 Aug 2011, 08:33 PM
Hi all,

We have a very curious layout bug in one of our pages.
We have a grid with grouping that on certain undefined circumstances is shrinked and displayed within the half of the page (see screenshot)

The collegue that did this page (and is currently not in the project any more) wanted the groups to be collapsed initially and wrote a function that goes like this:


function CollapseAll(event) {
    var tableView = $find('<%=RadGrid1.ClientID %>').get_masterTableView();
    var rows = tableView.get_element().rows;
    for (var i = 0, len = tableView.get_element().rows.length; i < len; i++) {
        var button = tableView._getGroupExpandButton(rows[i]);
        if (button) {
            var groupLevel = button.id.split("__")[2];
            if (groupLevel == 0) {
                tableView._toggleGroupsExpand(button, event);
            }
        }
    }
}

We have tried to turn off the function, but it still is displayed the same way. 
When testing local - it works fine.

Any help regarding this will be very appreciated.

Thank in advance!
 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Aug 2011, 05:56 PM
Hello Dimitar,

Could you send us the problematic aspx page and code-behind (please, use the code formatter tool of the ticket editor)?We will test them locally and advise you further.

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Dimitar
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or