Results 1 to 10 of 10

Thread: How to disable a cell in a Grid

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    30

    Default Answered: How to disable a cell in a Grid

    Hey all

    I have a little question about the grid and the cells in the grid. How can I disable a single cell in the Grid?

  2. So you are using a checkcolumnconfig. Take a look at the onMouseDown method and do not call the logic if it matches your case.

  3. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60

    Default

    What does disable mean for you? What are you trying to do?

  4. #3
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    30

    Default

    I will disable a single cell. disable meens that the user is not able to edit this cell. I have a grid with checkboxes and in the first row i like to disable the first cell in the second row the second cell and so on. how can i do that?

  5. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60

    Default

    So you do not want to allow editing?

    You can listen to the BeforeEdit event of the EditorGrid and cancel the event if you do not want to allow editing.

  6. #5
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    30

    Default

    The problem is that I have checkboxes in my Grid. I don't need an editor to edit a column. therefor i can not use the befor edit methods.

    Is there an other possiblity?

  7. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60

    Default

    What kind of checkboxes? We require more informations from you to actually help you. Best would be you would post a simple, standalone testcase implementing EntryPoint of your grid and explain exactly which behaviour you are looking for. Disabling a cell can mean anything.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •