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 8795023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:19:50+00:00 2026-06-13T23:19:50+00:00

I have Editable from Datatables , what i need to do is make ‘Browser’

  • 0

I have Editable from Datatables, what i need to do is make ‘Browser’ field editable when adding new item to table, and not editable for eg. to ‘label’ when editing. Adding is started by button and editing is started by clicking on row. So I could add something to those actions, but I don’t know if I can change type of field easy way.

ediTable({ fields: [{ name: 'Engine', type: 'select',
        selectOptions: ENGINE_OPTIONS
    },
                { name: 'Browser', type: 'text' },
                { name: 'Version', type: 'label' },
                { name: 'Platform', type: 'label' },
                { name: 'Grade', type: 'select', selectOptions: ['A', 'B', 'C', 'D', 'X'] },
                { name: 'Active', type: 'checkbox', trueValue: 'Y', falseValue: 'N'}]

code I have tried to add to button but nothing changed:

// edit the new row
emptyTable.ediTable('newRow', defaultData, { name: 'Browser', type: 'label' }); return false;
  • 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-13T23:19:51+00:00Added an answer on June 13, 2026 at 11:19 pm

    It turned out that one can’t change type of field but to make it editable when adding new item you can check Row parameter of onPreShowForm and then change attribute of field.

    When passed Row is null we know that form is displayed to enter new row, when Row is not null then we have form displayed to modify data.

    onPreShowForm: function (table, form, row) {
                    $("#btn-new").addClass("ui-state-disabled");
    
                    browserInput = $('input[name|="Browser"]');
                    if (row) {
                        browserInput.addClass("ui-state-disabled");
                        browserInput.attr("disabled", "disabled");
                    } else {
                        browserInput.removeClass("ui-state-disabled");
                        browserInput.removeAttr("disabled");
                    }
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need recommendations from people whom have implemented an easy to use GWT editable
I have an editable UITextField that takes input from the user. I need to
I have a form in which I have an editable authors field. When I
I am trying to do a simple task: I have an editable text field,
Well, I have GridView with editable field like 'TemplateField' with DropDownList. My code: <Columns>
For my iPhone app, I have an editable (for delete) table view. I'd like
I have an Editable Data grid which is pulling data from a SQL query
I have a TLF editable field in a swf file. Text entered there gets
I am trying to get the information from an editable text field in my
I have been looking for some examples and solutions using the jquery-datatables-editable plugin 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.