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

ExecuteActionOnReturn=true Not firing

1 Answer 21 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eitan
Top achievements
Rank 1
Eitan asked on 23 May 2015, 10:59 PM

Hi.

 I have a RadTextBox defined like this:

<telerikPrimitives:RadTextBox x:Name="SearchWord"
     FontSize="18.667"
     TextWrapping="NoWrap"
     Watermark="Search Word"
     VerticalContentAlignment="Stretch"
     HorizontalContentAlignment="Stretch"
     Padding="12,2,2,2"
     ActionButtonVisibility="Visible"
     VerticalAlignment="Center"
     Height="80"
     ActionButtonTap="SearchWord_ActionButtonTap"
     InputScope="Search"
     ExecuteActionOnReturn="True" />

 

private async void SearchWord_ActionButtonTap( object sender, EventArgs e )
    {
    await SearchTheWeb();
    }

 

I was expecting the SearchWord_ActionButtonTap to fire when pressing the Enter (right arrow key)?

However this doesn't happen. What am I missing here?

Thanks,
Eitan

 

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 27 May 2015, 04:02 PM
Hello Eitan,

Thank you for contacting us.

The ActionButtonTap event is raised only when you tap the action button. In your case you can use the KeyDown event:
private async void SearchWord_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Key == Key.Enter)
    {
        await SearchTheWeb();
    }
}

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
TextBox
Asked by
Eitan
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or