File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ that initialization is done within $(document).ready() statement.
30
30
> Widget copies any styles and CSS classes from the input element to the wrapper element.
31
31
32
32
### Initialize a DropDownList using a jQuery selector
33
-
33
+
34
34
<input id="dropdownlist">
35
-
35
+
36
36
<script>
37
37
$(document).ready(function() {
38
38
$("#dropdownlist").kendoDropDownList({
@@ -73,10 +73,10 @@ such as
73
73
[ JSONP] ( http://en.wikipedia.org/wiki/JSONP ) .
74
74
75
75
### Binding to a remote OData service
76
-
76
+
77
77
<input id="dropdownlist">
78
-
79
- <script>
78
+
79
+ <script>
80
80
$(document).ready(function() {
81
81
$("#dropdownlist").kendoDropDownList({
82
82
index: 0,
@@ -203,3 +203,18 @@ jQuery width() method can be used for changing the widget dimensions.
203
203
dropdownlist.list.width(400);
204
204
});
205
205
</script>
206
+
207
+ ### Set the list dimensions (MVVM)
208
+
209
+ ``` html
210
+ <input id =" ddl" data-role =" dropdownlist" data-bind =" source: foo" />
211
+
212
+ <script >
213
+ var vm = {
214
+ foo: [ " one" , " two" ]
215
+ }
216
+
217
+ kendo .bind (document .body , vm);
218
+ $ (" #ddl" ).data (" kendoDropDownList" ).list .width (400 );
219
+ </script >
220
+ ```
You can’t perform that action at this time.
0 commit comments