JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Over any row always show error in console

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #101379
    chips
    Member

    I am creating grid with this code:
    Smart(‘#grdr’, class {
    get properties() {
    return {
    sorting: { enabled: true },
    editing: { enabled: true },
    selection: {
    enabled: true,
    mode: ‘one’
    },
    appearance:{
    placeholder :””
    },
    dataSource: new Smart.DataAdapter({
    dataSource:jdata,
    dataFields: [
    ‘id: number’,
    ‘priori: number’,
    ‘orden: string’,
    ‘recipe: string’,
    ‘description: string’,
    ‘status: number’,
    ‘tsbegin: string’,
    ‘enddate: string’
    ]
    }),
    columns :[
    { label: ‘ID’, dataField: ‘id’, allowEdit :false, width: 30},
    { label: ‘Priori’, dataField: ‘priori’, allowEdit :false, width: 30},
    { label: ‘Orden’, dataField: ‘orden’, allowEdit :false,width: 100 },
    { label: ‘Recipe’, dataField: ‘recipe’, allowEdit :false, width: 120 },
    { label: ‘Product’, dataField: ‘description’, allowEdit :false, width: 200 },
    { label: ‘Status’, dataField: ‘status’, allowEdit :false, width: 140 },
    { label: ‘Start Date’, dataField: ‘tsbegin’, allowEdit :false, width: 140 },
    { label: ‘End date’, dataField: ‘enddate’, allowEdit :false, width: 140 }
    ],
    };
    }
    });
    Previously ,I am loading ‘..source/modules/smart.grid.js’ and ‘..smart.default.css’.
    The jdata has this content: [
    {
    description: “”,
    recipe: “88”,
    id”: 3183,
    orden: “608”,
    priori: 99,
    status: 1,
    tsbegin: “”,
    tsend: “”,
    wkname: “”
    },
    {
    description: “”,
    recipe: “478”,
    id: 3198,
    orden: “1098”,
    priori: 99,
    status: 0,
    tsbegin: “”,
    tsend: “”,
    wkname: “”
    },
    {
    description: “”,
    recipe: “88”,
    id: 3213,
    orden: “523”,
    priori: 99,
    status: 1,
    tsbegin: “”,
    tsend: “”,
    wkname: “”
    }
    ]
    It is generated correctly , I can see all datas in grid , the problems when mouse over in any row  in console show the below error :
    b.Event {originalEvent: ErrorEvent, type: “error”, timeStamp: 1184925.5650000414, jQuery191010034596635359816: true, isDefaultPrevented: ƒ, …}
    Uncaught TypeError: Cannot read property ‘disabled’ of undefined
    at HTMLElement.get [as disabled] (<anonymous>:8:78184)
    at HTMLDivElement.handlers (jquery.min.js:3)
    at HTMLDivElement.dispatch (jquery.min.js:3)
    at HTMLDivElement.v.handle (jquery.min.js:3)
    any idea?

    #101380
    yavordashew
    Member

    Hi chips,
    It will be the best to share a complete example of your case in order to give you the best solution.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

    #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

    #101389
    chips
    Member

    In my case the solution is call to stopPropagation() in the events (“mouseover”,”mouseout”,”mousedown”,”click”,”dblclick”) of mouse in the grid
    It seems some kind of incompatibility with Jquery….??

    #101393
    yavordashew
    Member

    Hi chips,
    When using the code you provided I was unable to reproduce the situation you encounter.
    If you be so kind to provide some more information we will do out best to provide you with a proper solution.
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

    #101394
    chips
    Member

    Hi Yavor Dashev,
    I don’t think there’s any need to go through with this thread.
    I found the cause of the problem. It produced this because I was  using the smart.grid in a window of another library (kendo).
    Thanks your support!!.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.