Conditional format with combination fields.

QuestionsConditional format with combination fields.
Sebastián Esteller asked 11 years ago

Hello,
Is possible conditonal format with combination fields? I need combine data of diferend fields for change background color of the row.

Thanks!

1 Answers
Abu Ghufran answered 11 years ago

You can do it with following code.
I am also emailing you demo php file.

Regards,

PHP side…

$e["js_on_load_complete"] = "do_onload";

$grid->set_events($e);

HTML side …

<script>
function do_onload(ids)
{
if(ids.rows) jQuery.each(ids.rows,function(i){

if (this.gender.toLowerCase() == 'male' && this.company.indexOf('Bl') != -1)
{
jQuery('#list1 tr.jqgrow:eq('+i+')').css('background','inherit').css({'background-color':'#FBEC88', 'color':'green'});
}
});
}
</script>

Your Answer

2 + 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?