jQWidgets Forums

jQuery UI Widgets Forums TreeGrid How to get cell datafield name

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • How to get cell datafield name #52704

    rani
    Participant

    Hi,

    How can i get the cell datafield name when cellChanged event is fired.

    $(‘#treeGrid’).bind(‘cellValueChanged’,
    function (event) {
    debugger;
    var value = args.value;
    var column = event.args.datafield;
    );
    column value is undefined.iam not getting the column datafield name

    regards,
    rani.

    How to get cell datafield name #52707

    Peter Stoev
    Keymaster

    Hi rani,

    You have the Row, the Old Cell Value and the New Cell value. The Row is an Object with Key/Value pairs. event.args.datafield will return undefined because there is no such setting. You can use the Row Object to identify the Column’s DataField if you wish.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    How to get cell datafield name #52710

    rani
    Participant

    hi,

    How can i get column name when a particular cell value changes. I need to get which data field value is modified.

    regards,
    rani.

    How to get cell datafield name #52711

    Peter Stoev
    Keymaster

    Hi rani,

    In the TreeGrid all fields are modified after editing, because the widget supports only Row Editing. This means that the event is raised for all Cells.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.