Author Topic: how to get cell data instantly after call the "refreshCell" event  (Read 6500 times)

mailsrikanta

  • Newbie
  • *
  • Posts: 8
    • View Profile
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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #1 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.

« Last Edit: April 01, 2014, 11:18:11 pm by paramquery »

mailsrikanta

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #2 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"

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #3 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

« Last Edit: April 02, 2014, 05:51:16 pm by paramquery »

mailsrikanta

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #4 on: April 02, 2014, 06:44:37 pm »
Forgot to update the jsfiddle

Here is the updated one

http://jsfiddle.net/mailsrikanta/LAgZx/252/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #5 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/

mailsrikanta

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: how to get cell data instantly after call the "refreshCell" event
« Reply #6 on: April 02, 2014, 09:17:25 pm »
Thanks for the solution.