PDA

View Full Version : [CLOSED] RowExpander bug and question



rbtceo
Jul 04, 2014, 6:36 AM
Hi All,

1)Bug on page:
http://examples2.ext.net/#/Associations/HasMany/Simple/

make SingleExpand="true" to get the bug.

2) How to hide/rid off the row expander for records where there are no 'Products'?
Grid: "Users with RowExpander"

Thank you.

Daniil
Jul 04, 2014, 10:18 AM
Hi @rbtceo,



1)Bug on page:
http://examples2.ext.net/#/Associations/HasMany/Simple/

make SingleExpand="true" to get the bug.


Please change

<AfterRender Handler="this.bindStore(this.record.products());" />
to

<ViewReady Handler="this.bindStore(this.record.products());" Delay="1" />



2) How to hide/rid off the row expander for records where there are no 'Products'?
Grid: "Users with RowExpander"


Please return false from a RowExpander's Renderer:

<Renderer Handler="return record.products().getCount() !== 0;" />

rbtceo
Jul 06, 2014, 11:06 PM
Thank you.

1 is still a bug:
we always see user1's products if SingleExpand is "true"

13331

Daniil
Jul 07, 2014, 4:29 AM
Yes, you probably should re-bind a Store to the inner GridPanel on each row expand.

rbtceo
Jul 07, 2014, 4:33 AM
Thank you

The thread can be closed.