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

Page view lost when editing in line in radgrid

1 Answer 24 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 26 Jul 2012, 02:32 PM
I have a tabstrib and multiview.   Each Pageview ahs a seperate user control.  Several have radgrid on them with an edit column.   When the user clicks edit.  the page postbacks and after the page refreshes the control for multiview with tabindex of 0 is displayed.   TO get back to original tab you need to click another tab then back to originating tab with radgird.   When it is displayed,  the tab is blank.   WHat do I need to do to get the edit to work?

1 Answer, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 31 Jul 2012, 04:35 PM
Hello, Kevin.

There are a couple ways to do this:

1) on edit  button click you could store the current tab index; then on server side PageLoad you can check if you are using postback and if so, you can focus the tab you need.

2) you could use RadAjaxPanel and put the entire grid in there. That way only the page portion of the grid will be reloaded and not the entire page.

The second option should be much easier to achieve, as it requires just to wrap the grid. There is an example shown here -- http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/entityframeworkcrud/defaultcs.aspx. Additionally, you may add a loading panel not to leave the users in the dark about the asynchronous stuff going on.

Greetings,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Share this question
or