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

Delete default value from deopdownlist

0 Answers 42 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Mohammad
Top achievements
Rank 1
Mohammad asked on 14 Oct 2012, 07:33 AM
Hello
when my data source fill from controller by default select one value fordeopdownlist and i set null for value of deopdownlist i dot want select any value.

$(document).ready(function () {
 
        var baseAddress = window.parent.document.location + "Home/";
        var viewModel = kendo.observable({
            userDataSource: new kendo.data.DataSource({
                transport: {
                    read: {
                        url: baseAddress + "GetUsers",
                        dataType: "json",
                    }
                }
            }),
            SelectedRole: null,
            SelectedUser: null,
            accessValue: null,
            Roles: [],
            Accesses: [],
 
        });

No answers yet. Maybe you can help?

Tags
MVVM
Asked by
Mohammad
Top achievements
Rank 1
Share this question
or