Apr 21, 2017, 10:41 PM
[CLOSED] How can I filter a GridPanel that has a mapped editor field?
I'm trying to setup a GridPanel like the Ext.net example for "Editor Field Mapping".
Basically, the situation requires a dictionary obj similar to the StoreCombo in the example code.
Whenever an editable field is constrained by a DB foreign key:
Similar to this:
However, our users also need to be able to filter the grid on these mapped editor-fields, like this other ext.net example.
My understanding is that although we've configured our rendering to display the user-description, the mapped editor field really links to the underlying DB ID. This means the filter actually tries to check the DB ID, which is not helpful to any users.
Is there a solution to reconfigure our filter to work against the user-descriptions? Client side filtering is our primary concern at the moment.
Basically, the situation requires a dictionary obj similar to the StoreCombo in the example code.
Whenever an editable field is constrained by a DB foreign key:
- we want this dictionary to hold all valid choices, so anyone making an edit can simply use a dropdown box to pick from them.
- And we also want to provide our JS code with a convenient mapping between the value's DB ID and a more user friendly description.
Similar to this:
However, our users also need to be able to filter the grid on these mapped editor-fields, like this other ext.net example.
My understanding is that although we've configured our rendering to display the user-description, the mapped editor field really links to the underlying DB ID. This means the filter actually tries to check the DB ID, which is not helpful to any users.
Is there a solution to reconfigure our filter to work against the user-descriptions? Client side filtering is our primary concern at the moment.
Last edited by fabricio.murta; May 17, 2017 at 8:17 PM.