grid - extendets..

4 views
Skip to first unread message

mb

unread,
Apr 21, 2008, 4:17:54 AM4/21/08
to PHP-Ext
how can i get a expander row like

http://extjs.com/deploy/dev/examples/grid/grid3.html

or a combination of expander row and checkbox-selection??

Sergei Walter Guerra

unread,
Apr 21, 2008, 12:43:19 PM4/21/08
to php...@googlegroups.com
Mmm... Basically what you need to create a row body is to set the setEnableRowBody property to true on the GridView and you can customize it by using some javascript using the with the getRowClass.  Its a little tweaky.  In that example they are using a user extension called RowExpander which does exactly that.  Basically it works as a column renderer and a grid plugin.  It renders the +/- icon and expands the row content and handles the expand/collapse events.  To be able to use these extension in PHP-Ext we can add the raw javascript to our page and use PhpExt_Javascript:variable() to get the reference to the js object used; or... of course it can be implemented as a user extension (as the SearchField and XmlErrorReader). Oh, one more thing plugins are not yet enabled in PHP-Ext, will be soon.  Let me see if all of these can be implemented and included in the trunk cause its a nice to have extension.

Abou the checkbox, you can use the CheckboxSelectionModel (grid namespace).  Just create a new instance, configure it and set it to the SelectionModel property in the GridPanel.  I'm not quite sure how the RowExpander and the CheckboxSelectionModel could live together but I'm thinking they could since row expander its an extra column.

Thanks for asking
--
Sergei Walter
ser...@gmail.com

mb

unread,
Apr 28, 2008, 11:54:50 AM4/28/08
to PHP-Ext
i test the last 3 days to add the rowexpander, but i need a little
more help...


can you help me - please ;D
> serg...@gmail.com
Reply all
Reply to author
Forward
0 new messages