This is a migrated thread and some comments may be shown as answers.

ResponseButtons not working?

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike Maddux
Top achievements
Rank 1
Mike Maddux asked on 08 Apr 2010, 04:25 PM
Hi,

This is not working as I would have expected. (Using Q1)

I have a RadWindow that contains a couple of input text boxes and two buttons - Save and Cancel.  For the Save button, I have added the attribute

RadWindow.ResponseButton

 

 

="Accept"

 



And for the Cancel button, I have added the attribute


 

RadWindow.ResponseButton

 

 

="Cancel"

 

I have a handler for the Closed event.

I open the window with the ShowDialog method.

I expected that clicking either the Save or Cancel button would cause the Closed event to be fired, including a DialogResult of True or False depending on which button was click.  Instead my Close event handler doesn't receive an event and the dialog window does not close.

What am I missing?

Thanks,

Mike Maddux

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 08 Apr 2010, 06:39 PM
Hi Mike,

 The response button only causes you button to be clicked if Enter or Escape is pressed (depending on the value). If you need to close the window with these buttons you will need to do this in the event handlers of the Click events.

We will consider making this more straight-forward, because you are right that the current behavior is not very good.

Hope this helps!

All the best,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Mike Maddux
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or