This is a migrated thread and some comments may be shown as answers.

Masked Textbox losing AM/PM values on focus

3 Answers 91 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
salik
Top achievements
Rank 1
salik asked on 19 May 2011, 10:29 AM
Hi,

I am using the mask for the Textbox to diplay time in format 12:05 AM in popup.The value is showing as 12:05 as default and AM/PM is disabled.

when focusing on the control(Textbox) the value AM/PM not displayed and after losing focues its displayied.
while clicking on the data in Textbbox AM/PM gets enabled

The properties are given as follows fior the textbox
<control id="txtTimeOfLoss">
<Type>TextBox</Type>
<MaskType>Time</MaskType>
<Mask>99:99</Mask>
<AcceptAMPM>true</AcceptAMPM>
<Width>60</Width>
</control>


3 Answers, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 19 May 2011, 07:09 PM
I'm not sure how you're setting this up. Can you please post your ASPX code and any associated code-behind files?

Thanks,
-Gimmik
0
salik
Top achievements
Rank 1
answered on 20 May 2011, 06:23 AM
The above is the xml file used for the setting of the textbox for displying the Time in format of 12:04 AM/PM.

There are different code beind files used to bring the data.The data coming perfecyly.only the thing is while displaying the Time in the textbox is showing as 12:04 and AM/PM value is lost,when focus on the textbox the value is coming and is showing as 12:04 AM/PM.I think this is causing with any mask property setting for the textbox.i tried many but no luck..

The textbox properties mentioend as in the thread(xml)
0
O'Man
Top achievements
Rank 1
answered on 24 May 2011, 02:51 PM
Hi,

Maybe you needs sets display mask in adition. I also see your mask contain number only 99:99. How you set AM/PM values? Why not paste some code snipers that show your mask textbox markup?

I hope helps.
Oman
Tags
Ajax
Asked by
salik
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
salik
Top achievements
Rank 1
O'Man
Top achievements
Rank 1
Share this question
or