Hello! Independently study ExtJS ...
There was a question of such a plan:
There is a grid displaying the data Store (obtained from the server). The data is received in standard chunks ( Paging is applied, but I am going to switch to PagingScroller ).
So, one of the attributes of the elements is the pos (it is not displayed in the table, but the Store receives it) by which the data is sorted (on the server, since they are still obtained page by page). I want to make two buttons on the toolbar above the table (there are already there - add, edit, delete): up and down. Which will change this attribute is to exchange it with the top or bottom element. Ideally, of course, I would like to be able to drag elements in the table to the desired positions with the mouse and cause a corresponding change in the pos attribute ...
But I still have no idea how this can be done ...
I hope someone will help me with this ...
Type options
grid.getStore().remove(record, true); grid.getStore().insert(index, record);
I ask you not to offer them - at the moment I’m considering them and I don’t like them - the extra actions, the data - and after all, the two attributes of the same name need to be changed ...
PS If necessary, and they will get into the question, then I can cite code fragments.