Quote:
Huh, I thought that you insist on samples that you can copy/paste it in Visual Studio and immediately reproduce problem.
Still a verbal explanation helps a lot:) Also we do not always provide a ready solution. Specifically, for experienced Ext.NET developers as you are. Our support also means "pushing into right directions". As well it is not always required for us to run samples. Sometimes it is possible to determine something just looking at the test case and reading the verbal description. In this specific case I was not sure what exactly doesn't work and asked to clarify something.
Quote:
Here I'm trying to select that node, but it does not happen (although I've got correct node).
Okay, now I am almost sure what is going wrong. A node is selected too early.
As stated in ExtJS docs a ViewReady event should be used to select a default row.
http://docs.sencha.com/extjs/4.2.1/#...vent-viewready
So, I would expect this working in a StateRestore handler.
Code:
this.on('viewready', function() {
this.getSelectionModel().select(record);
});
Quote:
Generally I would like is, as you said that there a number of solutions for this problem, your opinion am I doing it on the right way? Maybe there are some more elegant solutions.
I think you are on the right way.
Quote:
For example you saw that I set same pieces of code for both accordion panels, which is not so nice especially from perspective of supporting that in future.
I would recommend this approach:
Code:
l.StateRestore.Fn = "onStateRestore"
Code:
g.Fn = "myGetState"