Tuesday, December 9, 2014

kendoDropDownList json datasource

if you want to load your kendoDropDownList  from json we service you can follow this


                       // optionLabel: "Select branch...",  
                       dataTextField: "text",  
                       dataValueField: "value",  
                       change: function () {  
                         e.model.BranchRef = this.text();  
                       dataSource: {  
                         transport: {  
                           read: function (e) {  
                               url: 'http://localhost/Notifier/Branches/GetDropDown/token',  
                               type: 'GET',  
                               dataType: 'json',  
                               success: function (data) {  

service call

     public HttpResponseMessage GetAllBranches(string SecurityToken)  
       List<BranchDTO> Branches = BranchService.GetAllBranchDTO(database, false);  
       return Request.CreateResponse<List<BranchDTO>>(HttpStatusCode.OK, Branches);  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...