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

Scheduler Resources default value

2 Answers 223 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 13 Feb 2015, 11:52 AM
Hi

I have additional field in my popup. In this case "room". How can I select a default value in the dropdown list?

resources: [
    {
      field: "room",
      defaultValue: 1,
      selected: 1,
      dataSource: [
        { text: "Small meeting room", value: 1 },
        { text: "Big meeting room", value: 2 }
      ]
    }
  ]

http://dojo.telerik.com/OFOKo

Thanks

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 17 Feb 2015, 08:50 AM
Hello Markus,

If you would like to control the selected item in the DropDownList widget responsible for the "room" resource field, then you can wire the edit event of the widget modify the event:
edit: function(e) {
    //set the event room field
    e.event.set("room", { value: 2});
  },
Check the updated Dojo demo.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Markus
Top achievements
Rank 1
answered on 17 Feb 2015, 04:53 PM
Nicely done thank you
Tags
Scheduler
Asked by
Markus
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Markus
Top achievements
Rank 1
Share this question
or