Dear sir,
I saw the example of horizontal radio button
mygrid.setRowExcellType(“1”,“ra_str”);
mygrid.setRowTextStyle(“1”,“text-align:center”);
It is not working in my case. I provide you my code snippet.
newGrid.init();
newGrid.loadXML(“dhtmlxGrid/SubGridWebMailClient.xml”);
here, in xml, in header section i am provided type=ch so that all the cell contains the check box button.
------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
Sub Stage View: Web Mail Client
User
Group
Domain
Server
Site
Mail Client Login
Search
Search Results
View Mail
Act on Mail
Address book
Compose
------------------------------------------------------------------------------------------------------------------------------------------
here, what i am facing problem is, out of five column, i want to operate only on one column, means if a column is selected, then only the check box of that column should be active and remaining checkbox of other column must be deactivate. For this i want to put the horizontal radio button at first row.
Like in ur example dhtmlx.com/docs/products/doc … ndex.shtml, at 5th column ie ‘In Store’ if i select the radio button then only all the check box at that column must be activated(5th In Store).
Please, help to achieve the mentioned functionality as soon as possible.
Thank you.
Sandip
Method setRowExcellType(rowId, type) has paremeters
rowId - row ID
type - type of excell
In you case you shoul use
newGrid.init();
newGrid.loadXML(“dhtmlxGrid/SubGridWebMailClient.xml”,function(){
newGrid.setRowExcellType(“mailclientlogin”,“ra_str”);
newGrid.setRowTextStyle(“mailclientlogin”,“text-align:center”);
});
Please note that this method availible only at pro version.
To use “ra_str” type you should include dhtmlxgrid_excell_ra_str.js file.
To disable/enable columns after radiobutton clicking you can use setDisabled(true) method;