Conditionnal format && subgrid

QuestionsConditionnal format && subgrid
mofel asked 8 years ago

Hi Abu,

I have one page with a subgrid.
The subgrid is called edit_line_invoice.

I'm trying to make a conditionnal format on the subgrid so i added this option:

$opt["loadComplete"] = "function(ids) { grid_onload_sub(ids); }";

and the function grid_onload_sub:
http://pastebin.com/vB4mYbeg

When i load the subgrid i have well the alert popup but the lines didn't change the colors.
Is there something i made wrong ?

Thanks
Mofel

1 Answers
Abu Ghufran answered 8 years ago

If using hierarchical grid – subgrid, you need to use:
$g->id instead of edit_line_invoice, where $g is new jqgrid() of subgrid.

jQuery('#<?php echo $g->id ?> tr.jqgrow:eq('+i+')').css('background-image','inherit');

Your Answer

3 + 13 =

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?