set information in grid header

I set a grid and load data from connector.

I want to ask I display the number of slected record and loading time in the grid header ?

How about this method ?

You may change the header’s text using the following api:
mygrid.setColLabel(ind,“New Column Label”);

mygrid.attachEvent("onXLE", function(grid_obj,count){ grid_obj.setColLabel(0,new Date();) });

to get the number of selected records:

mygrid.attachEvent("onSelectStateChanged", function(id){ ar=id.split(",") console.log(ar.length) mygrid.setColLabel(0,ar.length) });