Dynamically Enabling/Disabled Columns

7 replies. Last post: June 14, 2010 2:31 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I'd like to disable/enable certain columns in my WebGrid dynamically depending on what the user selected. For Example.

 

Let's say there are 3 columns. One has a dropdown that has in the list Phone and Circuit.

The other columns are for quantity and minutes. If the user selects Phone from the dropdown, I want to allow the user to enter values for quantity and minutes. If the user selects Circuit from the dropdown, quantity and minutes become disabled.

 

How can I do this in JavaScript on the client side. This needs to happen when the user first starts to edit a record and then when the user makes a selection from the dropdown.

All times are GMT -5. The time now is 1:08 PM.
Previous Next