jQWidgets Forums

jQuery UI Widgets Forums DataTable Input Autocomplete other columns

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Input Autocomplete other columns #68731

    drtzack
    Participant

    I am using jqxinput in jqxdatatable and the input source is

    var productsSource = {
    datatype: “json”,
    datafields: [
    { name: ‘product’ },
    { name: ‘unit_price’ },
    { name: ‘currency’ },
    { name: ‘description’ },
    ],
    url: ‘/api/products’,
    dataType: “json”,
    async: false
    };
    I am trying to update other columns like description and unit_price when product name is selected in input. But can’t get selected product’s other datafield.

    Input Autocomplete other columns #68741

    Peter Stoev
    Keymaster

    Hi drtzack,

    “getCellValue” can be used for getting the value of a cell. After that you can use “updateRow” method for updating a given row.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.