Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: MaskedEditValidator can't make use of MaskedEditExtender's UserDateFormat property [15190]

$
0
0
version 1.0.11119.0
when we define UserDateFormat of MaskedEditExtender, MaskedEditValidator will make use of UserDateFormat property, but it is using wrong format..
the code in MaskedEditValidator.cs , line 528 is wrong.
AttibFmt = (MaskExt.UserDateFormat == MaskedEditUserDateFormat.None ? AttibFmt : MaskExt.UserDateFormat.ToString());

In our usage, we just change it to
AttibFmt = (MaskExt.UserDateFormat == MaskedEditUserDateFormat.None ? AttibFmt : ToDMY(MaskExt.UserDateFormat));

and added a help function ToDMY
public string ToDMY(MaskedEditUserDateFormat fmt)
{
string ret = "DMY";
switch (fmt)
{
case AjaxControlToolkit.MaskedEditUserDateFormat.DayMonthYear:
ret = "DMY";
break;
.....
}
return ret;
}
Comments: Issues is closed as it is fixed with April 2013 release.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>