Declined
Last Updated: 12 Aug 2024 06:50 by ADMIN
David
Created on: 24 Jun 2024 10:45
Category: PanelBar
Type: Bug Report
0
PanelBar dataItem() method does not return the data item

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]

2 comments
ADMIN
Martin
Posted on: 12 Aug 2024 06:50

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

David
Posted on: 05 Aug 2024 11:02

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