How change a value in a cell for a icon…

QuestionsHow change a value in a cell for a icon…
Manuel Torres asked 12 years ago

Hi and Congratulation for this great component,

I`d like to change the value of a cell (value 1 or value 0), for a icon (.png).
If the value is 1, the icon would be ok.png, or value 0 = icon notgood.png.

I´ve been using something like this : "formatter"]= "js:formatpdf";
and a js funtion…

Thanks

Answers
Abu Ghufran answered 12 years ago

You can refer this update. See docs for more.

http://www.phpgrid.org/updates/conditional-buttons-in-php-grid/

If you are using licensed version, This sample is avaialble in demos/appearence/conditional-data.php

Abu Ghufran answered 12 years ago

The demo perhaps, little different from what you are expecting.

Refer http://www.phpgrid.org/docs/ > Conditional Content

Manuel Torres answered 12 years ago

Ok, sure! is a bit diferent, but it could be done with that…only that Im using free version…(I`m testing and improving my PHP coding),

anyway thanks so much!

Your Answer

15 + 1 =

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?