This is a migrated thread and some comments may be shown as answers.

Can you add a ListBox to Window

2 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 13 Nov 2017, 07:59 PM

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 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 14 Nov 2017, 07:02 PM

I think I figured this out:

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

0
Dimitar
Telerik team
answered on 15 Nov 2017, 02:53 PM
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.
Tags
Window
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or