hi guys,
i want to suggest a new method to set the grid caption with this function (v4.2.0)
file: grid.base.js (add: id='”+ts.p.id+”_caption')
line 2403: $(grid.cDiv).append(arf).append(""+ts.p.caption+"")
change by this line
$(grid.cDiv).append(arf).append(""+ts.p.caption+"")
and
below the line 2505 add this in order to extend the jqgrid API
$.jgrid.extend({
setCaption:function(newCaption){
var $t = this[0];
$('#' + $t.p.id + '_caption').html(newCaption);
},
and can be used like this
$('#MyjqGrid').jqGrid('setCaption', 'My new super awesome caption!');
a simple but functional method,
regards!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top