Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:43:17+00:00 2026-06-15T18:43:17+00:00

I have a tab strip containing many tabs. when i make some changes in

  • 0

I have a tab strip containing many tabs. when i make some changes in tab 2, a confirm msg pops up asking if i want to continue without saving and if i say yes, i need to reset the value of the modified field in tab 2 to its original. Please help me do this.

please find below my sample code

Html.Telerik().TabStrip().Name("TabStripEmployeeDetail")
       .Items(items =>
       {
           items.Add()
               .Text("tab1").HtmlAttributes(new { onclick = "return  warnOfChanges()" })
               .LoadContentFrom(......);
           items.Add().HtmlAttributes(new { onclick = "return  warnOfChanges()" })
               .Text("tab2")
               .LoadContentFrom(......);
           items.Add()
               .Text("tab3")
               .LoadContentFrom(.......);
           items.Add()
               .Text("tab4")
               .LoadContentFrom(....);
           items.Add()

I have a javascript function

   function warnOfChanges()  {
        if(documentmodified) {
            return confirm('Changes have been made on this tab. Continue without saving?');
        }
        return true;
    };

and i am calling this onclick of the tab. please help here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:43:18+00:00Added an answer on June 15, 2026 at 6:43 pm

    First of all I suggest you to use the select event of the TabStrip instead of attaching the same handler on the tab items.

    To actually reset these settings (since you are loading them with Ajax) the easiest way would be to refresh the content of the TabFrom the server. To refresh a particular tab you could use the reload method of the Client API.

    Check the documentation for examples how to use the reload method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tab strip that contains many tabs. I need to assign an
I am developing a tab strip. I want the selected tab has to overlap
I have a tab delimeted file that I want to convert into a mysql
I have a jQuery tab section - and I want to animate the panels
I have tabstrip with multiple tabs. In each tab I have a number of
I have an ASP.NET MVC3 project that uses a tab strip on certain pages.
I have a tabcontrol and I want to put some tabitem headers aligned to
I have Tab Layout that contains a TextView. I'd like to assign some text
I have a text file containing 5-line chunks of tab-delimited lines: 1 \t DESCRIPTION
I'm working on a dynamic Telerik Tab Strip. Each tab have a Grid and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.