Popup : preselect item in (resource) dropdown

4 posts, 0 answers
  1. Gert
    Gert avatar
    26 posts
    Member since:
    Jan 2015

    Posted 09 Feb 2015 Link to this post

    I have 2 questions regarding the scheduler's popup
    1) how to preselect a value in the combobox ?
    2) how to remove the 'none'-item in the combobox ?
  2. Gert
    Gert avatar
    26 posts
    Member since:
    Jan 2015

    Posted 09 Feb 2015 Link to this post

    I have to change the default value of the resource combobox depending on various factors . (time, day,...)
    Is to possible select an item in the combobox in the  
    edit: function(e) { }
    function and make it readonly ?
  3. Gert
    Gert avatar
    26 posts
    Member since:
    Jan 2015

    Posted 10 Feb 2015 Link to this post

    Telerik, this is urgent. We cannot go live if this is not solved.
    Our other topics are less important.

    We need to select an item programmatically in the resource combobox when the popup opens/opened.
    We cannot use the 'defaultValue' in the datasource's model, because the defaultValue is always different.

    Possible options  :
    1) is there a way to change the defaultValue in de models datasource directly/programmatically with Javascript ?
    typeId: {from: "TypeID", defaultValue: ???, validation: {required: true}},
    2) when the popup opens , select een item in the combobox en make the combobox readonly
    3) custom validation, when 'none' is selected in the combobox.
        the form closes, when 'none' is selected, no errormessage occurs.

  4. Gert
    Gert avatar
    26 posts
    Member since:
    Jan 2015

    Posted 10 Feb 2015 Link to this post

    Solved !
    the add and save events are suitable for changing combobox selection.

    add: function(e) {
                     e.event.typeId=4;
                },
                save: function(e) {
                 e.event.typeId=4;
        },
Back to Top