In our page, the grid will be inside an accordian. So i would like to eliminate the caption layer and implement the hiddengrid:true functionality on clicking on the accordian instead of clicking on the caption layer icon(in specific on opening of accordian). How can I achieve this? Any suggestions , thanks in advance.
The main intention is to have the functionality like in the documentation of hiddengrid option
If set to true the grid is initially is hidden. The data is not loaded (no request is sent) and only the caption layer is shown. When the show/hide button is clicked for the first time to show grid, the request is sent to the server
You can use jQuery.slideUp, jQuery.slideDown or jQuery.slideToggle to implement the behavior close to
hiddengrid:true.To implement this you can place grid inside of a div like below
and use
if you need to toggle the grid.
The demo demonstrate this.
UPDATED: Probably you have some remote
datatypein the grid (“json” or “xml”) and want don’t load the grid contain at the beginning? In the case you need just usedatatype: "local"initially and usesetGridParamto change the datatype to"json"(or"xml") inside of “select” callback of tab. After changing the datatype you should calltrigger("reloadGrd")to load the data (or to refresh the data) from the server.