弹出式压光机 [英] Pop-up calender with

查看:79
本文介绍了弹出式压光机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户需要根据特定月份查看特定数据.我使用了弹出式日历,但它允许用户选择日期.我只需要一个月零一年的压延机即可.

Users need to see certain data according to certain months. I used the pop-up calender but it allows the user to select a date. I just need a month and a year in the calender. How can i go about it?

推荐答案

如果您使用的是jQuery,则该页面会针对此问题提供一些帮助.

> http://stackoverflow.com/questions/2208480/jquery-date-选择器仅显示月份年份 [ ^ ]
If you are using jQuery, this page has some help regarding the problem.

http://stackoverflow.com/questions/2208480/jquery-date-picker-to-show-month-year-only[^]


DJAppleboy

Hi, DJAppleboy

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" OnClientHidden="onCalendarHidden"  OnClientShown="onCalendarShown" BehaviorID="calendar1"

    Enabled="True" TargetControlID="TextBox1">
</cc1:CalendarExtender>





function onCalendarShown() {

     var cal =


find(" ); // 将默认模式设置为月 cal._switchMode(" ); // 每月迭代项目,并将点击事件附加到其上 如果(cal._monthsBody){ for ( var i = 0 ; i < cal._monthsBody.rows.length; i ++){ var row = cal._monthsBody.rows [i]; for ( var j = 0 ; j < row.cells.length; j ++){ Sys.UI.DomEvent.addHandler(row.cells [j] .firstChild," ,调用); } } } } onCalendarHidden()函数 { var cal =
find("calendar1"); //Setting the default mode to month cal._switchMode("months", true); //Iterate every month Item and attach click event to it if (cal._monthsBody) { for (var i = 0; i < cal._monthsBody.rows.length; i++) { var row = cal._monthsBody.rows[i]; for (var j = 0; j < row.cells.length; j++) { Sys.UI.DomEvent.addHandler(row.cells[j].firstChild, "click", call); } } } } function onCalendarHidden() { var cal =


这篇关于弹出式压光机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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