Skip to content Skip to sidebar Skip to footer

Declarative Dojox.grid.datagrid's Header Has Onclick Event?

Is it possible to have onclick in dojox.grid.datagrid's header. I tried calling a function in header's onclick.. but it doesn't work.
onHeaderCellClick which will probably do the job. If you need to get more information about events and such things I recommend reading the API Documentation. I wrote an example JSFiddle (grid is created programmatically, but you can do that declarative too) which you can find here.

The code that I use to call the event is the following:

onHeaderCellClick: function() {
    console.log("Header clicked");  
},

But of course, you can change this with whatever you like.

Post a Comment for "Declarative Dojox.grid.datagrid's Header Has Onclick Event?"