Scroll and select to last row of radgrid in c# code

2 posts, 0 answers
  1. Matteo
    Matteo avatar
    1 posts
    Member since:
    Apr 2016

    Posted 02 Jun Link to this post

    How do I go to the last row of the RadGrid? the line must be visible and selected. I did so but it does not work (Prerender event):
                    int c = rdg.Items.Count;
                    GridDataItem item = rdg.Items[c - 1];

                    rdg.ClientSettings.Scrolling.AllowScroll = true;
                    item.Font.Bold = true;
                    item.Selected = true;
                    item.Display = true;
                    item.Visible = true;
  2. Eyup
    Eyup avatar
    2941 posts

    Posted 07 Jun Link to this post

    Hi Matteo,

    You can achieve this requirement only on client-side. Select the last item using the OnCreated event handler or Page_Load or $(document).ready:

    Then, you can use the scrolling logic demonstrated in the attached web site sample.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top