View Full Version : How to add Multiple radio button and checkbox in grid row.
7 Sep 2011, 12:47 AM
In extjs How add Mulitiple radio button and Checkbox in gridview row.
8 Sep 2011, 1:18 AM
It depends on exactly what you want but you'd almost certainly use a renderer on the relevant columns. One option would be to just render suitable HTML input elements. Another option would be to renderer images of radio buttons and checkboxes, possibly using an actioncolumn.
8 Sep 2011, 6:19 AM
thanks for your quick replay all time,
here i haveExt js Grid.
In which i have 2 field. from first field multiple radio button and second field multiple checkbox.
in radio button field i have 2 button and in checkbox i have 4 field.
How can i display it in form i did it but in grid view how to display this both button
8 Sep 2011, 10:12 AM
I see 3 options.
Render them as HTML input elements.
Render them as images and fake the functionality. See: http://dev.sencha.com/deploy/ext-4.0.2a/examples/grid/cell-editing.html
Inject ExtJS component after the grid is rendered. Some care must be taken to manage the lifecycles of these components.
To use the injection approach you'd listen on a suitable event of the grid then grab cells for the rows and inject components using either renderTo or the render() method. Another way might be to extend Column.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.