Search code examples
javascriptbackbone.jsbackgrid

How to make a specific editable cell as non editable in backgrid


I am using backgrid in my project ,I have a requirement like when i have selected a option in an dropdown of column i have to select a value in another dropdown and make the cell as non editable.

I am using backgrid:edited event to do this I am able to change the value but failing to make the cell as non editable.

Is there any way to make the cell as non editable in backgrid.


Solution

  • Hi I have found how to make an specific editable as non editable in back grid edited event

    $("#gridid tr").each(function(index){
     //if some condition
     $("gridid    tr").find("td.mycolumnclsname).eq(index).unbind();
      });