PDA

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



bogc
Feb 04, 2013, 10:16 PM
Hello:

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

Baidaly
Feb 04, 2013, 11:23 PM
Hello!

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.

bogc
Feb 04, 2013, 11:43 PM
Hi:

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.

Baidaly
Feb 04, 2013, 11:57 PM
Can we close this thread?

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

Baidaly
Feb 05, 2013, 3: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

Daniil
Feb 05, 2013, 10:01 AM
Hello everybody,

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

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

You can close the thread.

Thank you

Daniil
Feb 05, 2013, 5: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?

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

Yes, I would need the patch.

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

<Listeners>
<ItemCollapse Handler="if (this.getSelectionModel().isSelected(item)) {
Ext.fly(this.getView().getNode(item)).addCls('x-grid-row-selected');
}" />
</Listeners>

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.

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