Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
DateTimeEditorProvider does not display DisplayModeFormat="HH:mm"
posted

Please Help:

    I want my WEbDataGrid to cell to display Time in HH:mm, thus i code the following:  

<Behaviors>
                <igGrid:Activation Enabled="true" />
                <igGrid:EditingCore BatchUpdating="true">
                    <Behaviors>
                        <igGrid:CellEditing Enabled="true" EditModeActions-EnableOnKeyPress="true">
                            <ColumnSettings>
                                <igGrid:EditingColumnSetting ColumnKey="EmployeeId" ReadOnly="true" />
                                <igGrid:EditingColumnSetting ColumnKey="Employee" ReadOnly="true" />
                                <igGrid:EditingColumnSetting ColumnKey="EmployeeType" ReadOnly="true" />
                                <igGrid:EditingColumnSetting ColumnKey="Designation" ReadOnly="true" />
                                <igGrid:EditingColumnSetting ColumnKey="WorkHour" ReadOnly="true" />
                                <igGrid:EditingColumnSetting ColumnKey="Time1" EditorID="WebDataGrid1_DateTimeEditorProvider1" />     
                            </ColumnSettings>

<EditModeActions EnableOnKeyPress="True"></EditModeActions>
                        </igGrid:CellEditing>
                    </Behaviors>
                </igGrid:EditingCore>
            </Behaviors>
            <EditorProviders>
                <igGrid:DateTimeEditorProvider id="WebDataGrid1_DateTimeEditorProvider1">
                    <EditorControl DisplayModeFormat="HH:mm"  EditModeFormat="HH:mm">
                    </EditorControl>
                </igGrid:DateTimeEditorProvider>
            </EditorProviders>

   But my Grid Cell still display the DATE only. I had try to change the  DisplayModeFormat="t", as it display DATE only as well.

   Can anyone please enlighten me?

   This is my dataSet:

    <asp:SqlDataSource ID="dsPTStaffShiftTime" runat="server" ConnectionString="<%$ ConnectionStrings:GlobalDataWareHouseConnectionString %>"
        SelectCommand="SELECT CAST('2011-06-30 01:00:00' AS DateTime) AS Time1"></asp:SqlDataSource>

   Thank you very much.

Regards,

Say Chao

Parents Reply Children
No Data