Unplanned
Last Updated: 21 Mar 2022 10:04 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 07 Dec 2018 09:30
Category: GridView
Type: Bug Report
0
FIX. RadGridView - incorrect scrollbar's range when adding a new record to the master level and at least one row is expanded
To reproduce: please run the attached sample project and follow the steps illustrated in the attached gif file:

Scrolling to a newly added row does not work when inner templates are visible.

Add data to the inner templates of several rows near the bottom using the button.
Expand these inner templates so they are all visible.
Scroll back up to the top.
Add a new item to the outer grid normally.
The table will jump to where it things the new item is but will fall short, instead scrolling to a location in one of the inner templates.
Workaround:

        private void RadGridView1_UserAddedRow(object sender, GridViewRowEventArgs e)
        {
            foreach (GridViewRowInfo    row in this.radGridView1.Rows)
            {
                if (row.IsExpanded)
                {
                    row.IsExpanded = false;
                    row.IsExpanded = true;
                }
            }
        }
0 comments