Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:00:35+00:00 2026-05-29T08:00:35+00:00

I faced a problem with my dojo 1.6.1 EnhancedGrid. I’m trying to use paging

  • 0

I faced a problem with my dojo 1.6.1 EnhancedGrid. I’m trying to use paging and single selection mode like this :

<div id="theId" data-dojo-type="dojox.grid.EnhancedGrid"
data-dojo-props="selectionMode:'single', plugins: { indirectSelection: true,  pagination: {pageSizes: ['1'], description: true,sizeSwitch: true,pageStepper: true, gotoButton: true, maxPageStep: 4, position: 'bottom'}}">

Everything goes fine except when I select a row and then click on next page button the selection remains while the objects has changed. I have to do a dirty hack to fix this :

                    /**Let's hack it a bit **/
                grid.pagination.plugin.nextPageHook = grid.pagination.plugin.nextPage;
                grid.pagination.plugin.nextPage = function(src) {
                        this.grid.selection.select(-1);
                    this.nextPageHook();
                };

This guy does his jobb.

And the seccond problem is that I am not able to set default items number it’s always 25. No matter which number I pass to the plugin parameters with defaultPageSize. And even more, there is no such field in the object grid.pagination.plugin .
But still I can hack it like this :

                grid.pagination.plugin.pageSize = 1;
                grid.startup();

I hope I’m missing some thing and you can help me find out what. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:00:35+00:00Added an answer on May 29, 2026 at 8:00 am

    Sadly, it is a famous problem with Datagrid, it is kinda related to this also : http://bugs.dojotoolkit.org/ticket/13432

    For the number of rows, you have to use rowsPerPage (or rowPerPage don’t remember exactly) property

    Also make sure the correct headers are sent in the request (range, start count, etc)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have faced this problem couple of days ago, while trying to import an
I've faced this problem when I'm trying to upload my android application on Android
I faced a problem - I need to use a macro value both as
I have faced this problem quite often during the last couple of months, during
I have faced this problem on numerous sites I have developed, and now it
I have faced this problem when working with ORACLE 10g. I read the answers
I faced a problem with this setSelectedValue() method in JList when I wanted to
I think many of us has faced this problem on UITableView delegate method -
I faced a problem as to remove image with JS code like a... <img
I faced this problem how can I retrieve string with another language (not English)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.