Can you add a ListBox to Window

3 posts, 0 answers
  1. Jim
    Jim avatar
    2 posts
    Member since:
    Jul 2014

    Posted 13 Nov Link to this post

    Is it possible to add a ListBox to a Window?  Tried the below with no joy.  I have dynamically (onclick) created many moveable popup windows.  Within the windows there will be items that I want to allow a user to drag to another popup window. 

    I can get the below code to work with a ListView but then I need to make all the hooks to drag items around.  I am trying to take advantage of what already exists.

    var w = $("<div>Window</div>");
    $("#map").append(w);
    var kw = w.kendoWindow({});
    var klvb = w.kendoListBox({});

    Thanks for any help!

  2. Jim
    Jim avatar
    2 posts
    Member since:
    Jul 2014

    Posted 14 Nov in reply to Jim Link to this post

    I think I figured this out:

    var w = $("<div>Window</div>");
    $("#map").append(w);
    var kw = w.kendoWindow({});
    kw.contents(w.kendoListBox({}));

  3. Dimitar
    Admin
    Dimitar avatar
    225 posts

    Posted 15 Nov Link to this post

    Hello Jim,

    I am glad to hear that you have successfully resolved the issue. In any case, you can refer to the following Dojo example, where a similar scenario is demonstrated.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top