Fancy Box Grid Caption

QuestionsFancy Box Grid Caption
Raistlin Majere asked 6 years ago

Hi.

$grid_options[“onSelectRow”] = “function(id){ $(‘#detailgrid’).jqGrid(‘setCaption’,’Customer ID =’ + id); }”;

I need to show the Customer name instead of Id on detail grid caption. How can I get the Customer Name from selected row?

1 Answers
Abu Ghufran Staff answered 6 years ago

Hello,

Assuming you have a column with name ‘custname’ of grid id ‘list1’, then:

$grid_options[“onSelectRow”] = “function(id){
var row = $(‘#list1’).getRowData(id);
$(‘#detailgrid’).jqGrid(‘setCaption’,’Customer:’ + row.custname);
}”;

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

1 + 5 =

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?