Sunday, December 14, 2014

Custome command in kendo UI Grid toolbar


   toolbar: [  
           {  
             name: "Add",  
             text: "Make Passive 3 Times Unsuccesful Ones",  
             click: function (e) { console.log("foo"); return false; }  
            }  
         ],  

in the grid script

   $(".k-grid-Add", "#DefaultGrid").bind("click", function (ev) {  
                    $.ajax({  
                      type: "POST",  
                      url: "http://localhost/Notifier/Devices/MakePassive/model",  
                      contentType: "application/json; charset=utf-8",  
                      dataType: "json",  
                      async: false,  
                      success: function (data) {  
                        //ev.success();  
                        if (data.ResponseCode == 800) {  
                          ev.success();  
                        } else {  
                          alert(data.ResponseMessage);  
                        }  
                      }  
                    });  
                    mAKendoGridRefresh();  
                  });  


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 ...