This is a migrated thread and some comments may be shown as answers.

[Solved] Disable RadCombo - Code behind

1 Answer 303 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sravan Kumar Uddarraju
Top achievements
Rank 1
Sravan Kumar Uddarraju asked on 30 Jun 2008, 10:41 PM

Hi,

My requirement is, I have RadComboBox(SystemNameCombo), it should get disable when ever my page gets refreshed. I have javascrip which is been injecting from server-side to disable the RadComboBox. But it is not working for me. Please help me out in this regard.

ClientScript.RegisterClientScriptBlock(Me.GetType(), "testClientScript", _

"<script language=JavaScript>" & vbCrLf & _

" $find('SystemNameCombo').disable();" & _

"</script>")


Thanks,
Sravan

1 Answer, 1 is accepted

Sort by
0
Baatezu
Top achievements
Rank 2
answered on 01 Jul 2008, 12:03 AM
Could you instead use serverside code, since it is being refreshed and do something in pageload like
if(IsPostBack) 
    ComboBox.Enabled = false
or even simpler
ComboBox.Enabled = !IsPostBack; 

Tags
General Discussions
Asked by
Sravan Kumar Uddarraju
Top achievements
Rank 1
Answers by
Baatezu
Top achievements
Rank 2
Share this question
or