This question is locked. New answers and comments are not allowed.
I'm using some RadDatePickers in a RadRadioButton in a RadDropDownButton like so:
1) When I make a selection in either of the DatePickers, the DropDownButton's DropDownClosing event fires. The DropDownButton does not close, however; the event just fires without closing. I've tried KeepOpen=true and false, no difference. I could ignore these events and continue editing since the DropDown remains open. However, this handler results in a round trip to the server (using invalid dates) for a great deal of data each time the Closed event fires. The false events are indistinguishable from the real DropDownClosing event. Ideally, I'd like to know how to make these false events go away. The sample project provided in this thread exhibits this same behavior.
2) I validate the dates in the DropDownClosing event. If they are invalid, I keep the button open by setting the IsOpen property via the Dispatcher, as shown in another similar thread. Is this still the appropriate way to do this? Other threads mention a cancellable DropDownClosing event. The PITS system (ID 3526) says this event was added September, 2010. I'm using 2011.1.419.1040 and don't see any variation of a Closing event.
3) Is the KeepOpen property documented somewhere?
4) If I click on any radio button in the DropDownButton directly, that button is selected as expected. If I click either of the DatePickers, then try to select the RadioButton that contains them, it takes two clicks to select the radio button. Any way to reduce this to a one-click operation?
Thank you,
KO
<
telerik:RadDropDownButton
x:Name
=
"Period"
Width
=
"200"
DropDownWidth
=
"250"
Content
=
"Period: 12/12/2012 to 12/12/2013"
DropDownClosed
=
"Period_DropDownClosed"
KeepOpen
=
"False"
>
<
telerik:RadDropDownButton.DropDownContent
>
<
StackPanel
x:Name
=
"Periods"
Orientation
=
"Vertical"
>
<
telerik:RadRadioButton
Content
=
"Today"
Tag
=
"0"
/>
.
.
.
<
telerik:RadRadioButton
Tag
=
"11"
>
<
telerik:RadRadioButton.Content
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"From"
Margin
=
"0,6,6,0"
/>
<
telerik:RadDatePicker
x:Name
=
"PrevFromPicker"
Height
=
"22"
FontSize
=
"9"
/>
<
TextBlock
Text
=
"to"
Margin
=
"6"
/>
<
telerik:RadDatePicker
x:Name
=
"PrevToPicker"
Height
=
"22"
FontSize
=
"9"
/>
</
StackPanel
>
</
telerik:RadRadioButton.Content
>
</
telerik:RadRadioButton
>
</
StackPanel
>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
1) When I make a selection in either of the DatePickers, the DropDownButton's DropDownClosing event fires. The DropDownButton does not close, however; the event just fires without closing. I've tried KeepOpen=true and false, no difference. I could ignore these events and continue editing since the DropDown remains open. However, this handler results in a round trip to the server (using invalid dates) for a great deal of data each time the Closed event fires. The false events are indistinguishable from the real DropDownClosing event. Ideally, I'd like to know how to make these false events go away. The sample project provided in this thread exhibits this same behavior.
2) I validate the dates in the DropDownClosing event. If they are invalid, I keep the button open by setting the IsOpen property via the Dispatcher, as shown in another similar thread. Is this still the appropriate way to do this? Other threads mention a cancellable DropDownClosing event. The PITS system (ID 3526) says this event was added September, 2010. I'm using 2011.1.419.1040 and don't see any variation of a Closing event.
3) Is the KeepOpen property documented somewhere?
4) If I click on any radio button in the DropDownButton directly, that button is selected as expected. If I click either of the DatePickers, then try to select the RadioButton that contains them, it takes two clicks to select the radio button. Any way to reduce this to a one-click operation?
Thank you,
KO