如何在Gridview中为tex框设置日历范围? [英] How to Set calendar extendar in Gridview for a tex box ?

查看:84
本文介绍了如何在Gridview中为tex框设置日历范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够在日历扩展器中选择(查看)只有几个日期





它只显示前两行而忽略休息..





即一个月只显示十天(5天/一行)



这是我的gridview项目模板











I'm able to select (view) only few dates in calender extender


Its showing only top two rows And ignoring rest..


i.e, in a month its showing only ten days (5days/row)

this is my item template of my gridview





<ItemTemplate>
                                                                               <div id="theo">
                                                                                   <asp:TextBox ID="txtDateTheory" runat="server" CssClass="textbox calendertextbox"

                                                                                       Text='<%#Eval("TheoryDate") %>' Width="100px">
                                                                                   </asp:TextBox>
                                                                                   <asp:Button ID="btnthe" runat="server" CssClass="calenderbutton" />
                                                                                   <ajax:CalendarExtender ID="ceDateTheory" runat="server" TargetControlID="txtDateTheory"

                                                                                       PopupButtonID="btnthe" Enabled="True" Format="dd/MM/yyyy " CssClass="cal_Theme1" />
                                                                                   <br />
                                                                                   <asp:TextBox ID="txtDatePractical" runat="server" Text='<%#Eval("PracDate")%>' CssClass="textbox calendertextbox"

                                                                                       Width="100px">
                                                                                   </asp:TextBox>
                                                                                   <asp:Button ID="btnprac" runat="server" CssClass="calenderbutton" />
                                                                                   <ajax:CalendarExtender ID="ceDatePractical" runat="server" TargetControlID="txtDatePractical"

                                                                                       PopupButtonID="btnprac" CssClass="cal_Theme1" Enabled="True" Format="dd/MM/yyyy " />
                                                                               </div>
                                                                           </ItemTemplate>

推荐答案

Ajax日历有自己的类,你可以通过按下来看到它镀铬上的'F12'。你可以做的是在调试模式下从浏览器复制默认类(F12),并通过标记它在css中添加它。通过这种方式,您可以使用自定义和ajax日历自定义工作。
Ajax calender has its own class, you can see it by press 'F12' on chrome. What you can do is copy the default class from browser in debug mode(F12), and add that in your css by marking it important. This way you will have you r custom and ajax calendar self class working.


这篇关于如何在Gridview中为tex框设置日历范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆