jQWidgets Forums

jQuery UI Widgets Forums Grid Retrieve extra data supplied to DataAdapter

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

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

  • StanLogan
    Participant

    Hi,

    I apologize if this should have been posted in the DataAdapter forum.

    We have a grid set up with a small number of columns. We use a DataAdapter. When we get our data from the server, there is data for more columns than we display in the grid.

    The ‘getrowdata’ function only seems to provide access to the information for the columns actually in the grid column list. Is there a way to get to all of the data supplied to the adapter?

    It will not be easy for us to add the columns to the grid for historical reasons. I had hoped that the DataAdapter would provide access to all of the data that was given to it, not just the data that maps to columns.

    Is there a way to get this information?

    Thanks,
    Stan


    Peter Stoev
    Keymaster

    Hi Stan,

    The adapter loads data depending on the datafields array of the adapter. dataAdapter.records returns the stored array of data in the adapter.

    Best Regards,
    Peter Stoev

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


    StanLogan
    Participant

    Hi Peter,

    Thank you very much!

    To make this a little more clear for others reading this later: This means that I can add the fields only to the datafields collection of the DataAdapter to make them available, without having to also add hidden columns to the grid.

    Stan

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

You must be logged in to reply to this topic.