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

Client Event for Item Focus

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
Neil N asked on 21 Oct 2008, 10:09 PM
Is there a client event that gets fired when an item gets focus or when the row changes?  I'm not referring to events tied to mouse clicks but rather to keyboard use (e.g., tabbing from textbox to textbox).  I want to update a label on the webpage as the cursor moves from field to field.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 22 Oct 2008, 08:05 AM
Hi Neil,

You can use blur or focus event handler of the TextBox.

focus
The focus event occurs when an element receives focus either via a pointing device or by tabbing navigation. This event is valid for the following elements: LABEL, INPUT, SELECT, TEXTAREA, and BUTTON.
blur
The blur event occurs when an element loses focus either via the pointing device or by tabbing navigation. This event is valid for the following elements: LABEL, INPUT, SELECT, TEXTAREA, and BUTTON.



All the best,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Missing User
Share this question
or