三石大哥 为什么工具栏中放入文本框、复选框等控件都显示不出lable属性中的内容呢?

Jan 12, 2010 at 3:44 PM
Edited Jan 12, 2010 at 3:45 PM

比如

<ext:Panel ID="Panel1" ShowBorder="True" ShowHeader="false" runat="server"
                Layout="Fit"  AutoScroll="True" Title ="查询"  >
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>               
                       
                         <ext:DatePicker ID ="DatePickerCxsjS" runat ="server" Label ="查询时间范围"  >
                         </ext:DatePicker>                           
                         <ext:DatePicker ID ="DatePickerCxsjE" runat ="server" Label ="至" >
                         </ext:DatePicker>
                          <ext:ToolbarSeparator ID="ToolbarSeparator4" runat ="server" >                            </ext:ToolbarSeparator>                                      
                            <ext:Button ID="ButtonSearch" Text="查询" runat="server" Icon="Zoom"  >
                            </ext:Button> 
                            <ext:ToolbarSeparator ID="ToolbarSeparator1" runat ="server" >
                            </ext:ToolbarSeparator>                            
                            <ext:Button ID="ButtonExportInformation" Text="导出到excel" runat="server" Icon="PageExcel" OnClick ="ButtonExportInformation_Click" DisableControlBeforePostBack ="false" >
                            </ext:Button>
                            <ext:ToolbarSeparator ID="ToolbarSeparator2" runat ="server" >
                            </ext:ToolbarSeparator>                           
                                                           
                        </Items>
                    </ext:Toolbar>


上面的代码中
DatePickerCxsjS、
DatePickerCxsjE
的label属性都不会显示

 

Coordinator
Jan 17, 2010 at 3:32 AM

这是Extjs的默认效果,所有不放在Form中的表单字段都不会显示Label

Editor
Jan 26, 2010 at 11:34 PM

只能再套一个ext:Form了......