This is a migrated thread and some comments may be shown as answers.
Databinding and radDateTimePicker
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
Lasse
Top achievements
Rank 1
Lasse asked on 15 Dec 2011, 03:34 PM
Hi

I have a problem with the ValueChanged event. It does not fire when i populate the record, but when the control is shown.
This is because the control is binded to the object. So I really dont know if the change is done by the user or bye the binding it self. 
Is there a way to check if the value is set by the object binding or by the user?

Regards
Svein Thomas

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Dec 2011, 04:04 PM
Hi Svein,

Thank you for writing.

I suppose that your question is related to the RadDateTimePicker control. You should use IsKeyBoard property, for example:

void radDateTimePicker1_ValueChanged(object sender, EventArgs e)
{
    if (radDateTimePicker1.DateTimePickerElement.TextBoxElement.IsKeyBoard)//user input
    {
    }
}

I hope this helps.

Regards,
Peter
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Asked by
Lasse
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or