Checkboxes are not dispalying


Yesterday i sent a question about my checkbox display problem. But i didnt provide the code. Now i am giving the code.


var grid = document.getElementById(‘DivBranchReqtoRHO’);


ViewBranchRequestList = new dhtmlXGridObject(grid);


ViewBranchRequestList.imgURL = “…/Images/dhtml grid imgs/”;


ViewBranchRequestList.setHeader(“BranchRequestId,BranchCd,BranchRequestNo,BranchReqDate,Select,Edit,”);


ViewBranchRequestList.setInitWidths(",,,,,");


ViewBranchRequestList.setSkin(“light”);


ViewBranchRequestList.setColTypes(“ro,ro,ro,ro,ch,ra,”);


ViewBranchRequestList.setColAlign(“center,center,right,right,right,right”);


ViewBranchRequestList.setColSorting(“str,str,str,str,str,str”);


ViewBranchRequestList.init();


the xml string is:








35a27ba5-414c-4f74-a4ea-2bb999c1e10a


A12


12


2008-09-03T00:00:00+05:30








0


0


860e22e9-ddf7-4593-a134-a246b493f99f


A12


12


2008-09-03T00:00:00+05:30








7b21bcf7-793d-4836-b4bd-a405c4160bd4


A12


12


2008-09-03T00:00:00+05:30








In the above xml string , i am sending data for BranchRequestId , BranchCd , BranchRequestNo , BranchReqDate resp…( not sending data for checkboxes and radio button columns).


Here i am unable to display the checkbox and radio buttons.


Can you please solve this problem


Regards,


Raja

not sending data for checkboxes and radio button columns
If you not providing any data for cell - it will not be rendered, this is behavior of grid.
Issue can be resolved by providing default values as part of grid config


Next line
ViewBranchRequestList.setColTypes(“ro,ro,ro,ro,ch,ra,”);
Need to be changed as
ViewBranchRequestList.setColTypes(“ro,ro,ro,ro,ch[0],ra[0]”);