Thank you for the example provided and the additional clarifications of the issue.
Currently there is no DataBinding event, with which would allow you to prevent the binding from happening. However, you can check the two solutions below, which might help you to achieve the desired result.
In the attached file (TelerikMvcAppDropDownList.zip
) you will find a simple implementation of the Kendo DropDownList, which prevents
the DataSource binding on RequestStart event
of the DataSource. The HTML and the JS code to achieve this can be found in Views/Home/Index.cshtml
. You will notice that I have added an event handler to the DataSource property and I have executed some custom JS code to stop the request and disable to loading icon:
I have also added a "Turn bindings ON" button, which enables the binding of the DataSource.
Another way to prevent the auto binding would be to manually bind the DropDownList widget with JS only when you need to
. For more detailed example you can check the following demo
If you have any other questions, please do not hesitate to contact us.
Telerik by Progress