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
1104
Selection after double-clicking a DateTime cell
posted

Hi,

when using style "DateTime" or similar styles for columns, the following behaviour would be very useful:

When the user activates the cell and then doubleclicks e.g. on the 2-digit hour value, these 2 digits should be selected.

However, by default the whole cell value is selected.

What would be the easiest way to change this?

Thank you,

best regards

Parents
No Data
Reply
  • 48586
    Verified Answer
    posted

    Hello ,

     

    the easiest way to achieve functionality that allows you to select a section from the default date time, is to handle ClickCell event of UltrtaGrid and to put there following code lines:

    if (e.Cell.EditorResolved is Infragistics.Win.DateTimeEditor)

                ((Infragistics.Win.DateTimeEditor)(e.Cell.EditorResolved)).PerformAction(Infragistics.Win.UltraWinMaskedEdit.MaskedEditAction.SelectSection, false, false);

     

    Please see attached sample. So on first click user will select a specific section and on the double click will select whole cell value.

     

    Please let me know if you have any further questions.

    99919.zip
Children
No Data