This is a migrated thread and some comments may be shown as answers.

GridView default scrolling

1 Answer 10 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 10 May 2011, 11:20 PM
I have a GridView with 1000 records.  I use the following code to add a record:

private void btnAdd_Click(object sender, RoutedEventArgs e)
{
    CounterPartyExposure counterPartyExposure = this._viewModel.InsertNewItem();
    if (counterPartyExposure != null)
    {
        // Scroll to item
        this.radGridView.ScrollIntoView(counterPartyExposure);
        
        
// Set current item
        this.radGridView.CurrentItem = counterPartyExposure;
        this.radGridView.CurrentColumn = this.radGridView.Columns["CounterParty"];
        
        // BeginEdit on current record
        this.radGridView.BeginEdit();
    }
}

After the user enters data for the new record and clicks out of the row, the grid scrolls to the top of the records.  In the case where we have 1000 records, this is not acceptable.  I want to disallow any default scrolling.  There is no re-binding that occurs so that is not the issue.  Please advise.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 May 2011, 07:56 AM
Hello Brian,

I have tried to reproduce the issue you defined, but unfortunately without any success. May you take a look at the sample attached to verify whether I am missing something considering your requirements?
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or