简体   繁体   English

Infragistics日期选择器-选择日期,而不是年份

[英]Infragistics Date Picker — Select Day, Not Year

I'm working on a web app that utilizes Infragistics' Date Picker form component for .Net and I'm running into an issue I can't find any solution to here or elsewhere. 我正在开发一个Web应用程序,该应用程序将Infragistics的Date Picker表单组件用于.Net,但遇到了一个问题,在这里或其他地方找不到任何解决方案。 Here's some sample code: 这是一些示例代码:

<igtxt:WebDateTimeEdit ID="tbBirthDate"  runat="server" placeholder="01/01/1980" class="form-control">
            </igtxt:WebDateTimeEdit>

As you can see, I'm using the component in a DD/MM/YYYY format and my client wants, on touchstart on an iPad within the form field, to be able to have the cursor begin at the far left of the component, or within the day area, not at the far right or at the end of the year area. 如您所见,我使用的是DD / MM / YYYY格式的组件,我的客户希望在iPad上,在Form字段内的touchstart上,使光标从组件的最左端开始,或在日间区域内,而不是在最右侧或年末区域内。 This functionality does work on a desktop but on an iPad (presumably other mobile devices, as well) this appears to be a default behavior. 此功能在台式机上确实可以使用,但在iPad(可能还有其他移动设备)上也可以使用,这似乎是默认行为。 Is there a way to make selecting the day region default across all devices/platforms? 有没有一种方法可以使所有设备/平台上的默认日期区域设置为默认值? Thanks in advance for any help you can provide me. 预先感谢您可以为我提供的任何帮助。

UPDATE: Adding graphic below to clarify the issue (taken from Chrome emulation of iPad 3/4): 更新:在下面添加图形以澄清问题(摘自iPad 3/4的Chrome仿真):

在此处输入图片说明

Can you tell me which version of Infragistics ASP.NET controls you are using? 您能告诉我您正在使用哪个版本的Infragistics ASP.NET控件吗? It seems that you are using the Ultra packet, which we don't support anymore. 看来您正在使用我们不再支持的Ultra数据包。 Can you try this sample , which is using the WebDateTimeEditor control and see if you are going to have such an issue. 您可以尝试使用WebDateTimeEditor控件的示例 ,看看是否会遇到这样的问题。 I'm testing it under iOS version 8.2 and Chrome version 38.0.2125.59 and I'm able to put the cursor at the beginning, at the end and I'm also able to select the day also. 我正在iOS版本8.2和Chrome版本38.0.2125.59下对其进行测试,并且可以将光标放在开头,结尾,也可以选择日期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM