jQuery UI Widgets Forums TreeGrid setCellValue


This topic contains 3 replies, has 3 voices, and was last updated by  admin 2 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    setCellValue Posts
  • setCellValue #115125


    The data has 20 fields, showing by jqxtreeGrid.
    But only a few fields are declared in columns.

    I have a field that is not declared in columns and has value.
    When I use setcellvalue to operate it, I will report an error.

    $(“#treeGrid”).jqxTreeGrid(‘setCellValue’, ‘ALFKI’, ‘firstName’, ‘New Value’);

    jqxdatatable.js:6 Uncaught TypeError: Cannot read property ‘displayfield’ of null
    at Object.<anonymous> (VM2643 jqxdatatable.js:6)
    at Function.each (VM2624 jquery.js:370)
    at namespace.<computed>.setCellValueByKey (VM2643 jqxdatatable.js:6)
    at namespace.<computed>.setCellValue (VM2644 jqxtreegrid.js:6)
    at Object.$.jqx.invoke (VM2635 jqxcore.js:8270)
    at Object.$.jqx.jqxWidgetProxy (VM2635 jqxcore.js:8645)
    at HTMLDivElement.<anonymous> (VM2635 jqxcore.js:9023)
    at Function.each (VM2624 jquery.js:370)
    at jQuery.fn.init.each (VM2624 jquery.js:137)
    at jQuery.fn.init.$.fn.<computed> [as jqxTreeGrid] (VM2635 jqxcore.js:9022)

    What should I do with it?
    I don’t want to declare it as a hidden columns, because it will affect efficiency

    Thank you very much.

    setCellValue #115159


    Hello qx5,

    Please, clarify it.
    I would like to mention that it is not appropriate to use one method with datafield that does not exist.
    What is your final goal?
    If you provide us with more details I could try to provide you a solution.

    Best Regards,
    Hristo Hristov

    jQWidgets team

    setCellValue #115160


    Hello, it’s a status field.
    I just want to modify its value. If it is declared as a hideen column, the list will load slowly because of the large amount of data.
    But I can’t set cellvalue without a statement

    setCellValue #115175


    Hi qx5,

    If something is not declared in the columns of the component, you cannot set its value through the component’s API. As a proposal, you can add all columns and make only some of the visible, then you will be able to use setCellValue

    Best regards,
    Peter Stoev

    jQWidgets Team

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

You must be logged in to reply to this topic.