ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: mailsrikanta on April 01, 2014, 01:08:40 pm

Title: how to get cell data instantly after call the "refreshCell" event
Post by: mailsrikanta on April 01, 2014, 01:08:40 pm
I used the refreshCell method after cellsave event

$grid.pqGrid("refreshCell", { rowIndx:ui.rowIndxPage, colIndx:8 } );

Bul the data not showing instantly after refresh the cell

I am making the modification in colIndex 4 need to show the data in colindx 8 instantly
Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: paramvir on April 01, 2014, 03:04:17 pm
your question is not clear enough.

refreshCell refreshes the view of a cell. it is usually used after making changes in dataModel.data[rowIndx][dataIndx]

could you provide an example on jsfiddle what you are trying to do.

Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: mailsrikanta on April 02, 2014, 05:19:38 pm
Here is the jsfiddle URL  http://jsfiddle.net/mailsrikanta/LAgZx/245/


I want to change some value

When I change the value of "Srikant" to "Srikanta"

then I want to replace the content "339,938.0" to "Srikanta" by refreshing cell

Note: I added the value to database onblur event of "Srikant"
Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: paramvir on April 02, 2014, 05:42:16 pm
your jsfiddle looks incomplete, where is "Srikant" and where is the code to modify that. Am I missing something

Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: mailsrikanta on April 02, 2014, 06:44:37 pm
Forgot to update the jsfiddle

Here is the updated one

http://jsfiddle.net/mailsrikanta/LAgZx/252/
Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: paramvir on April 02, 2014, 08:53:04 pm
in this example any change in company cell causes change in corresponding profits cell in the same row.

http://jsfiddle.net/LAgZx/255/
Title: Re: how to get cell data instantly after call the "refreshCell" event
Post by: mailsrikanta on April 02, 2014, 09:17:25 pm
Thanks for the solution.