Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sriram on Jul 22, 2009 06:45
open dhtmlx forum
Grid + Radiobutton

Hi,

My requirement is to have 3 radio buttons in a single column of a tree-grid(in a row). I mean there are 5 column headers of which two are of this type. So in a single row, 3 column headers will have some data and in the remaining 2 columns, there should be 3 radio buttons each. please provide a solution.

Thanks,
sriram.
Answer posted by dhxSupport on Jul 22, 2009 08:52
You can store any html inside single grid's cell:
<cell><![CDATA[
<input type='radio' value='any' />
]]></cell>

Also you can implement custom eXcell type. Please find more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_excell_creation.html#grid_cexc
Answer posted by sriram on Jul 22, 2009 23:29
Hi,

Thanks for the reply.
In case of    <cell><![CDATA[<input type='radio' value='any' />]]></cell>, the data should be loaded by loadXML, but i am not using that. Even the data inside the cell is not static, dynamically I am getting the data for the values of radio buttons.
Answer posted by dhxSupport on Jul 23, 2009 02:12
In such case better to implement custom eXcell type. It a bit more complex but can help you implement more complex business-logic.
Answer posted by sriram on Jul 23, 2009 07:30
Hi,

I went through http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_excell_creation.html#grid_cexc, but i didn't get a clear idea of how to use it in my case. Please help me out.
Answer posted by dhxSupport on Jul 23, 2009 07:52
Unfortunately we haven't ready solution for your user-case. You can contact sales@dhtmlx.com and request for component customization.