Sunday, March 11, 2012

Is it possible to use the different Extender controls together

In theory it should work but there may always be workarounds required to get it working just right. If you see any issues please share them here and we can look into helping you solve your specific scenario.

I tried to use MaskedEditExtender with CalendarExtender control but after I choose the date and click outside the calender widget the selected date in the input text box disappears. Here is the code I tried.

 <asp:TextBox id="MaskedDate" runat="server" AutoCompleteType="None" ValidationGroup="DateValidate" />
<act:CalendarExtender ID="MaskedDateCalEx" runat="server" TargetControlID="MaskedDate" />
<act:MaskedEditExtender ID="MaskedDateEditEx" runat="server" TargetControlID="MaskedDate" Mask="99/99/9999" MessageValidatorTip="true" MaskType="Date" />
<act:MaskedEditValidator ID="MaskedDateValidator" runat="server" ControlExtender="MaskedDateEditEx" ControlToValidate="MaskedDate" IsValidEmpty="false" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid" Display="dynamic" TooltipMessage="Input a Date" ValidationGroup="DateValidate" />

Similarly, I also tried using ValidatorCalloutExtender to use with MaskedEditValidator but the tooltip displayed only the message "Control is Invalid", instead of the specified message. Any ideas how to fix these?

Thanks in advance for your replies.


See Work Items7637 and 7722. Could you post your code there and vote for them? I will follow up on this issue with the control owners. Thanks.

No comments:

Post a Comment