0
我已經創建了一個工作的jqGrid,可以完成我所需要的任何操作,但我對這裏的問題難以理解。當我打開添加行或編輯對話框時,我可以在閒暇時添加/編輯任何字段,但是當我專注於或單擊開始日期或編輯日期框旁邊的按鈕時,日期選擇器不會顯示。我甚至複製了我在trirand.net示例中看到的內容。爲什麼jqGrid DatePicker不能顯示當我單擊或專注於文本框
這是我的標記。
<trirand:JQGrid runat="server" ID="addGoalsGrid" AddDialogSettings-Modal="true" OnRowAdding="addGoalsGrid_RowAdding"
OnRowDeleting="addGoalsGrid_RowDeleting" OnRowEditing="addGoalsGrid_RowEditing"
SearchDialogSettings-MultipleSearch="true">
<Columns>
<trirand:JQGridColumn DataField="GoalID" PrimaryKey="True" Visible="false" Searchable="false" />
<trirand:JQGridColumn DataField="BeginDate" Editable="true"
DataFormatString="{0:d}" Width="70" EditType="DatePicker" EditorControlID="beginDateTextBox" />
<trirand:JQGridColumn DataField="EndDate" Editable="true"
DataFormatString="{0:d}" Width="70" EditType="DatePicker" EditorControlID="endDateTextBox" />
<trirand:JQGridColumn DataField="GoalName" Editable="true" EditType="TextBox">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
<EditClientSideValidators>
<trirand:RequiredValidator />
</EditClientSideValidators>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="WeeklyGoal" Editable="true">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
<EditClientSideValidators>
<trirand:RequiredValidator />
</EditClientSideValidators>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="GoalComplete" Editable="true" EditType="CheckBox"
EditDialogColumnPosition="2" EditDialogRowPosition="3" HeaderText="Goal Complete" />
<trirand:JQGridColumn DataField="Task1" Editable="true" Visible="false" EditType="TextBox"
HeaderText="Step 1">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T1EstimatedHours" Editable="true" Visible="false"
EditType="TextBox" HeaderText="Estimated Hours" EditDialogColumnPosition="2"
EditDialogRowPosition="6">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="3" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T1Complete" Editable="true" Visible="false" EditType="CheckBox"
HeaderText="Complete" EditDialogColumnPosition="3" EditDialogRowPosition="6" />
<trirand:JQGridColumn DataField="Task2" Editable="true" Visible="false" EditType="TextBox"
HeaderText="Step 2">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T2EstimatedHours" Editable="true" Visible="false"
EditType="TextBox" HeaderText="Estimated Hours" EditDialogColumnPosition="2"
EditDialogRowPosition="9">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="3" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T2Complete" Editable="true" Visible="false" EditType="CheckBox"
HeaderText="Complete" EditDialogColumnPosition="3" EditDialogRowPosition="9" />
<trirand:JQGridColumn DataField="Task3" Editable="true" Visible="false" EditType="TextBox"
HeaderText="Step 3">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T3EstimatedHours" Editable="true" Visible="false"
EditType="TextBox" HeaderText="Estimated Hours" EditDialogColumnPosition="2"
EditDialogRowPosition="12">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="3" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T3Complete" Editable="true" Visible="false" EditType="CheckBox"
HeaderText="Complete" EditDialogColumnPosition="3" EditDialogRowPosition="12" />
<trirand:JQGridColumn DataField="Task4" Editable="true" Visible="false" EditType="TextBox"
HeaderText="Step 4">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T4EstimatedHours" Editable="true" Visible="false"
EditType="TextBox" HeaderText="Estimated Hours" EditDialogColumnPosition="2"
EditDialogRowPosition="15">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="3" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T4Complete" Editable="true" Visible="false" EditType="CheckBox"
HeaderText="Complete" EditDialogColumnPosition="3" EditDialogRowPosition="15" />
<trirand:JQGridColumn DataField="Task5" Editable="true" Visible="false" EditType="TextBox"
HeaderText="Step 5">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="75" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T5EstimatedHours" Editable="true" Visible="false"
EditType="TextBox" HeaderText="Estimated Hours" EditDialogColumnPosition="2"
EditDialogRowPosition="18">
<EditFieldAttributes>
<trirand:JQGridEditFieldAttribute Name="size" Value="3" />
</EditFieldAttributes>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="T5Complete" Editable="true" Visible="false" EditType="CheckBox"
HeaderText="Complete" EditDialogColumnPosition="3" EditDialogRowPosition="18" />
</Columns>
<ToolBarSettings ShowEditButton="true" ShowRefreshButton="True" ShowAddButton="true"
ShowDeleteButton="true" ShowSearchButton="True" />
<AddDialogSettings Modal="True" LoadingMessageText="Please Wait..." SubmitText="Add Goal"
Resizable="false" Width="900" />
<EditDialogSettings Modal="true" LoadingMessageText="Please Wait..." SubmitText="Submit Changes"
Resizable="false" Width="900" />
<ToolBarSettings ShowEditButton="True" ShowAddButton="True" ShowDeleteButton="True"
ShowSearchButton="True" ShowRefreshButton="True">
</ToolBarSettings>
<SortSettings InitialSortColumn=""></SortSettings>
</trirand:JQGrid>
<trirand:JQDatePicker DisplayMode="ControlEditor" runat="server" ID="beginDateTextBox" DateFormat="yyyy-MM-dd" ShowOn="Both" />
<trirand:JQDatePicker DisplayMode="ControlEditor" runat="server" ID="endDateTextBox" DateFormat="yyyy-MM-dd" ShowOn="Both" />