heya.
4 ctrls
Status (RadComboBox) ("Regular","Temporary")
LblEnddate (Label)
EndDate (RadDatepicker)
rfEnddate (required Field bound to Enddate)
If all visible set to true, field is required, however when visible = false, field is not required...(logical)
the ajax block
the visible switch is working fine... however the requiredfield event is not raising. Thoughts ?
Thanks
mac
4 ctrls
Status (RadComboBox) ("Regular","Temporary")
LblEnddate (Label)
EndDate (RadDatepicker)
rfEnddate (required Field bound to Enddate)
If all visible set to true, field is required, however when visible = false, field is not required...(logical)
Protected Sub Status_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) |
If InStr(e.Value, "Temporary") Then |
frm1.FindControl("Enddate").Visible = True |
frm1.FindControl("rfEnddate").Visible = True |
frm1.FindControl("lblEndDate").Visible = True |
Else |
frm1.FindControl("Enddate").Visible = False |
frm1.FindControl("rfEnddate").Visible = False |
frm1.FindControl("lblEndDate").Visible = False |
End If |
the ajax block
<telerik:AjaxSetting AjaxControlID="Status"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="lblEndDate" /> |
<telerik:AjaxUpdatedControl ControlID="RFEndDate" /> |
<telerik:AjaxUpdatedControl ControlID="EndDate" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
the visible switch is working fine... however the requiredfield event is not raising. Thoughts ?
Thanks
mac