Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
Paging buttons work with mousedown and selection with mouseup
posted

I've a grid that uses both Selection and Paging features.

The problem is that paging buttons work with mousedown and selection with mouseup. This is an issue because when the last page has fewer elements than the other pages, the user clicks 'Previous' (or 'First' or a page number, whatever), the grid goes to that page and when the user releases the mouse button, the row below the cursor is selected. I need to avoid this to happen. How can I do?

I've thought a workaround but I don't know how to do it: the grid's body should have always the same height (according to the amount of items per page). So if each row has a height of 40px and there are 15 items per page, the grid's body should have a height of 600px. If there are only 10 elements shown, then the grid's body should have 200px empty below those elements. Is there any way to achieve this?

Thanks.