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

[Solved] RadGridView programmatically expand master-details

3 Answers 279 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Par Developer
Top achievements
Rank 1
Par Developer asked on 01 Nov 2010, 09:04 PM
Hello, I have a page with RadGridView. Each row has master-details that expand when user clicks on a [+] on a row. When I add a new record, I need the grid to:

1) scroll down to that new record so it is visible on the screen;
2) open that new record's master-details so the user can start entering data. The master-details of the new row must be visible on the screen also.

To scroll to the new row, I use:
grid.ScrollIntoView(grid.SelectedItem);
and it works. But how can I programmatically open the master-details for that row?

Thanks,
Serge.

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 02 Nov 2010, 08:04 AM
Hi Serge,

Please see this forum thread for a sample project.

Kind regards,
Veselin Vasilev
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
0
Par Developer
Top achievements
Rank 1
answered on 02 Nov 2010, 07:41 PM
Thanks, that helped to open the row details, BUT: the details are not on the screen. The user still has to scroll down to see the details. What happens is: the new row is added and the grid scrolls down to make it visible, so the new row is exactly at the bottom of the screen. Then the grid opens the details, which go right below the screen, so is not visible. How can I make the details also visible programmatically? The idea is that the user clicks on the "Add" button, and is immediately able to enter data in the row detail without the need to scroll down.

Thanks,
Serge.
0
Veselin Vasilev
Telerik team
answered on 04 Nov 2010, 04:40 PM
Hello Serge,

The best you can do in this case is wait for our official Q3 2010 release scheduled for the end of the next week. This functionality will be available there out of the box.

All the best,
Veselin Vasilev
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
Par Developer
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Par Developer
Top achievements
Rank 1
Share this question
or