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
    Admin
    Eyup avatar
    3015 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:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/selectitem

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

    Regards,
    Eyup
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top