Apr 22, 2020, 12:08 AM
Reorder columns and apply filter in one call
I have a grid, with a tree panel next to it that has a bunch of nodes that allow the user to refill the grid with a different set of parameters coming back from the server.
We have the ability to let the users save a "favorite" view that comprises the order of the columns and the filterHeader applied to those columns (adds a new button in the tree view under another node named "Custom Views").
My predecessor handled this by calling a DirectMethod in C# code behind that regenerates the columns with the new order from the "meta" parameter in the grid load function. After is has loaded the new ColumnBase, it calls
Unfortunately, this creates a twice loading major flicker that is very annoying.
Is there a way to re-order the columns (there aren't any new ones being added) and set the filterHeader value all in JavaScript and then make just ONE call to the backend that will refill the grid?
I realize that I will need to do a quiet call to the server to get the column order and filter value, but this should be doable without causing any flicker for the user.
I found some replies to this, but most are quite old, EXT V1 in most cases, so I'd rather find a newer example.
Appreciate your help!
Bob Graham
We have the ability to let the users save a "favorite" view that comprises the order of the columns and the filterHeader applied to those columns (adds a new button in the tree view under another node named "Custom Views").
My predecessor handled this by calling a DirectMethod in C# code behind that regenerates the columns with the new order from the "meta" parameter in the grid load function. After is has loaded the new ColumnBase, it calls
X.Js.Call("applyFilter");
to apply the filterHeader value.Unfortunately, this creates a twice loading major flicker that is very annoying.
Is there a way to re-order the columns (there aren't any new ones being added) and set the filterHeader value all in JavaScript and then make just ONE call to the backend that will refill the grid?
I realize that I will need to do a quiet call to the server to get the column order and filter value, but this should be doable without causing any flicker for the user.
I found some replies to this, but most are quite old, EXT V1 in most cases, so I'd rather find a newer example.
Appreciate your help!
Bob Graham