TabControl - Save between Tab Navigation

Last post 11-07-2008 12:58 PM by christsw. 4 replies.

Sort Posts:

  • TabControl - Save between Tab Navigation

    08-03-2007, 11:37 AM
    • Member
      point Member
    • charlisa
    • Member since 08-03-2007, 3:16 PM
    • Posts 2

    I have several tab panels on a tab control. I need a way to tell the user they have unsaved data and ask if they sure they want to go to the next tab?

    I have no problem getting a popup box to show when the user clicks from one tab to another tab if data has changed., letting the user know they have unsaved data. What I have not been able to figure out is how to keep the user on the same tab if they decide they want to stay on the same tab and save the data.

     Does anyone have a code example on how to do this?

     Thanks in advance,

     Charlisa

  • Re: TabControl - Save between Tab Navigation

    08-03-2007, 1:29 PM
    Answer
    • Participant
      1,258 point Participant
    • ArtemL
    • Member since 05-04-2007, 7:21 AM
    • Lviv, Ukraine
    • Posts 251

    Well, I see that TabContainer doesn't have such feature, it raises event after the active tab is actually changed, and unfortunately  there isn't event like activeTabInedxChanged that assumed to fire before changing with ability to cancel action.

    But, fortunately  Ajax Control Toollkit js-control behaviors is quite well organized and designed (I really like they idea with js-class hierarchy like the .net controls), so that you have opportunity to inherit  from AjaxControlToolkit.TabContainer js-class and extend it with such an event.

    Never ask users what they want, or they'll tell you
  • Re: TabControl - Save between Tab Navigation

    08-09-2007, 8:52 AM
    • Member
      point Member
    • charlisa
    • Member since 08-03-2007, 3:16 PM
    • Posts 2

    I'm hoping not to have to re-invent the wheel. I'm guessing someone out there has already has this working.

  • Re: TabControl - Save between Tab Navigation

    12-04-2007, 9:48 PM
    • Member
      166 point Member
    • joytony
    • Member since 06-05-2006, 12:31 PM
    • Posts 59

    Hi Charlisa,

     

    Have you sort out this problem?

     

    Or anybody know the answer? 

    MCSD.NET

    Make easy things into perfect.
  • Re: TabControl - Save between Tab Navigation

    11-07-2008, 12:58 PM
    • Member
      2 point Member
    • christsw
    • Member since 09-29-2008, 6:45 PM
    • Posts 3

    I would like to resurrect this as I have the same issue.  Anyone have a solution to this?  Why not put this functionality into the control????

     

    Scott

Page 1 of 1 (5 items)