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 8624911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:38:56+00:00 2026-06-12T07:38:56+00:00

Why does CheckboxModel deselect all selected rows on page change when using paging toolbar

  • 0

Why does CheckboxModel deselect all selected rows on page change when using paging toolbar? How do I stop the deselection of rows on page change?

I see there is a pruneRemoved which can be used to prevent the pruning of nodes, I set it to false, but the deselect is still fired. Not sure what else to try.

I’m assuming checkboxmodel registers with the store or maybe pagingtoolbar to be notified when the store changes…then deselects everything? Why? I need to prevent that.

Edit:
The reason I don’t want the deselectAll to be fired is; I attach a handler on select and deselect. Select adds rows to another grid, deselect removes them. So when the user checks a checkbox that row is added to another grid, when they uncheck it it is removed from that grid. By the grid firing a deselectAll, when the store changes, I lose all my saved rows in the other grid.

  • 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-06-12T07:38:58+00:00Added an answer on June 12, 2026 at 7:38 am

    I’m not sure if this is the correct way to do this but it’s working for me.

    What I did was create my own Ext.grid.View. I extended ext.view.Table and over-road the onMaskBeforeShow method. This is the method that was calling deselect all on the grids selection model. As you can see I commented it out here

    Ext.define('Ext.grid.SteveView', {
        extend: 'Ext.view.Table',
        alias: 'widget.stevegridview',
    
        onMaskBeforeShow: function(){
            var me = this,
                loadingHeight = me.loadingHeight;
    
            //me.getSelectionModel().deselectAll();
            me.all.clear();
            if (loadingHeight && loadingHeight > me.getHeight()) {
                me.hasLoadingHeight = true;
                me.oldMinHeight = me.minHeight;
                me.minHeight = loadingHeight;
                me.updateLayout();
            }
        }
    });
    

    Include the above script, then when you create a grid, change the viewType to stevegridview, or whatever you decide to name it

        {
            xtype: 'grid', 
            viewType:'stevegridview',
            store:'some store'
            ...
        }
    

    The new view type will be used a the new onMaskBeforeShow() will be called.

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

Sidebar

Related Questions

Does anyone know if there is a way to generate different code in the
Does anyone out there know how to integrate ContentFlow ( http://www.jacksasylum.eu/ContentFlow ) and Lightbox2
Does there is any library or algorithm that can do auto detection of tags
Does anyone out there know what image format results in the fastest loading speeds?
Does anyone have any suggestions for the best / simplest way to view all
Does anyone know how to replace all ocurences of '<\d+' regex with '\r\n<\d+', for
Does anyone know of any existing solutions using javascript that can parse a crontab
Does it possible to access microphone or Webcam using Visual Basic Scripting ? i
Does anyone know how to make this code stop the knob from rotating past
Does anyone have any experience with using product keys for VS2012 within VS2010? I

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.