Scheduler Resources default value

3 posts, 0 answers
  1. Markus
    Markus avatar
    71 posts
    Member since:
    Jan 2015

    Posted 13 Feb 2015 Link to this post

    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. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 17 Feb 2015 Link to this post

    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!
     
  3. Markus
    Markus avatar
    71 posts
    Member since:
    Jan 2015

    Posted 17 Feb 2015 in reply to Georgi Krustev Link to this post

    Nicely done thank you
Back to Top