--- In [email protected], "Amy" <amyblankens...@...> wrote:
>
> --- In [email protected], "Denis" <morentsov_d@> wrote:
> >
> > Hi there,
> > 
> > I need to sort the advanced grid but I want the sort apply only 
> > certain nodes of data. For example Group 0 contains 10 items which 
it 
> > makes sense to sort while Group 1 contain items which should 
always 
> > remain in the same sequence. The sequence should not even change 
if 
> > the sort changes from ascending to descending. In other words, the 
> > sort should only affect certain groups of data.
> > 
> > From the docs, it looks like the sortCompareFunction cannot 
> accomplish 
> > this since it does not expose the characteristics of the current 
sort 
> > - it just determines the sequence of two elements.
> 
> AdvancedDateGrid casts its dataProvider to 
HierarchicalCollectionView, 
> which means that if you have any node you know what its parent is.  
> sortCompare tells you what the node is.
> 
> HTH;
> 
> Amy
>
Thanks Amy! This is helpful - I will play with this and try to make it 
work.

Reply via email to