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

  • Home
  • SEARCH
  • 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 7538567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:09:12+00:00 2026-05-30T07:09:12+00:00

I want my Ext.grid.CheckboxSelectionModel to be loaded with all checkboxes in the SelectionModel checked.

  • 0

I want my Ext.grid.CheckboxSelectionModel to be loaded with all checkboxes in the SelectionModel checked.

I write this method:

function SelectAllRows()
{     
    var sModel = reportsGrid.getSelectionModel();
    sModel.selectAll(true);    
}

And try to call it from many places:

var xmlStore = new Ext.data.Store({
    url: "...",
    reader: new Ext.data.XmlReader({
        record: '...',
        totalRecords: "results"
    },
    record
)
});

xmlStore.on('load', CheckResults);
xmlStore.on('load', SelectAllRows);
xmlStore.load();

But only on the first entrance to the page it work well, when I come back from the next page it doesn’t work.

It is strange that when I add to the bottom bar a label wich contains the sum of a data of the checked rows, and the label show the sum of all rows!
So, the method called well, but the checkboxes don’t show as checked.

Have you met this problem?

  • 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-30T07:09:13+00:00Added an answer on May 30, 2026 at 7:09 am

    I saw it happened because of the render activated twice,
    Added this value -‘deferRowRender: false’- to the Ext.grid.GridPanel properties ,
    make the checkboxes be marked on every entrance/load of th page.

    var reportsGrid = new Ext.grid.GridPanel({
        cm: new Ext.grid.ColumnModel([
            sm,
            { id: '...', dataIndex: '...', hidden: true },
            { header: '...', width: 200, sortable: true, dataIndex: '...' }
        ]),  
        sm: sm,                  
        deferRowRender: false
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This crashes: var grdMakes = Ext.extend(Ext.grid.Panel, { constructor: function(paConfig) { } } This does
I want to create a property grid like this: Ext JS Property Grid demo
here is my js file dashboard.js Ext.onReady(function(){ Ext.QuickTips.init(); // **want to know why this
Consider this example: http://docs.sencha.com/ext-js/4-0/#!/example/grid/binding-with-classes.html I want handle 'selectionchange' event in the controller. Like following
How can I get JSON array from Ext.data.Store outside the function? The code: var
I'm using Ext.ux.grid.RowExpander var expander = new Ext.ux.grid.RowExpander({ tpl : new Ext.Template( '<p>{history}</p>' )
I want to write a bash script that (recursively) processes all files of a
I am want to change the color of selected row of grid (gwt-ext grid)
What is the equivalent to the ExtJs3 Ext.grid.ColumnModel in ExtJs4? What I want to
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ I have this one function where

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.