向UltraWebGrid中绑定WebDateChooser
来源:互联网 发布:me域名邮箱 编辑:程序博客网 时间:2024/05/24 07:22
To place a date chooser control on ultra web grid is a simple task. But one thing u have to care of is that before grid binding u have to bind the edit control with column. Else you will waste your time like. I try different things but in the end i find out this solutions to bind that control with grid before you bing grid with dataset. There is no need to bind it on InitializeRow or InitializeLayout Event. Below is the sample code,
In aspx page
I replace the html < > with [ ]
“[igtbl:UltraWebGrid Style=”left: 53px; top: -3px” ID=”Grid” Height=”150px Width=”100%”]
[Bands]
[igtbl:UltraGridColumn AllowUpdate=”Yes” BaseColumnName=”RequiredDate” CellButtonDisplay=”Always”
DataType=”System.DateTime” Format=”M/d/yyyy” Key=”RequiredDate” Type=”Custom” EditorControlID=”GridDateChooser”]
[HeaderStyle HorizontalAlign=”Center” /]
[Header Caption=”Required Date”]
[RowLayoutColumnInfo OriginX=”25″ /]
[/Header]
[CellStyle HorizontalAlign=”Center”]
[/CellStyle]
[Footer]
[RowLayoutColumnInfo OriginX=”25″ /]
[/Footer]
[/igtbl:UltraGridColumn]
[/Bands]
[/igtbl:UltraWebGrid]
[igsch:WebDateChooser ID=”GridDateChooser” runat=”server” ForeColor=”BLACK”
Font-Size=”10px” NullDateLabel=”" ]
[CalendarLayout AllowNull=”False”]
[SelectedDayStyle CssClass=”InfraCalenderSelectedDate” /]
[CalendarStyle BackColor=”#6699CC” CssClass=”InfraCalendarStyle” /]
[DayHeaderStyle BackColor=”White” Font-Names=”Verdana” ForeColor=”Black” /]
[/CalendarLayout]
[DropButton ImageUrl1=”~/Img/calender.gif”]
[/DropButton]
[/igsch:WebDateChooser]”
Now in ur code file here are the two lines you have to write before binding the grid with dataset
Grid.Columns.FromKey(”RequiredDate”).Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
Grid.Columns.FromKey(”RequiredDate”).EditorControlID = “GridDateChooser”;
- 向UltraWebGrid中绑定WebDateChooser
- 如何将Excel作为UltraWebGrid 数据源绑定到UltraWebGrid中?
- 在UltraWebGrid单元格中绑定dropdownlist
- 在UltraWebGrid单元格中绑定WebNumericEdit或其它可编辑控件
- UltraWebGrid中格式化字符串
- UltraWebGrid
- UltraWebGrid
- UltraWebGrid中CheckBox的用法
- UltraWebGrid单元格中加入超链接
- UltraWebGrid单元格中显示链接
- UltraWebGrid中列固定效果
- Infragistics 中UltraWebGrid 单元格加入链接.
- 在UltraWebGrid中增加CheckBox列
- 在UltraWebGrid中验证填入数据
- WebDateChooser客户端设置日期
- 如何获取Spinner中绑定的所有数据 or 如何直接向Spinner绑定字符串
- 在客户端使用javascript遍历UltraWebGrid中每个单元格
- 如何设置UltraWebGrid中模板列中的控件状态
- 不要老是像一头“牛”——在解决问题方法上的启发
- Java NIO类库Selector机制解析(上)
- 什么叫GPS、GPS的原理
- 于丹《庄子》心得讲稿-《心态与状态》
- 软件过程模型的分类与选用
- 向UltraWebGrid中绑定WebDateChooser
- ActiveSync应用层程序协议分析-RAPI的握手过程
- GLONASS系统介绍
- Java NIO类库Selector机制解析(下)
- MANOI AT01:如何成为一个世界级的短跑机器人
- extjs的combobox的用法
- WEB将把我们带向何方
- 关于Tomcat5.0和jdk1.4安装的一些心得。
- “VM6辅助启动.bat”生成器.hta