Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination + JsonRest behave unexpected #257

Closed
goldsky opened this issue Aug 20, 2012 · 6 comments
Closed

Pagination + JsonRest behave unexpected #257

goldsky opened this issue Aug 20, 2012 · 6 comments

Comments

@goldsky
Copy link

goldsky commented Aug 20, 2012

This is a copy of the email post I sent here: http://dojo-toolkit.33424.n3.nabble.com/Dgrid-Pagination-tp3988439p3988597.html

I found a problem where the grid sometimes rendered as expected, sometimes it's gone after rendered.
Here is the screencast: http://screencast-o-matic.com/watch/cljo6v7B2
This was tested on Firefox 14, Chrome 21.0.1180.75 m, and Safari for
windows 5.1.7

The module I used on this case were ColumnHider, ColumnResizer, and Pagination.
Eliminating the fist two didn't fix anything.

@oyaaraas
Copy link

We also have this issue with the pagination grid. Especially problematic in IE and dojo 1.8 (approx in 70 % of the cases this issue appears.). While using dojo 1.7.1 the issue is happening less frequently, but still 10-20 % of the time, so we might have to reconsider using the Pagination extension.

@oyaaraas
Copy link

Also, the rendering of the grid is somewhat misplaced on top of the header. See http://i46.tinypic.com/kdl4d1.png for example.

@kfranqueiro
Copy link
Member

We've been unable to reproduce this issue (e.g. in test/extensions/Pagination_tree.html which uses a simple mocked JsonRest service in PHP). Are any dgrid-error events emitted (or any other sorts of errors) when it fails? Perhaps try instructing the browser to break on all errors and see if that points out anything in the cases where the data disappears?

@oyaaraas: regarding the rendering issue, does it snap back into place if you resize the browser (or call resize on the grid explicitly)? If so, you're probably not calling the grid's startup at the most appropriate time (i.e. additional styles or resizes are happening after startup, which the grid can't react to until resize is called again). Otherwise it could just be something to do with the styles employed. If this is still an issue for you I'd suggest opening a separate issue for it, to keep this one focused on the problem of disappearing data.

@kfranqueiro
Copy link
Member

Given no further information, we're closing this ticket. If you can provide more information or a reduced test case, though, we'll be happy to take a look.

@spsenthilraja
Copy link

If we use onDemandGrid and Pagination with jsonRest store we can reproduce this issue. Grid calls Rest service twice because of that sometimes rendering happens weird

@kfranqueiro
Copy link
Member

You shouldn't be mixing OnDemandGrid and Pagination together; this is specifically mentioned in the Pagination documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants