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

  • SEARCH
  • Home
  • 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 8516027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:18:25+00:00 2026-06-11T05:18:25+00:00

When the user clicks add and hits the reload button without saving the row,

  • 0

When the user clicks add and hits the reload button without saving the row, the Add button is not restored. The Save & Cancel buttons are still active. How do I cancel inline row editing manually? Or is there a way to find these buttons so I can hide them?

  • 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-11T05:18:27+00:00Added an answer on June 11, 2026 at 5:18 am

    To enable the button added by inlineNav you need to remove the class 'ui-state-disabled' (call .removeClass('ui-state-disabled')). To disable the button you need to add the class 'ui-state-disabled' (call .addClass('ui-state-disabled')). To identify (to select with respect of jQuery) the buttons you need to know that the id of the buttons will be constructed from the grid’s id and the suffix constructed based on the button name: "_ilsave", "_ilcancel", "_iladd", "_iledit". For example if the id of the grid is "list" then the id of the save button will be "list_ilsave".

    To reset the state the buttons before or after refreshing the grid you can use afterRefresh or beforeRefresh callbacks of navGrid (see the documentation) or to do this inside of loadComplete callback. For example

    loadComplete: function () {
        var idSelector = "#" + $.jgrid.jqID(this.id);
        $(idSelector +"_ilsave").addClass('ui-state-disabled');
        $(idSelector +"_ilcancel").addClass('ui-state-disabled');
        $(idSelector +"_iladd").removeClass('ui-state-disabled');
        $(idSelector +"_iledit").removeClass('ui-state-disabled');
    }
    

    Alternatively you can use showAddEditButtons instead of all the above calls:

    loadComplete: function () {
        $(this).jqGrid("showAddEditButtons");
    }
    

    I included the above code mostly for the case that you need to do other kind of “enabling” or “disabling” of the buttons.

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

Sidebar

Related Questions

I'm generating table rows N times. If the user clicks add row buttons, I'm
When a user clicks a 'Add Node' button above a tree and the program
I want to add a new row to my JSON when the user clicks
.Net 4 WPF DataGrid MVVM User clicks add button which triggers command on viewmodel.
I have a add to list button.when user clicks on button the data in
When the user clicks add more options, a from is created with javascript document.getElementById('addmore').innerHTML
I'm trying to add a $('body').live('click') listener after the user clicks on a div.
I managed to write add program that upon the user click a button, he
When the user clicks on a button, a new ListFragment is displayed. This fragment
If a user clicks the blank row at the bottom of a DataGridView 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.