1

I would like to know whats the difference between

        states_datasource = new kendo.data.DataSource({
            transport: {
                read: {
                    url: "<?php echo BASE_URL . 'user/get_state_autocomplete'; ?>",
                    dataType: "json"
                }
            },
            schema: {
                data: "results"
            }
        });

AND

    var states_datasource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "<?php echo BASE_URL . 'user/get_state_autocomplete'; ?>",
                dataType: "json"
            }
        },
        schema: {
            data: "results"
        }
    });

I was working with an editable listview with edit template which has an autocomplete field - which uses the above mentioned datasource.

In the edit mode, I did not get it working with the second datasource, but the datasource was binded and working for the first datasource.

Just wondering what could be the reason?

OnaBai
  • 40,767
  • 6
  • 96
  • 125
Ajeesh Joshy
  • 1,387
  • 2
  • 18
  • 32

0 Answers0