iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
I have the following:
<Intersoft:FieldLabel Header="Home Phone" HeaderPosition="Top" HeaderForeground="White">
<Intersoft:UXMaskedInput x:Name="tbxHomePhone" Width="101" Value="{Binding CurrentParticipantPhone.HomePhone, Mode=TwoWay, NotifyOnValidationError=True}" EditMask="(###) ###-####" IsSaveLiteral="False" IsSaveMask="False" DisplayMode="EditMask" />
</Intersoft:FieldLabel>
Jimmy, I found it.
My size of the control was Width="101" when I changed it to Width="110" it began to work.
Thanks
Ross
Hello Ross,
Unfortunately, I could not replicate the issue. I tried to use your following structure. However, In my test, I set the Value diretcly.
Value="5555551212"
Or
tbxHomePhone.Value = "5555551212";
I can see (555) 555-1212 when load the page without click it. So. would you mind to let us know what datatype in your viewmodel. Or, you can also send us a simple working project that replicates this issue.
Regards,Handy
Hello Handy,
The datatype in MS SQL 2008 R2 is a varchar(20), it is backed in EF marked as a string. DF maps it to a string property in the generated entity code. I believe a simple EF backed string property should reflect the same thing that I found. If not, please advise and I will prepare a small project for you.
If you put direct value as I mentioned before, do you also get the same error as well?Define the value directly is also using a string. So, I think it should be the same.
It would be better if you can send us a simple project that replicates this issue.
Hi Ross,
Have you managed to get the UXMaskedInput work in your end?
Thanks,Jimmy
As you stated, if you put the value in directly it works, however, if it is bound to data coming from EF and IdeaBlade, it does not. Do you have IdeaBlade DF for testing?
Yes, we do have IdeaBlade setup in our development environment.
It will be great if you can send a simple sample that replicates the problem, we can help you shot the problem very quickly.
Jimmy,
It is not so simple to provide you with a sample, I tried it on the DF+IS ClientUI sample and it worked there, but for an odd reason it does work which I will explain...
In the sample app, the data is fetched before the Contact editor dialog is displayed, because of this, the binding in the Contact editor dialog works as expected. However, in my app, which you will see in the attached video, the data is not fetched until that window is opened. When it first displays, you will note that the field appears empty. I could either (a) click on the field and it would appear or do as I did in this video, minimize and restore. When it is restored, the data appears. So, the binding from MS SQL, EF, DF to IS is working as expected, however, the control is not responding correctly. Later in the video, I run a second time after changing the UXMaskedInput control to a UXTextBox control. When the window appears this time, the data is seen immediately. This proves it is not a binding problem witht the UXTextBox, so something is wrong with the UXMaskedInput binding architecture.
In the attachment is the xaml (highly commented out) and cs VM (highly commented out).
To create the table:CREATE
[ParticipantPhoneID] [bigint] IDENTITY(0,1) NOT NULL,
[ParticipantID] [bigint] NOT NULL,
[HomePhone] [varchar](20) NULL,
[CellPhone] [varchar](20) NULL,
[WorkPhone] [varchar](20) NULL,
[OtherPhone] [varchar](20) NULL,
[Concurrency] [timestamp] NULL,
(
[ParticipantPhoneID] ASC
Insert 1 row into the table with a ParticipantID=1 and you should be able to reproduce the same problem.
I hope this helps?
I need more time to investigate this scenario. I will let you know as soon as possible. Please bear with me.
Unfortunately, We could not run your sample. Actually, we need to have the runable sample or at least we can know the real return value of your database.E.g I used sample from ClientUI & DevForce Part 2: Contact Sandbox Editor .In the phone field (EditContact), replace it with UXMaskedInput. When assigned value from database, it returns correctly.
Based on our discussion with developer teams, you need to check if the return value is correct or not.Because if there is white space between or after the number, it will fail.
Handy,
I will see what I can do, I may have to send the entire app to you which is huge. Its very hard to break it up with a sample that illustrates this problem. I really do believe that based on the video I sent that it is obvious that the textbox doesn't have an issue like the maskedinput, but, I understand, we are all developers here, and I have to prove something, which, if I can I will. Or maybe, you can show me the errors of my ways. :)
Take care,
Your video does not help much. We need to have the runable sample since we could not replicate the issue in here. I hope you understand. We need this to investigate the issue for you.
The point of the video was to prove that by switching between a UXMaskedInput then to a UXTextBox without changing anything else, that the binding is working. I will try something else until I can get it to work or fail and send you my results.
Any updates about the UXMaskedInput issue in your end?
Nope, still can't get it to work correctly.
Ross, thanks for the update.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname