0

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.

Surya Prakash Tumma
  • 2,153
  • 4
  • 27
  • 47
  • What have you tried? Have you started reading through Backgrid's source code? This might help you figure it out – Dexygen Feb 05 '15 at 18:44
  • yes I have done the same ... and solved the issue – Surya Prakash Tumma Feb 05 '15 at 18:46
  • Please consider posting your solution as an answer to your own question, this could be helpful to other and might result in increased reputation points for yourself. Also it might have saved me a bit of effort as I started to tinker with your problem. My rough idea would be to disable the other dropdown. I will be interested to see if you post. – Dexygen Feb 05 '15 at 19:08
  • George plz check my answer – Surya Prakash Tumma Feb 06 '15 at 07:43

1 Answers1

0

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();
  });
Surya Prakash Tumma
  • 2,153
  • 4
  • 27
  • 47