Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Setting scrollTop property reduces the WebDataGrid row count
posted

While setting scrollTop to records above 150 with the following logic "webGrid.ScrollTop = dt.Rows.Count * 30;" reduces the webGrid row count.

Kindly suggest, how to scroll to the bottom of the grid when huge records are present.

  • 16310
    Offline posted

    Hi Preethy,

    I have tested this on a basic sample and was not able to experience any issues. How I tested - on Page_Load after binding the grid I am setting the scrollTop:

        protected void Page_Load(object sender, EventArgs e)
        {
            this.WebDataGrid1.DataSource = (DataTable)Session["data"];
            this.WebDataGrid1.ScrollTop = 5600;
        }

    • In order to reproduce the issue you have and suggested accordingly, please provide more information on:
    • what is the workflow, when do you set the scrollTop ?
    • the exact version of .NET advantage that you use
    • the browser you use and its version number
    • what exactly happens - does the number of rendered rows is reduced and you see less rows ?

    I am looking forward to hearing from you.