Results 1 to 2 of 2

Thread: Checkcolumn error when adding events

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2016
    Posts
    9

    Default Checkcolumn error when adding events

    I'm trying to configure a grid with a checkbox (checkcolumn):

    HTML Code:
    <grid #item [store]="store" [height]="180" [plugins]="{grideditable: true}" [itemConfig]="{viewModel: {}}">
        <checkcolumn #item text="Provided" dataIndex="provided" width="150" [onCheckChange]="gridCheckboxChange"></checkcolumn>
    </grid>
    This is giving me an error:

    PHP Code:
    Uncaught ErrorTemplate parse errors:Binding to event property 'onCheckChange' is disallowed for security reasonsplease use (CheckChange)=...If 'onCheckChange' is a directive inputmake sure the directive is imported by the current module. ("e="true"></column> 
    I cannot add any listeners to this checkbox which is currently in the grid. How do I add a listener to this checkcolumn? https://docs.sencha.com/extangular/6...-onCheckChange

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2016
    Posts
    9

    Default

    I had to use the listeners property rather than binding to the event directly. This works:

    PHP Code:
    <checkcolumn #item text="Provided" dataIndex="provided" width="150" onchange="gridCheckboxChange" 
    [listeners]="{checkChange:onProvidedCheckChange}"></checkcolumn

Tags for this Thread

Posting Permissions

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