Bug report
Regression with 2023.1.314
PanelBar dataItem() method does not return the data item
Reproduction of the problem
1. Open next Dojo: https://dojo.telerik.com/EjIQaSaL
2. Select an item from the Panelbar and expect the console
Expected/desired behavior
panelBar.dataItem(".k-item:first"); shall return the data item
Environment
Kendo UI version: 2023.1.314 or newer
jQuery version: x.y
Browser: [Chrome XX]
Hello, David,
The bug report was declined because the issue is due to the selector for the dataItem method. With the latest versions, the k-item class was replaced with k-panelbar-item and that is why the result is undefined in the API reference example. Here is the correct version. We will also update the documentation accordingly.
Let me know if you have any further questions.
Regards,
Martin
Progress Telerik
Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024
Why was this Declined? It appers to be a legitimate bug and by declining this bug report, it now contradicts the documentation as per https://docs.telerik.com/kendo-ui/api/javascript/ui/panelbar/methods/dataitem
Dave