jQuery UI Widgets Forums DataTable Retrieving data from the table

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Retrieving data from the table #48808

    higgy3k
    Participant

    Hi all.

    You’ll have to excuse my ignorance, I’m quite new to Javascript.

    I have a data table that extracts it’s data from a CSV file.

    I want to use individual rows from the grid to populate smaller HTML tables on the page.
    (It is a proof of concept page that I’m working on that will extract client data from the file and arrange it as a seating plan – hence the smaller HTML tables)

    I was wondering how I retrieved values from the data table? I’m aware that I can just extract the data from the CSV file, but I would like it to be editable through the data grid first, then be able to populate these smaller HTML tables.

    Regards

    Stephen

    Retrieving data from the table #48814

    Peter Stoev
    Keymaster

    Hi Stephen,

    The DataTable has methods for getting/setting cell values called “getCellValue” and “setCellValue”. For getting all rows displayed in the widget, you can also use the “getRows” method. Example: http://jsfiddle.net/jqwidgets/vuJY9/

    Best Regards,
    Peter Stoev

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

    Retrieving data from the table #48880

    higgy3k
    Participant

    Many thanks Peter.

    Ill look into it.

    Stephen

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

You must be logged in to reply to this topic.