Categories | Question details Back To List | ||||||||||||
Combine two columns in a single at GUI Hi, Is there any way to show two columns in a single cell , and then while serializing sending the values in two different cells. I want to show a check box in the column along with the text.And while serializing the grid it should be in two different cell , one containing the value of check box and other containing text. Please point me in right directions Thanks & regards Kaushal Answer posted by Support on Apr 17, 2008 02:25 There is no way to achieve such behavior, but you can set custom styles for columns, so it will look as single column, while it will be a two skinned columns Please check attached sample Attachments (1)
Answer posted by Kaushal on Apr 17, 2008 09:25 Hi , thanks this is exactly what I required. The only thing is how can I set the CSS style of a column using the dhtml API. not from xml , I want to add a dummy row when someone click on add button and then he can edit the values. so any way to provide css style for a column thanks & regards Kaushal Answer posted by Support on Apr 17, 2008 10:15 grid.setCellTextStyle(rowID,column_index," any css string here"). or assign css class as grid.cells(rowID,column_index).cell.className="some" |