Detach Header

I have a code snippet

mygrid.setHeader(“ID #,Name,Total,#cspan,<%=gridHeader.replaceAll(”,",",#cspan,")%>,#cspan");


I need to detach the attached header on click of a button on my page.

I tried using


But this doesn’t work out.

Am able to detach the main header using mygrid.detachHeader(‘0’,’’).

But doesn’t work with the attached header.

Is there any other way to acheive this?

The code above must work correctly, you need not any special command except of detachHeader call.
Please check attached sample - it uses the same code and works correctly.
If problem still occurs for you - please provide any kind of sample where issue can be reconstructed. (84.3 KB)