Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Time delay in grid filters

$
0
0
Hi Team,

We are currently using:-
BuildDate Wed Mar 05 15:52:00 IST 2014
Version 4.1p
SCVersionNumber v9.1p_2014-03-05

We have implemented smart gwt filters in our List Grid(and tree grid too).
I am using following to create my dropdown in grid.This fires DataBase call on selecting any option of my dropdown where as i want it to act as a multiselect.

Code:

ListGridField[] listGridArray = new ListGridField[...];

listGridArray[index].setMultiple(true);
listGridArray[index].setFilterOnKeypress(true);
listGridArray[index].setValueMap(dropDownOptions);

This fires DataBase call on selecting any option of my dropdown where as i want it to act as a multiselect.Can you suggest a way to introduce a delay of 2-3 secs so that user is able to select multiple options out of the dropdown.?
Or any other suggestions to cause it to act like multiselect are welcome other than setFilterOnKeypress(false) as our basic requirement is that user is uncomfortable pressing the "apply filter" key due to its indistinct UI.

P.S. - I am capturing the filtereditor too for some actions and then i give a manual DB call.

Code:


this.addFilterEditorSubmitHandler(new FilterEditorSubmitHandler() {
            @Override
            public void onFilterEditorSubmit(FilterEditorSubmitEvent event) {
                    //..Some code
                portlet.getGrid().fetchData(criteria);
            }
        });


Viewing all articles
Browse latest Browse all 4756

Latest Images

Trending Articles



Latest Images