Page view lost when editing in line in radgrid

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2012 Link to this post

    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?
  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 31 Jul 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top