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

Scrolling and Grouping do not play well TOgether

7 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 05 May 2009, 05:15 PM
I had wanted to use 
 <Scrolling AllowScroll="true" SaveScrollPosition="false" UseStaticHeaders="true"/>
and


<GroupByExpressions>
                                            <telerik:GridGroupByExpression>
                                                <GroupByFields>
                                                    <telerik:GridGroupByField FieldAlias="FoundIn" FieldName="FoundIn" HeaderValueSeparator=" : "
                                                        SortOrder="Ascending" />
                                                </GroupByFields>
                                                <SelectFields>
                                                    <telerik:GridGroupByField FieldAlias="FoundIn" FieldName="FoundIn" />
                                                </SelectFields>


but this causes either the vertical scroll to collapse completely,

помоги

7 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 05 May 2009, 07:59 PM
Hi Zed,

I was unable to reproduce the effect that you described, I put this into a Grid I was working on and it grouped properly and still allowed for scrolling to work correctly.  Which version of the controls are you experiencing this one?  Would it be possible to post a copy of the code for your page which is displaying this erroneous behavior?  That might get us a little closer to why you are running into this issue.

Thanks!
-S
0
Zed
Top achievements
Rank 1
answered on 06 May 2009, 10:50 AM
It does work if the page is posted back.  It does not work when I pass a value via request paramaters from another page.  It had worked this way previous to putting in the clientsettings scrolling on the grid.  When I take clientsettings scrolling nodes out then it works again. 
My guess is the clientsetttings do something on page_init that screws up the scrolling and grouping for the first time only.
0
Accepted
Dimo
Telerik team
answered on 11 May 2009, 05:26 AM
Hi Zed,

In my opinion the grouping is not involved in the problem. Are you using an ajaxified RadGrid with a height set in percent? If yes, please refer to:

http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx

Here is one more example of a 100% high RadGrid (not ajaxified)

http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

If you need further assistance, please provide a full simple web page, so that we can see the exact implementation.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zed
Top achievements
Rank 1
answered on 11 May 2009, 11:29 AM
No dice.  The radgrid is ajaxified.  I copied the code into the page but still does the same thing.  It only fails on the first load of the page. 
0
Dimo
Telerik team
answered on 11 May 2009, 11:37 AM
Hi Zed,

As I mentioned in my previous message, we will need a runnable example, so that we can see what exactly goes on and help you further. A simple web page with dummy RadGrid datasource is enough. Thank you in advance.

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zed
Top achievements
Rank 1
answered on 11 May 2009, 12:09 PM
Is there a way to manually set scrolling so that the scroll bar does not calculate the rows showing verses total rows?  You are correct in that grouping has nothing to do with it.  I took it out the scrolling behavior continued.  You are also correct in that it has to do with the height of the radgrid.  If I change Height="100%" to Height="300px" then the scrolling works correctly.


Вы говорите по русский не правда-ли?
0
Dimo
Telerik team
answered on 11 May 2009, 01:29 PM
Hi Zed,

I am afraid that currently we use English as the only language for communication with clients.

Also, I am not sure what do you mean by "manually set scrolling so that the scroll bar does not calculate the rows showing verses total rows", but there are two ways to set RadGrid height when scrolling is enabled:

1) set RadGrid.Height
or
2) set RadGrid.ClientSettings.Scrolling.ScrollHeight

In the first case RadGrid calculates the height of the scrollable area, so that the total height of the control (including header, pager, etc) is as much as specified. In the second case, the RadGrid does not calculate any heights and the control does not flicker on initial page load.

If you need more information, please provide a simple runnable web page, which shows your implementation.


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Zed
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Zed
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or