I am using Radgrid and i want to enable and disable the Dropdownlist on the button click in my Edit Form. Both Button and the Dropdown are in the EditForm of my RadGrid. Please let me know if this is possible.
4 Answers, 1 is accepted
Try out the following code to disable a DropDown in the EditFormTemplate by clicking on a button.
I used the same code, but I am able to set the dropdown as visible = false.
When I try disable it, the dropdown is not getting Disabled can you tell me the reason. Below is the code which I am using
Sub btnNewPrjName_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If sender IsNot Nothing Then
Dim btnNewPrjName As Button = sender
Dim ddlPrjShrtName As DropDownList = CType(EditForm.FindControl("ddlPrjShrtName"), DropDownList)
I tried the following code snippet to disable the DropDownList and it is working well on my end. Give a try with the following code snippet and see if it is working
I tried the same code but it is still not working. Please help me with this.