0

I use ExtJS Classic 7.3.1.

Hi, tell me what to do, please I found a bug - https://fiddle.sencha.com/#view/editor&fiddle/3rlq

when restoring a state, if a column has a sorter and is located in another column, an error occurs.

at the same time, if the column is taken out separately (Type (OK SORTER)), then everything is restored perfectly.

actions:

  1. sort by column Type (OK SORTER);
  2. refresh the page - the restoration of the state should go fine, i.e. the sorting will be on the column from paragraph 1;
  3. sort by Day column (BUG SORTER)
  4. refresh the page - it will try to restore the state, but it will fall with an error
  5. clear the ext-tree panel state in localStorage

1 Answer 1

0

You have to add the sorter to the subgrid.

  1. Remove all sorters from your treepanel.

  2. Create a custom column-type for your sub-columns

  3. Create your own functionality for applyColumnState, getColumnState and sort

    Ext.define('MyApp.SubColumn', { extend: 'Ext.grid.column.Column', xtype: 'subcolumn',

     applyColumnState: function...,
     getColumnState:   function...,
     sort:             function...
    

    });

Now you can customize your column states as you like.

With a bit of tweaking you should be able to get it running.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.