ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Jignesh on March 11, 2020, 05:49:40 pm

Title: Change disable cell value in grid
Post by: Jignesh 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
Title: Re: Change disable cell value in grid
Post by: paramvir on March 11, 2020, 06:09:04 pm
Pass checkEditable: false to updateRow method.

https://paramquery.com/pro/api#method-updateRow
Title: Re: Change disable cell value in grid
Post by: Jignesh 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
Title: Re: Change disable cell value in grid
Post by: paramvir 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' }
       });