1. #11
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    sagheer is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    err, The previous leaves a dirty marker .. here is a better approach:

    Code:
    header: 'Check',
    xtype: 'checkcolumn',
    dataIndex: 'check',
    editor: {
    disabled: true,
        xtype: 'checkbox'
    },
    listeners: {
        beforecheckchange: function(){
            return false; // disable check
        }
    }
    Scott.
    Hi Scott,

    I am using the same approach for disabling the checkboxes in checkcolumn and it works fine. How can I apply style to the disabled checkboxes so that they appear as disabled. In other words, this approach displays the checkcolumn as normal checkboxes but they don't appear as disabled (like normally checkboxes are on getting disabled e.g. gray colored). Any ideas in that regard.

  2. #12
    Sencha Premium Member
    Join Date
    Sep 2011
    Posts
    48
    Vote Rating
    1
    stahlman is on a distinguished road

      0  

    Default


    Quote Originally Posted by sagheer View Post
    Hi Scott,

    I am using the same approach for disabling the checkboxes in checkcolumn and it works fine. How can I apply style to the disabled checkboxes so that they appear as disabled. In other words, this approach displays the checkcolumn as normal checkboxes but they don't appear as disabled (like normally checkboxes are on getting disabled e.g. gray colored). Any ideas in that regard.
    Yes. This would be nice. I'm currently setting...
    Code:
    metaData.tdCls = 'x-item-disabled'
    within the renderer function when I want a checkbox to appear disabled. What I'd really like, however, is an easy way to access the underlying Checkbox component in an arbitrary cell of the grid; this would permit me to invoke (eg) the component's disable() method directly, which seems a bit cleaner and more robust...

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar