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

FilterEditor doesnt fire after datasource update

$
0
0
Hi,
We have a problem with the filtereditor of a Listgrid. We haven't changed something at this during the update to smartclient 10, and it was working with smartclietn 9.1 so we assume there were some changes resulting into this bug. Because we are using sessions and the restricted datasources we cannot create an example for fast reproduction. I'll try to describe the problem as detailed as i can.

We are using the datasource in a lsitgrid and have around 8k values. At the beginning a specific subset is loaded over the datasource.
Code:

isc.ListGrid.create({
        "ID" : "theListGrid",
        "showFilterEditor" : false,
        "selectionType" : "single",
        "canEdit" : true,
        "editEvent" : "click",
        "height" : 600,
        "width" : 600,
        "validateByCell" : true,
        dataSource : isc.DataSource.create({
                "fields" :
                [{
                        "name" : "theIndex",
                        "title" : "Index",
                        "type" : "text",
                        "width" : 20,
                        "canEdit" : false,
                },{
                        "name" : "theFirstField",
                        "title" : "first field",
                        "type" : "text",
                        "width" : "*",
                        "canEdit" : true,
                        "editorProperties" : {
                                "ID" : "theFirstField_editor"
                        }
                }
                ],
                "dataFormat" : "json",
                "dataURL" : "our datasource",
                "transformRequest" : ourRequestHandler,
                "transformResponse" : ourResponseHandler,
                "recordXPath" : "\/resultData"
        }),
        "autoFetchData" : true,
        "dataProperties" : {
                "useClientFiltering" : false
        }
});

If the user enables a checkbox, the result of the datasource changes and we are calling this methods
Code:

theListGrid.setShowFilterEditor(true);
theListGrid.invalidateCache();
theListGrid.fetchData();

Then the editorfilter shows up and the user can type and submit the value via enter.
The result json of the datasource shows no errors and the entry is saved sucessfully.
Code:

{
 "resultData":
 {
  "theIndex": 1
  "theFirstField":"the new changed value",
 }
}

After this the user want to search for another item with the editorfilter.

The user can enter the text he's searching for, but by clicking enter the listgrid doesnt fire an event to search in the datasource and therefore the last searchresults are staying in the listgrid. I assume there's a bug, which prevents the event being fired after an datasource-update.

Currently we are using SmartClient_v100p_2014-10-28_Pro and the problem exists with all browsers.

Viewing all articles
Browse latest Browse all 4756

Trending Articles