Hi,
I am trying to validate rad combobox in alot of ways, even i used the simplest way but it's not working, even it was working correctly in 2009 Q3 version.
i think the above is the simplest example and it's not working, although i need to use it to validate rcb with autocomplete functionality or with filteration functionality.
i am using version 2010 Q1
I am trying to validate rad combobox in alot of ways, even i used the simplest way but it's not working, even it was working correctly in 2009 Q3 version.
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
>
<
asp:DropDownList
ID
=
"ddl"
runat
=
"server"
>
<
asp:ListItem
Text
=
"aaaa"
Value
=
"1"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"bbbb"
Value
=
"2"
></
asp:ListItem
>
</
asp:DropDownList
>
<
asp:RequiredFieldValidator
ID
=
"ddlrfv"
runat
=
"server"
Display
=
"Dynamic"
ControlToValidate
=
"ddl"
ErrorMessage
=
"Please Select"
InitialValue
=
"-1"
Text
=
"*"
ValidationGroup
=
"ddl_vg"
>
</
asp:RequiredFieldValidator
>
<
telerik:RadComboBox
ID
=
"rcb"
runat
=
"server"
ValidationGroup
=
"ddl_vg"
Skin
=
"Default"
Width
=
"200px"
CausesValidation
=
"true"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"aaaa"
Value
=
"1"
/>
<
telerik:RadComboBoxItem
Text
=
"bbbb"
Value
=
"2"
/>
</
Items
>
</
telerik:RadComboBox
>
<
asp:RequiredFieldValidator
ID
=
"rcbrfv"
runat
=
"server"
Display
=
"Dynamic"
ControlToValidate
=
"rcb"
ErrorMessage
=
"Please Select"
InitialValue
=
"-1"
Text
=
"*"
ValidationGroup
=
"ddl_vg"
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
br
/>
<
asp:Button
ID
=
"btn"
runat
=
"server"
Text
=
"Click"
ValidationGroup
=
"ddl_vg"
OnClick
=
"btn_Click"
/>
</
telerik:RadAjaxPanel
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
this
.rcb.Items.Insert(0,
new
RadComboBoxItem(
"select item"
,
"-1"
));
this
.ddl.Items.Insert(0,
new
ListItem(
"select"
,
"-1"
));
}
}
i think the above is the simplest example and it's not working, although i need to use it to validate rcb with autocomplete functionality or with filteration functionality.
i am using version 2010 Q1