When ListBox contains a long string it does not display a scroller.
There is no scroller, thus the user can not see the entire text. Also, the listbox is shifted a little bit to the left.
There should be a scroller and the entire ListBox should be visible.
<style> .k-list-content{ overflow: auto; } .k-listbox .k-list-scroller { min-width: 0; } .k-selected{ width: fit-content; } </style>
Hi Team,
I would like to request inline and incell editing functionality for the Kendo UI ListBox.
Thank you!
Currently you can set draggable to true, however, when you want to drag the item to the top or bottom there is no auto scroll. This is not efficient because you need to constantly drop the item in order to move it where you want it. Please add autoScroll option similar to what you have on the kendoDraggable (https://docs.telerik.com/kendo-ui/api/javascript/ui/draggable/configuration/autoscroll) for each list item.
Thank you.
Currently, the Kendo ListBox has methods to return -- the DOM Elements using items(); the Selected DOM Elements using select(); ALL of the Data Items using .dataItems() and a SINGLE dataItem using dataItem(selector).
An additional method that would be extremely useful for this control, would be to return the SELECTED DATA ITEMS perhaps using a method selectedDataItems().
Here is a JavaScript function that can be used as a template for providing the functionality (of course, it needs additional error checking):
function getSelectedItems(lstName) {
var selectedItems = [];
//var lstItems = $(lstName).data("kendoListBox").items();
var lstItems = $(lstName).data("kendoListBox").select();
$(lstItems).each(function (index) {
var selected = $(this).hasClass("k-state-selected");
if (selected) {
var id = "#" + $(this).attr("id");
var dataItem = $(lstName).data("kendoListBox").dataItem(id);
selectedItems.push(dataItem);
}
});
return selectedItems;
}
In a control such as a ListBox that inherently requires the functionality of "selection" -- then your user community would definitely need a way to not only return the selected DOM elements but also return the selected dataItems.
Hopefully, we see this functionality added to the Kendo ListBox very soon.
How ironic that other controls have capability on grouping while the listbox is the solely exception. Hope you can include this on the next build.
There should be a flag to keep the ListBox items sorted.
ListBox should support the value MVVM binding, similar to the multiselect.
One immediate need I have is to have the ability to add entries to the collection. I'd like to have an add button in the toolbar. I'd like to be able to add custom buttons natively.