Scrolling and Grouping do not play well TOgether

8 posts, 1 answers
  1. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 05 May 2009 Link to this post

    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,

    помоги
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 05 May 2009 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 06 May 2009 Link to this post

    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.
  5. Answer
    Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 11 May 2009 Link to this post

    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.
  6. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 11 May 2009 Link to this post

    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. 
  7. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 11 May 2009 Link to this post

    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.
  8. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 11 May 2009 Link to this post

    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.


    Вы говорите по русский не правда-ли?
  9. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 11 May 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017