jQWidgets Forums

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxInput bindingComplete #78134

    Sid
    Participant

    I noticed that there is no bindingComplete event for jqxInput.

    What is the method for setting the value of a jqxInput that is being bound to an Ajax datasource?

            var client_source =
             {
                    datatype: "json",
                    datafields: [
                    { name: 'id'},
                    { name: 'name'},
                    ],
                    url: 'dat_clients.php',
                    async: true
            };
            var client_dataAdapter = new $.jqx.dataAdapter(client_source);
            $("#proposal-client").jqxInput(
            {
                    source: client_dataAdapter,
                    width: 210,
                    height: 25,
                    theme: 'sims-metro',
                    placeHolder: "Enter a client name",
                    displayMember: 'name',
                    valueMember: 'id'
            });
            $("#proposal-client").on('bindingComplete', function() {
                    $("#proposal-client").val('<?php echo $proposal->get_client_name(); ?>');
            }); // Doesn't work
    
    jqxInput bindingComplete #78180

    ivailo
    Participant

    Hi sidkdbl07,

    You can use loadComplete callback of your dataAdapter.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    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.