fires on clicking the dhtmlxgrid area which is not filled with data
grid.attachEvent("onEmptyClick", function(ev){ // your code here });