refresh row

Questionsrefresh row
josep asked 9 years ago

Hello,
I PHPGRID in which the data is loaded from an array
There is a STATE column which has a certain color depending on its value.

$f = array();
$f["column"] = "ESTADO";
$f["op"] = "=";
$f["value"] = "PDV"; //
$f["cellcss"] = "'background-color':'#FAFAD2'";
$f_conditions[] = $f;

Using Jquery I change the value of a cell but does not change the color, ie
would need the value of the cell or better will refresh row.
Is there a possible solution?

4 Answers
Abu Ghufran answered 9 years ago

In following demo, the term with pepsi is labelled red.

Code: http://phpgrid.org/demo/demos/loading/load-array.phps
Live: http://phpgrid.org/demo/demos/loading/load-array.php

josep answered 9 years ago

This example does not conform to what I tell since you can not change the <name> column.

In my case it would be able to modify a cell in the column name where no bubiera the literal <Pepsi> and the disappearance of the red

Regards

Abu Ghufran answered 9 years ago

When you set cell from parent page, you will need to reload the popup grid to redo the formatting.
e.g. ventana.jQuery('#list1').trigger("reloadGrid",[{jqgrid_page:1}]);

http://pastebin.com/qSuiY0p4 + line 86

josep answered 9 years ago

Thank you very much,

this is what I need

regards

Your Answer

19 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?