c# - disable dbclick event in Handson Grid -


i using handson table in project. getting issue related double-click function.

step 1. add grey color on button click handson table.

step 2. after when double-click on cell add/edit value, grey color of cell automatically disabled.

how set grey color cell? example of problem:

$(document).ready(function () {     var data = [         ["2008", 10, 11, 12, 1],         ["2009", 20, 11, 14, 0],         ["2010", 30, 15, 12, 1]     ];     var rowcount;     var d = $("#example1grid").handsontable({         data: data,         colheaders: ["", "kia", "nissan", "toyota", "honda"],         cells: function (row, col, prop) {         var cellproperties = {};         var hot = this.instance;         rowcount = hot.countrows() - hot.countemptyrows();             return cellproperties;         },     });      var buttons = {         file: document.getelementbyid('btnbgcolor')     };      buttons.file.addeventlistener('click', function () {         $("td").attr('style', 'background:rgb(238,238,238) !important');     }); }); 

please see error here: http://jsfiddle.net/amanmiddha_124/q460kyba/


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -