All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
script type="text/jscript">
function OnClientSelectedIndexChangedValue(sender, args)
{
var combo = $find("<%= RadComboBoxDescription.ClientID %>");
var item = args.get_item();
var i = item.get_index();
if (item.get_value() != combo.get_value())
combo.get_items().getItem(i).select();
}
function OnClientSelectedIndexChangedDescription(sender, args)
var combo = $find("<%= RadComboBoxValue.ClientID %>");
function ClientValidate<%= CVRadComboBoxValue.ClientID %>(source, arguments)
var comboValue = <%= RadComboBoxValue.ClientID %>;
var StrItemText = '<%= RadComboBoxValue.FindItemByValue("-1").Text %>'
var StrItemText2 = '<%= RadComboBoxValue.FindItemByValue("-2").Text %>'
if (StrItemText == arguments.Value || StrItemText2 == arguments.Value )
arguments.IsValid =
false;
return false;
true;
return true;
</
script>
table style="width: 350px">
<tr>
<td style="width: 100px">
<telerik:RadComboBox ID="RadComboBoxValue" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedValue"
Height="190px" HighlightTemplatedItems="True" MarkFirstMatch="True" AppendDataBoundItems="True"
Skin="WebBlue" CausesValidation="False">
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
</td>
<telerik:RadComboBox ID="RadComboBoxDescription" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedDescription"
<asp:CustomValidator ID="CVRadComboBoxValue" runat="server" ControlToValidate="RadComboBoxValue"
ErrorMessage="Required" EnableClientScript="true"></asp:CustomValidator></td>
</tr>
table> Regards,