@dusrkdldlr

@dusrkdldlr

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: how to get column value on mount state(not composition API) #101431
    dusrkdldlr
    Member

    hello I use vue, and column value mean cell value…
     

    in reply to: custom pager #101421
    dusrkdldlr
    Member

    how to use grid.pager.template?

    in reply to: columns with button #101395
    dusrkdldlr
    Member

    thank you!!!!! it work!!
    but..  followed “Uncaught TypeError: Cannot read property ‘disabled’ of undefined” error.
     
     
    Button inside the column was clicked
    smart.grid.js:8 Uncaught TypeError: Cannot read property ‘disabled’ of undefined
    at HTMLElement.get [as disabled] (smart.grid.js:8)
    at HTMLDocument.handlers (jquery-1.11.3.min.js?1205103440:4)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js?1205103440:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js?1205103440:4)
    get @ smart.grid.js:8
    handlers @ jquery-1.11.3.min.js?1205103440:4
    dispatch @ jquery-1.11.3.min.js?1205103440:4
    r.handle @ jquery-1.11.3.min.js?1205103440:4
    Button inside the column was clicked
    smart.grid.js:8 Uncaught TypeError: Cannot read property ‘disabled’ of undefined
    at HTMLElement.get [as disabled] (smart.grid.js:8)
    at HTMLDocument.handlers (jquery-1.11.3.min.js?1205103440:4)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js?1205103440:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js?1205103440:4)

    in reply to: columns with button #101390
    dusrkdldlr
    Member

    Actually I’m not using the composition API. I’m using window.Smart on mounted. Could it be related?

    in reply to: columns with button #101388
    dusrkdldlr
    Member

    const notesTemplate = document.createElement(“template”);
    notesTemplate.id = “notesTemplate”;
    notesTemplate.innerHTML = `<button
    data-id=”{{id}}”
    onclick=”alert(‘{{value}}’);”
    class=”template-button”
    style=”width: 100%; height: 100%; overflow:hidden; text-overflow: ellipsis;”
    >Details</button>`;
    document.body.appendChild(notesTemplate);
    and I can’t run this example either

    in reply to: columns with button #101387
    dusrkdldlr
    Member

    template: ‘<button onclick=”YourFunction()”> Click me</button>
    it work. and I added on YourFunction() in method. but it was returned this error
    Uncaught ReferenceError: YourFunction is not defined
    at HTMLButtonElement.onclick (cswitch_port_list.do:1)

    in reply to: Mapping dataField to complex JSON structure #101385
    dusrkdldlr
    Member

    I was solve it used template

    in reply to: Over any row always show error in console #101384
    dusrkdldlr
    Member

    I met same error.
    When I click my row, return this error.
    Uncaught TypeError: Cannot read property ‘disabled’ of undefined
    at HTMLElement.get [as disabled] (smart.grid.js:8)
    at HTMLDocument.handlers (jquery-1.11.3.min.js?1032184503:4)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js?1032184503:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js?1032184503:4)
    get @ smart.grid.js:8
    handlers @ jquery-1.11.3.min.js?1032184503:4
    dispatch @ jquery-1.11.3.min.js?1032184503:4
    r.handle @ jquery-1.11.3.min.js?1032184503:4

    in reply to: Mapping dataField to complex JSON structure #101376
    dusrkdldlr
    Member

    Can I see an example?

    in reply to: commandColumns option #101373
    dusrkdldlr
    Member

    thank you for answer! Yavor Dashev
    What kind of values are in cellsformat?
    What does c2 mean?

    in reply to: Can i use smart UI without using single file components? #101335
    dusrkdldlr
    Member

    oh, sorry ..
    there was a typo.. haha
    it work!!

Viewing 11 posts - 1 through 11 (of 11 total)