CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

strange behaviour in grid with filtered dataset

by tasnim » 27 Nov 2017 15:14

hi everyone

i have a grid, with direction set to right to left, and dataset provider.
my dataset provider attached to a query.
when i open a query, grid adapt very well and show number of rows according to my browser height and when i change browser size it adapt well.
but when i filter my dataset and reload grid (ajaxrerender also checked) it show total page number correctly (for example 3 page).
in first page half of the time show full list of record and half of the time it show record to 1/2 of grid and second part of grid is remain empty
when i navigate to second ans third page it's always empty.
when i resize browser it always show up to record that is displays in first page.
for example if i resize browser and make it smaller page count change from 3 to 6.
page 1, 2 show records, page 3 some time show record and other page always remain empty.

i also want to thanks, your component is so greate :D
tasnim
 
Posts: 11
Joined: 08 Nov 2017 09:42

by Alexander Bulei » 27 Nov 2017 16:00

Hi tasnim,

Please, post here the simple testcase project.
TIA

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by tasnim » 27 Nov 2017 21:52

Hi Alexander

i try to reproduce it with access as database and ado connection for test case, but it worked fine.
i use nexusdb as database and with it problem always exist.
one thing i discovered is when i change DataseProvider->GotoMethod from dsgtRowNo to dsgtMoveBy there is no problem, but
it become so slow when grid page is more than 500 pages, again when i put it back to dsgtRowNo only 1..4 page has data and other page become blank, column headers are exist, no data, and no cell border line, complete white page,
when changing a page loading... message will be displayed and page number is changed but no data will be show.

thanks
tasnim
 
Posts: 11
Joined: 08 Nov 2017 09:42

by tasnim » 27 Nov 2017 22:46

same behavior with Jqgridoption.scroll = true
when i scroll down to 2 or 3 page it become white

i have a sql query with around 6000 record, and has a autoinc field Named ID as key, in dataset provider i set keyfields to ID (also check with no keyfields)

i checked with simple filter statement as follow:
Code: Select all
Query,Filter := '(ID>1000) AND (ID<3000)';
Query,Filtered := True;
tasnim
 
Posts: 11
Joined: 08 Nov 2017 09:42

by Jorge Sousa » 29 Nov 2017 10:55

Hi tasnim

CGDevTools needs RecNo to operate so you must set dsoRecNoSupport to your Query->Options

DatasetProvider->GotoMethod = dsgtMoveBy, was introduced, precisely to support datasets without RecNo
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQGrid

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Contact Us.