Hi !
I am trying to detach and then attach header.After detaching the header and then attaching,I am not able to see the attach header.Below is the code :
myGrid.loadXML{
URL,
function(){
myGrid.detachHeader(1);
var subheaderString=",Bookings (USD),My Comm Bookings,My Non Comm Bookings,My Comm Backlog,My Comm Revenue";
myGrid.attachHeader(subheaderString,“left,right,right,right,right,right”);
});
Please tell me what exactly the mistake I am doing.
Thanks;
Ravi Gopalani
There is a syntax problem with your code
var subheaderString="<span title="This
double quotes used for all string and inside the string as well - in result string can’t be correctly parsed by javascript
To solve problem just replace surrounding quotes with single ones.
var subheaderString=’,Bookings (USD),My Comm Bookings,My Non Comm Bookings,My Comm Backlog,My Comm Revenue’;