Need alternate row color for each order

QuestionsNeed alternate row color for each order
Danish asked 12 years ago

First i am thankful you & your team for giving us the great phpgrid. Its really good / owsum. I have one problem i hope you will help me for resolving my issue.

I have different types of order status like done,pending,process,delivered. I want to show each row with showing color like
done = grey color
pending =red color
process = yellow color
deliverd = red color

i am working on "jqgrid_dist.php" file but i didnt find the loop of rows. can you tell me what function or loop showing records. if you tell me i will control it through if conditions. I will be thankful for help me on this issue.

6 Answers
Abu Ghufran answered 12 years ago

Thanks for the appreciation. The conditional formatting of rows is still in development.
And it is planned to upcoming release.

There is no loop for records, as data arrives as json format, and core jqgrid lib, renders it. What we can do is to iterate using jquery dom to row that matches your condition, and set background color style for TR.

Regards,

– Abu

Danish answered 12 years ago

Hi Abu,

Thanks for promptly reply, can you help me on other way for doing this because I am stuck in this. Your positive reply will highly be appreciated.

Thanks

Abu Ghufran answered 12 years ago

This feature is related to conditional formatting of cell and rows which is under dev. and planned for upcoming version.

Brendan Flanagan answered 12 years ago

This would be very useful for me as well

adarsh answered 12 years ago

Hi,

I am trying to remove upper search text control. Can you please help me how can to remove it.

Thanks,
@darsh

Abu Ghufran answered 12 years ago

This feature is released now. Details are available on blog updates.

http://www.phpgrid.org/updates/conditional-row-formatting/

Your Answer

18 + 0 =

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?