Grid #select_filter headers not working when enabling paging

Hello,

I have a grid control whose data is loaded/synced using dhtmlxDataStore:

[code] abDataStore = new dhtmlXDataStore({
url: “prMain.php”,
datatype: “xml”
});

. . .
aGrid.sync(abDataStore, {
sort:true,
filter:true
});
[/code]
If I enable grid paging, the grid’s #select_filter headers don’t show each column’s unique values – they don’t show anything at all!

				aGrid.enablePaging(true, 10, 3, "aPagingArea", true, "aRecInfoArea");

But if I turn off grid paging, they work correctly.

			        aGrid.enablePaging(false);

How do I solve this problem, please? Many thanks!

Hello, DHX people? Are you still there? Any thoughts about why the #select_filter isn’t working with enabled paging and datastore, please? I would like to know if you’ve been able to replicate this issue and what the solution might be.

Many thanks!

Hi,

Please check the next snippet snippet.dhtmlx.com/d5be62328

It implements the same scenario and works correctly. The key moment here is the usage of a second parameter of the sync command. It instructs that sorting in a grid must be applied to the underlying datastore.

Thanks, Stanislav, but if you look at my code sample, you’ll see I already specified:

aGrid.sync(abDataStore, {sort: true . . .

I’m still not sure why this doesn’t work.

I apologize.
The problem is confirmed. We’re working on it.

As a workaround please, try to call the
refreshFilters() after the sync() to update the filter collection:
snippet.dhtmlx.com/676a50c81

Thank you, friends. Looking forward to the bug being fixed. By and large, we really enjoy using your product!

Best wishes,

Ajaxian