ListBox Not Rendering Control when AutoBind(true/false) is Used
Bug report
The Telerik UI ListBox is not being rendered when the AutoBind() option is specified. Regardless of the value that is put inside the method - be it true/false.
Reproduction of the problem
-
Set the DataSource option of the ListBox without specifying type such as Ajax/Custom.
-
Set the AutoBind(true) option.
-
Run the application - the page is not rendered at all.
Expected/desired behavior
The widget should be rendered when the AutoBind is set to true/false.
TicketID: 1524780
Possible reason for the behavior
When the Ajax/Custom type of the data source is not specified, the type defaults to null. Hence, there is a boolean property that is checked inside the VerifySettings method of the ListBox.cs file in the source. The IsClientBinding property checks if the widget is bound to a data source, however, since the data source does not have a type, it thinks that the widget is bound to the data via the BindTo option which is incorrect.
Having the AutoBind() property and the BindTo() property enabled, a C# error is thrown inside the VerifySettings() method. However, this error should not be thrown when a data source is specified (even without type).
Environment
- Kendo UI version: 2021.2.616
- jQuery version: 1.12.4
- Browser: [all]