View Full Version : [CLOSED] The treepanel node selection disappears upon collapsing the selected node

Feb 04, 2013, 11:16 PM

To reproduce please go to this sample: http://examples2.ext.net/#/TreePanel/Advanced/TreeGrid/, select the 'Project:Shopping' node by clicking on it, then collapse it by clicking on its arrow icon. The selection disappears and this is confusing for the users. In the previous version it didn't use to do that. Please see this sample http://examples1.ext.net/#/TreePanel/Advanced/TreeGrid/.

Is there a workaround?

Just an update.

It seems to be a problem in ExtJs 4.1.1. If you go here http://cdn.sencha.com/ext-4.1.1a-gpl/examples/tree/treegrid.html, it exhibits the same issue. I also tested the TreeGrid sample in the latest version of Ext.Net from the trunk and it has the same behavior.

Another update: I created this report: http://www.sencha.com/forum/showthread.php?255631-The-treepanel-node-selection-disappears-upon-collapsing-the-selected-node&p=935668#post935668

Thank you

Feb 05, 2013, 12:23 AM

Apparently this bug is fixed, at least I cannot reproduce it with the last revision of branch 2.1. Try to update from this branch http://svn.ext.net/premium/branches/2.1 .

We are investigating this issue too.

Feb 05, 2013, 12:43 AM

I tested again using the latest trunk version, and it has been fixed in Ext.Net 2.2/ExtJs 4.2 (I was wrong in my initial post).

I also updated the sencha report. It seems that 4.2.0 works fine.

Feb 05, 2013, 12:57 AM
Can we close this thread?

Feb 05, 2013, 1:15 AM
Is there a patch that I could apply to Ext.Net 2.1/ExtJs 4.1.1 to fix this issue?

Feb 05, 2013, 4:21 AM
You can use 2.1 Branch. I couldn't reproduce your problem with this branch. And branch contains stable version of Ext JS

Feb 05, 2013, 11:01 AM
Hello everybody,

Yes, it appears to be fixed in 4.1.2 which the 2.1 branch uses.

Feb 05, 2013, 5:41 PM
Are you going to have an official release 2.1.2?

You can close the thread.

Thank you

Feb 05, 2013, 6:39 PM
Are you going to have an official release 2.1.2?

I guess "official" means public. But ExtJS released 4.1.2 and 4.1.3 for support subscribers only. Unfortunately, we can't use it in a public release.

I think ExtJS will not release any public release of 4.1.x since they are already developing 4.2.

So, the answer is no, we are not going to release 2.1.2.

The next public release will be 2.2 (based on 4.2).

Anyway, thank you for the reports - to us and to Sencha. We really appreciate it!

If you really need a fix/workaround for 4.1.1, I could try to find out. Do you need?

Feb 05, 2013, 6:50 PM
Thank you for the information, Daniil.

Yes, I would need the patch.

Feb 06, 2013, 2:10 PM
I think the following workaround should solve the problem.

<ItemCollapse Handler="if (this.getSelectionModel().isSelected(item)) {
}" />

A row stays selected, just it loses its CSS class to look selected.

So, my workaround just returns the CSS class for the selected row.

Hope this helps.

Feb 06, 2013, 6:09 PM
Thank you, Daniil! It works.