If We are Getting Values from database and assign value to the xamwebmasked editor forexample if the mask is 99999 and there is only one value in the database it throws an exception index out of range while we are using databinding mode=twoway..
Hello Sharma,
We finally found out what your problem is. The issue was fixed and the new version of the XamWebMaskedEditor will be available very soon with the next service release.
Regards,
Doychin Dochev
I am unable to attach sample but i am sending the code used in my sample app i am using silverlight 9.2.20092.1007 dlls
MainPage.Xaml Page
<UserControl xmlns:igEdit="clr-namespace:Infragistics.Silverlight.Controls;assembly=Infragistics.Silverlight.XamWebEditors.v9.2" x:Class="WebMaskedProblem.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<Grid x:Name="LayoutRoot">
<igEdit:XamWebMaskedEditor Width="200" Height="30" Mask="99999" PromptChar=" " PadChar=" " x:Name="me"></igEdit:XamWebMaskedEditor>
</Grid>
</UserControl>
Hi Sharma,
we could not find such a problem. Please, would you send us which version do you use.
Greetings,
Dimitrina
Set the Default value is 1 or 12 or 123 or 1234 u can get the result
I tested your case:
<StackPanel.DataContext> <local:Customer x:Name="bO" /> </StackPanel.DataContext>
******************************************************************************************************
<webEditors:XamWebMaskedEditor x:Name="mEditor" ValueChanged="mEditor_ValueChanged" Mask="99999" InsertMode="False" Value="{Binding NumStr, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" />
//by default the property NumStr has value: NumStr = "12345";
Customer c = sp1.DataContext as Customer; c.NumStr = "8"; //The property NumStr is of type String
I didn't find any problems with the XamWebMaskedEditor, so please, could you send me a zip file of an sample application presenting your problem.