This is a migrated thread and some comments may be shown as answers.

kendo-datasource , transport-read calling api on every v-model change need to prevent

1 Answer 148 Views
This is a migrated thread and some comments may be shown as answers.
Thom
Top achievements
Rank 1
Thom asked on 22 Oct 2020, 10:08 AM

My kendo-datasource  have  transport-read: GridDataSource , and in a same page i have input field to collect  input number ,  when ever i keein in the input field each key in time GridDataSource function also getting called , it should not happen for me . any idea ?

<input
                                    :name="'challanno'"
                                    :disabled="!isEdit"
                                    v-ec-disabled="!isEdit"
                                    :ec-type="'text'"
                                    v-model="challanno"
                                    v-ec-validate="{required: true}"
                                    v-ec-validate:fieldName="'Challan no'" />

<kendo-datasource ref="maingridsourcenew"
                            :type="json"
                            :transport-read="GridDataSource"
                            :batch="false"
                            :server-paging="false"
                            :server-sorting="false"
                            :page-size="10"
                             :schema-model-id="'_id'"
                             :schema-model-fields="schemaModelFields"
                            :schema-data="'data'"
                            :schema-total="'total'">
                        </kendo-datasource>

 

  GridDataSource(ev) {
            console.log("testinggrid---------->")
            ev.success({
                        data: [],
                        total: 0
                    });
        },

 

 

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 26 Oct 2020, 09:07 AM

Hi Thom,

I am unable to reproduce the reported behavior. Can you use this StackBlitz example to replicate the reported issue? Send me the edited project and I will further investigate the current case. 

Regards,


Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Asked by
Thom
Top achievements
Rank 1
Answers by
Petar
Telerik team
Share this question
or