Forum

free jqgrid - custi...
 
Notifications
Clear all

free jqgrid - custiom action, change row color after click

   RSS

0
Topic starter

example

1 Answer
0
Topic starter

1. js code

1
2
3
4
5
6
7
action: "my_custom_action", position: "first", onClick: function (options) {
    var $userId = $('#jqGrid').jqGrid('getCell', options.rowid, 'id');
    $.get("user/my_action/" + $userId, function (data)
    {
        $("#jqGrid").jqGrid('setRowData',options.rowid, false, "my_class" );
    });
}
action: "my_custom_action", position: "first", onClick: function (options) {
	var $userId = $('#jqGrid').jqGrid('getCell', options.rowid, 'id');
	$.get("user/my_action/" + $userId, function (data)
	{
		$("#jqGrid").jqGrid('setRowData',options.rowid, false, "my_class" );
	});
}

2. css

1
2
3
.my_class, .wyslany_email > th, .my_class> td, .my_class{
    background-color: #99ff00;
}
.my_class, .wyslany_email > th, .my_class> td, .my_class{
	background-color: #99ff00;
}

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: