1. #31
    Ext User
    Join Date
    Mar 2008
    Posts
    57
    Vote Rating
    0
    brenda is on a distinguished road

      0  

    Default


    Quote Originally Posted by NoahK17 View Post
    Use the latest version (1.7) and make sure the header you send in looks something like this:

    Code:
    <div id="x-grid3-hd-checker">&nbsp;Ref</div>
    Cheers!
    Thnx Noah
    I've followed your advice and customise the CSS a little with 2 images that I've split from the original one (row-check-sprite.gif) to obtained the following output:


    I've attached the little CSS codes that I've customised and the images:

    PHP Code:
    .x-grid3-hd-checker{
        
    background-image:url(../images/row-check-sprite-uncheck.gif);
        
    background-position:23px 1px;
    }

    .
    x-grid3-hd-checker-on .x-grid3-hd-checker{
        
    background-image:url(../images/row-check-sprite-check.gif);
        
    background-position:23px 1px;

    Attached Images

  2. #32
    Ext User
    Join Date
    Apr 2008
    Posts
    11
    Vote Rating
    0
    nb is on a distinguished road

      0  

    Default problem...

    problem...


    hi,

    I have used this smartcheckboxselectionmodel and i need something like below..plz tell how to do that..

    I need to catch event listeners when i select a row and another event listeners when i check the checkbox(as well as when i uncheck)...if i use something like that
    listeners:{rowselect:myFunctionOnSelect} , then both rowselect and checkbox check call the same function. how can i detect if it is row select or checkbox check?

    I have configuration email:true.

  3. #33
    Ext JS Premium Member NoahK17's Avatar
    Join Date
    Apr 2008
    Location
    Atlanta, GA
    Posts
    518
    Vote Rating
    1
    NoahK17 is on a distinguished road

      0  

    Default


    I see what you mean. Give me a few hours and I'll post an update that will suit your needs. Cheers!
    Noah
    Senior Web Developer
    NBA.com

  4. #34
    Ext User
    Join Date
    Jul 2008
    Posts
    55
    Vote Rating
    0
    imnphd is on a distinguished road

      0  

    Default remoteSort with Ext.grid.SmartCheckboxSelectionModel

    remoteSort with Ext.grid.SmartCheckboxSelectionModel


    Any ideas how can I make the Ext.grid.SmartCheckboxSelectionModel work using a remoteSort in the data store? Seems to me that I either have to send (via ajax) the status of a checkbox every time I check/uncheck or save the state of the of box using a unique id for the checked boxes....... or
    Thanks you.
    Isaac

  5. #35
    Ext JS Premium Member NoahK17's Avatar
    Join Date
    Apr 2008
    Location
    Atlanta, GA
    Posts
    518
    Vote Rating
    1
    NoahK17 is on a distinguished road

      0  

    Default


    If there is no paging, then using a remote sort should work out of the box. When you throw paging into the mix, you either have to use a Cookie/HTTP provider, and/or save the state of the checkboxes as they are clicked, and if that's done, you can comment out one or two lines in the SelectionModel to properly check the boxes again based on the store data.

    I could help you out with that part if you go that route... or if you come up with another method, I'd love to add your code to the SelectionModel

    @nb: Haven't had time yet to complete your request, but it's on my TODO list this week. Cheers!
    Noah
    Senior Web Developer
    NBA.com

  6. #36
    Ext User
    Join Date
    Jul 2008
    Posts
    55
    Vote Rating
    0
    imnphd is on a distinguished road

      0  

    Default


    I also need paging (I have ~56000 rows) so the idea of a Cookie/HTTP sounds the way to go. Let me know once you get the chance to implement it.
    Thanks again.
    Isaac

  7. #37
    Ext User
    Join Date
    Jul 2008
    Posts
    55
    Vote Rating
    0
    imnphd is on a distinguished road

      0  

    Default


    How can you identify each row? If you have a column in your data that is unique then there is no problem otherwise ..... hmmm...
    Isaac

  8. #38
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by imnphd View Post
    How can you identify each row? If you have a column in your data that is unique then there is no problem otherwise ..... hmmm...
    Isaac
    store the page no. somewhere.
    all that's needed then to uniquely identify a row (without the need for ids), assuming your sort order doesn't change, would be this formula:
    Code:
    var virtualRowId = (pageNo * pageSize) + rowNo;

  9. #39
    Ext User
    Join Date
    Jul 2008
    Posts
    55
    Vote Rating
    0
    imnphd is on a distinguished road

      0  

    Default


    That ain't gonna work as you said if you sort the grid.
    Isaac

  10. #40
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by imnphd View Post
    That ain't gonna work as you said if you sort the grid.
    Isaac
    duh.
    it's a mere alternative in the unfortunate event you don't have unique row ids.

    if you dislike that you could md5 all Fields in a Record and use that as a row id.
    and again the new assumption would be that none of the Fields are mutable.

Similar Threads

  1. Smart tooltip
    By same66 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 24 Feb 2011, 7:02 PM
  2. Ext.each : with remove - not smart enough
    By DaveC426913 in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 30 Nov 2010, 10:36 AM
  3. Is smart rendering possible in grid???
    By jeff77 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Sep 2010, 12:03 AM
  4. Smart Ext toolbar
    By tinnt in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 20 Nov 2008, 7:04 PM
  5. GridPanel - smart rendering
    By embolooloo in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 8 Oct 2007, 7:57 PM

Thread Participants: 62