3/3/2011 12:45:41 AM
Title:
How to Create Itemrenderer for AdvancedDataGrid with AdvancedDataGridGroupItemRenderer with two diff
Hello,
I was extending Itemrenderer for AdvancedDataGrid with AdvancedDataGridGroupItemRenderer. Is it possible to define two different itemrendrers for single column?
Help would be highly appreciated.
Thanks,
Nilesh
3/3/2011 10:23:29 AM
Using two itemrenderers is not possible for one column. But I have an Idea instead. You can create two containers inside the renderer . And depending upon the value show or hide the required design. for eg . If you have to show textbox or combo in a single column. Then you can create listener like creation complete inside the renderer which shows or hides its content depending upon the value of textbox. If value is String then show textbox or else show combo.
3/7/2011 9:48:05 PM
Its better to maintain a state using viewstack / states in item-renderer and based upon the type of data, view can be changed and managed effectively.
Hope the idea will help u..
3/7/2011 10:15:26 PM
Thanks,
But issue is I have two components in my itemrenderer checkbox and radio button. On createChildren() method in renderer I am not able to get data for itemrender.