File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,40 @@ Indicates whether the ListBox items can be dragged and dropped.
199
199
200
200
Indicates whether dragging is enabled.
201
201
202
+ #### Example - ListBox with disabled dragging
203
+
204
+ <select id="listBoxA">
205
+ <option>ItemA1</option>
206
+ <option>ItemA2</option>
207
+ </select>
208
+ <select id="listBoxB">
209
+ <option>ItemB1</option>
210
+ <option>ItemB2</option>
211
+ </select>
212
+
213
+ <script>
214
+ $("#listBoxA").kendoListBox({
215
+ draggable: true
216
+ });
217
+
218
+ $("#listBoxB").kendoListBox({
219
+ dropSources: [ "listBoxA" ],
220
+ draggable: {
221
+ enabled: false,
222
+ placeholder: function(element) {
223
+ return element.clone().css({
224
+ "opacity": 0.3,
225
+ "border": "1px dashed #000000"
226
+ });
227
+ }
228
+ }
229
+ });
230
+ </script>
231
+
232
+ ### draggable.enabled ` Boolean ` * (default: true)*
233
+
234
+ Indicates whether dragging is enabled.
235
+
202
236
#### Example - ListBox with disabled dragging
203
237
204
238
<select id="listBoxA">
You can’t perform that action at this time.
0 commit comments