jQWidgets Forums

jQuery UI Widgets Forums Grid Get Value 2 column

This topic contains 4 replies, has 2 voices, and was last updated by  ekaperintis 12 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Get Value 2 column #11631

    ekaperintis
    Participant

    good evening …

    how to retrieve the value of each – each column in the grid

    Get Value Coloum

    Get Value 2 column #11651

    Peter Stoev
    Keymaster

    Hi ekaperintis,

    You can use the ‘getcellvalue’ method to get the value of a specific cell. The method accepts 2 params – row index and column’s datafield.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Get Value 2 column #11658

    ekaperintis
    Participant

    Hi Peter Stoev …

    I for The method accepts 2 params – row index and column’s datafield I’ve already done, but the results are not as expected, this code that I created

    to javascript

    $("#jqxgrid").bind('cellselect', function (event) {
    var column = $("#jqxgrid").jqxGrid('getcolumn', event.args.datafield);
    var value = $("#jqxgrid").jqxGrid('getcellvalue', event.args.rowindex, column.datafield);
    var displayValue = $("#jqxgrid").jqxGrid('getcellvalue', event.args.rowindex, column.displayfield);
    $("#eventLog").html("Informasi Pelanggan : " + value);
    });

    to body

    <body class='default'>
    <div style="font-size: 20px; "margin-top: 20px;
    font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;"
    id="eventLog">Informasi Pelanggan : </div>
    <div>
    &nbsp
    </div>
    <div id='jqxWidget'>
    <div id="jqxgrid"></div>
    </div>
    </body>

    if there is something wrong or is there a solution for my problem ???

    Get Value 2 column #11661

    Peter Stoev
    Keymaster

    Hi ekaperintis,

    I believe this is what you are looking for: gridkeyvaluecolumn.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Get Value 2 column #11664

    ekaperintis
    Participant

    hi, Peter …

    yeah, I mean it’s true

    in fact, had never seen before, but forgot the address … hehehe …

    thank you master,,,,

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

You must be logged in to reply to this topic.