Author Topic: Change disable cell value in grid  (Read 2354 times)

Jignesh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 46
    • View Profile
Change disable cell value in grid
« on: March 11, 2020, 05:49:40 pm »
Hi Paramvir,

How we will change disable cell value in jquery?

Below are my code:
--> column code
        dt.push({
            title: "Result", editable: false, , dataIndx: "testresult"
        });

--> change cell value by code:
        grid.updateRow(
             rowIndx: 2,
             newRow: { 'testresult': 'Cheese' }
       });

Thanks,
Jignesh

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Change disable cell value in grid
« Reply #1 on: March 11, 2020, 06:09:04 pm »
Pass checkEditable: false to updateRow method.

https://paramquery.com/pro/api#method-updateRow

Jignesh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Change disable cell value in grid
« Reply #2 on: March 16, 2020, 11:20:06 am »
Hi Paramvir,

I have tried this code for diable column means editable false value change but It has not worked for me. Can you please give me demo code in fiddle?

I have also posted code in the start of the thread please look into this.

Thank you,
Jignesh

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Change disable cell value in grid
« Reply #3 on: March 16, 2020, 10:12:39 pm »
your updateRow method call also has a syntax error.

Please use this:

Code: [Select]
grid.updateRow({
             rowIndx: 2,
     checkEditable: false,
             newRow: { 'testresult': 'Cheese' }
       });