Row-oriented radio button
There is a possibility to set row-oriented radio button in dhtmlxGrid. To achieve this use "ra_str"
row eXcell type.
There is a possibility to set row-oriented radio button in dhtmlxGrid. To achieve this use "ra_str"
row eXcell type.
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css"> <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> <script src="../../codebase/excells/dhtmlxgrid_excell_ra_str.js"></script> <div id="gridbox" style="width:600px;height:270px;background-color:white;"></div> <br> <script></script>mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication"); mygrid.setInitWidths("50,150,120,80,80,80,80,200"); mygrid.setColAlign("center,left,left,right,center,left,center,center"); mygrid.setColTypes("dyn,ed,ed,price,ch,co,ra,ro"); mygrid.getCombo(5).put(2, 2); mygrid.setColSorting("int,str,str,int,str,str,str,date"); mygrid.setSkin("dhx_skyblue"); mygrid.init(); mygrid.loadXML("../common/grid.xml", function() { mygrid.setRowExcellType("1", "ra_str"); mygrid.setRowTextStyle("1", "text-align:center"); });