jQWidgets Forums

jQuery UI Widgets Forums General Discussions Data Adapter Documentation

This topic contains 6 replies, has 4 voices, and was last updated by  Marc 10 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Data Adapter Documentation #6828

    mc
    Member

    Hello,
    I saw these code in one of your example codes.
    var filterBoxAdapter = new $.jqx.dataAdapter(NodeProfileListerSources,
    {
    uniqueDataFields: [datafield],
    autoBind: true
    });

    But in documentation section i couldnt see any information about these attributies :uniqueDataFields , autoBind.
    where can i find updated documentation about widgets data adapters and etc…

    Data Adapter Documentation #6835

    Peter Stoev
    Keymaster

    The documentation about jqxDataAdapter can be found here: jquery-data-adapter.htm. By specifying the uniqueDataFields, you actually get only an array of unique records within a data source based on an array of unique fields.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Data Adapter Documentation #19175

    Charlie
    Participant

    I can’t see any reference to either uniqueDataFields or autoBind on this page?

    Data Adapter Documentation #19178

    Peter Stoev
    Keymaster

    Hi Charlie,

    The API which should be used is documented. API which is used internally by the widgets is not documented.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Data Adapter Documentation #55588

    Marc
    Participant

    Hi,

    Sorry to re-open this old thread.

    [Context info]
    Some of the jqx documentation (eg. dataAdapter and Grid Data Sources) have an “autoBind: true” property setting.

    They are not documented in the API. I understand from this post that this is because they are internal properties, meant to be used only internally. Which is a bit puzzling, because conversely, they are part of the examples, and examples are normally meant to be used 🙂

    [The question]
    The question is : does that mean than we should not use these properties, or that we should copy them as provided in the examples, without particularly caring about what they do ?

    Thank you.

    Marc.

    Data Adapter Documentation #55589

    Peter Stoev
    Keymaster

    Hi Marc,

    autoBind is self-descriptive boolean setting. Its description is missing on the dataAdapter’s help topic, but is used in an example in the same help topic. If you wish, use it. If you don’t, you may use the dataBind method instead. You can find the API of the widgets on their API pages. If something is not documented or at least available in a sample, we do not recommend you to use it as its most probably an internal member.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Data Adapter Documentation #55591

    Marc
    Participant

    Thank you Pete for your timely answer,

    In fact, to be more specific, I’m trying to have a dropdown list work in a grid, with a classical value/label, one being stored, the other one displayed.

    I’m trying to transpose a demo example to my code (jqWidget site / Demo / jqxGrid / Editing / Custom DropDownList Column / ViewCode – I’m providing this path, because the url doesn’t work).

    As you can see, there is an autoBind:true in this code snippet :

                var countriesAdapter = new $.jqx.dataAdapter(countriesSource, {
                    autoBind: true
                });

    and I was just trying to figure out if I need to include it or not.

    Just for info, for the moment, the dropdown doesn’t work : value not being displayed when grid loads, update code not triggered when dropdown value selected. But I’ll keep on investigating, and open a new post if I can’t sort it out by myself.

    Best regards.

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

You must be logged in to reply to this topic.