/** * * A column config and component plugin that adds the ability for each row to be * expanded, showing custom content that spans all the rows columns. * with extended control over expanding rows * * you can add a custom renderer for the expanded part * thanks to siberian * http://www.extjs.com/forum/showthread.php?p=424228#post424228 * * @author anonym */public class ExtendedRowExpander extends RowExpander {

This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

But I don't need the interactivity that the plugin has; I just want the second line to span all of the columns and always be visible.

Is there an easy way to set this up?

Otherwise, I could probably modifiy the RowExpanded plugin example. But how could I modifiy this RowExpander plugin to default being Expanded when it's loaded. Right now, it defaults to being UnExpanded.

PS:
maybe as feature of ExtendedRowExpander it can be added to the class :-) something like this: setExpandControlsVisible(boolean visible)

This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

Awesome! Thanks for taking it one step further, its much more useful now.

I've replaced my version with yours and its working great.

I still have this problem that when I have a form element with 'setName(..)' invoked on it and I click on that element the row expander collapses. If setName(..) is not called(and thus the form is not bound) it doesn't collapse the row.

Finally have a test case!

If you bind an instance of ModelData to a Form within the ExtendedRowExpander selecting any elements that have a setName that autobinds to an element in the instance of ModelData will force the row to close.

When the row closes it fires no events, it just closes.

Source the shows the problem attached. Press the LoadXML button, expand a row and you'll see some checkboxes.

Checking a box that has no name set works fine.

Checking the box WITH a name set closes the row. Note that the element state is kept, the row is just closed.

If you comment out line 65 ( binding.bind(model); ) you can see that this is the problem.

I can't get deep enough to understand what is happening here. Feels like a CSS class change or something of this nature.

Basic issue: BeforeCollapse is not fired if the extended rowexpander has widgets in it that are bound to a form. Unbound widgets and anonymous widgets do not have this problem, only bound widgets (via setName("xx")).

This seems like it is a base class issue since the event is never fired from the grid but I am a bit out of my depth here.

Desperate
John-

------------

Originally Posted by siberian

If you bind an instance of ModelData to a Form within the ExtendedRowExpander selecting any elements that have a setName that autobinds to an element in the instance of ModelData will force the row to close.

When the row closes it fires no events, it just closes.

Source the shows the problem attached. Press the LoadXML button, expand a row and you'll see some checkboxes.

Checking a box that has no name set works fine.

Checking the box WITH a name set closes the row. Note that the element state is kept, the row is just closed.

If you comment out line 65 ( binding.bind(model); ) you can see that this is the problem.

I can't get deep enough to understand what is happening here. Feels like a CSS class change or something of this nature.