Hi,I am trying to validate a WebDropDown where EnableMultipleSelection="true" using the standard Microsoft RequiredFieldValidator. If I click on a button to move to another page the validation does not work and the other page loads. If I change EnableMultipleSelection="false" then the validation works and the validation message appears.I am using .Net 4 and Infragistics 12.2.20122.1007. Below is the code from my .aspx page. Is there something else I need to do?
Thanks
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><%@ Register Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.1007, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.ListControls" TagPrefix="ig" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <ig:WebDropDown ID="ddTest" runat="server" CurrentValue="Please select" DropDownContainerHeight="0px" DropDownContainerMaxHeight="200px" DropDownContainerWidth="300px" EnableRenderingAnchors="False" PageSize="0" DropDownOrientation="BottomRight" EnableCustomValues="False" MultipleSelectionType="Checkbox" EnableMultipleSelection="true"> <Items> <ig:DropDownItem Selected="False" Text="Test1" Value=""> </ig:DropDownItem> <ig:DropDownItem Selected="False" Text="Test2" Value=""> </ig:DropDownItem> </Items> </ig:WebDropDown> <asp:RequiredFieldValidator ID="rfvTest" runat="server" InitialValue="Please select" ControlToValidate="ddTest" ErrorMessage="*** Test is a mandatory field" Display="Dynamic" CssClass="mandatory"></asp:RequiredFieldValidator> </div> <p> <asp:Button ID="Button1" runat="server" Text="Button" /> </p> </form></body></html>
Hello wakefl ,
Thank you for posting in our forum.
I’ve managed to reproduce this and it seems to only happen when EnableMultipleSelection is true and the MultipleSelectionType is "Checkbox".
I’ve open a case for you with number: CAS-103729-M9S9K1 and will log this issue to be reviewed by our development team. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Let me know if you need more information.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support