Tuesday, March 06, 2018

Coda Obsura: Getting the selected items of a Telerik Kendo ListBox.

Maybe I'm missing something.  But I don't see any javascript API for getting the SELECTED items in a kendo listbox.  I'm just binding to a string list that I pull with a read.  I ended up having to get the items using jquery hunting them down by the selected style.


  $('#mylistboxname').prev("div").find('ul').find('.k-state-selected').each(function () {
    myarray.push($(this).text());
  });