# Focus Property

**URL:** <https://www.epiusers.help/t/focus-property/121877>\
**Category:** Kinetic ERP\
**Created:** [December 19, 2024, 7:32pm UTC](https://www.epiusers.help/t/focus-property/121877 "2024-12-19T19:32:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [December 19, 2024, 7:32pm UTC](https://www.epiusers.help/t/focus-property/121877/1 "2024-12-19T19:32:44Z")

</div>

Does anyone know if there is a Property for a Text Box that sets the focus to it? I am doing this in an event, I am not trying to set it in the Properties when setting up the Text Box.

I tried autofocus and autoFocus, but neither worked.

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [December 19, 2024, 7:59pm UTC](https://www.epiusers.help/t/focus-property/121877/2 "2024-12-19T19:59:45Z")

</div>

per Kendo UI… there’s a method for “focus”

![image](https://www.epiusers.help/uploads/default/original/3X/8/7/877cc760b40c9dcb39d0debc970e5aade4d435ac.png)

Not sure if that would work.

Not sure what you’re trying to do. Are you just trying to put that control in focus during an event? There is a control-focus-set tool available for such.

---

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [December 19, 2024, 8:03pm UTC](https://www.epiusers.help/t/focus-property/121877/3 "2024-12-19T20:03:48Z")

</div>

Thanks for finding that, but it did not work.

Yes, I have a ColumnChanged event that if a user selects a certain value in a combo, the combo is hidden and the text box appears. Wanted to default the cursor in there, no biggie if I can’t.

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [December 19, 2024, 8:07pm UTC](https://www.epiusers.help/t/focus-property/121877/4 "2024-12-19T20:07:55Z")

</div>

I think the control-focus-set works in that case.

It should shift focus to the control (textbox).

I’ve used it in MES events to send focus back to a particular control so the user can scan their next barcode. Seems to be pretty reliable.

---

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [December 19, 2024, 8:16pm UTC](https://www.epiusers.help/t/focus-property/121877/5 "2024-12-19T20:16:16Z")

</div>

Did not know about that, thanks for pointing it out. Did not work though, probably because my field is a TransView.

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [December 19, 2024, 8:21pm UTC](https://www.epiusers.help/t/focus-property/121877/6 "2024-12-19T20:21:03Z")

</div>

Mine is also a TransView…

 ![image](https://www.epiusers.help/uploads/default/original/3X/c/c/ccf67729a7b99453cc147c27e36bbe39520cfe34.png)

Every branch of this “switch” event, ends in a control-focus-set… all pointed back to the same TransView textbox. So, the user scans a barcode, depending on its value, they go down one of the branches. At the end, the focus gets set back to the original textbox where it waits for the next barcode scan value which kicks off the event again.

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [December 19, 2024, 8:24pm UTC](https://www.epiusers.help/t/focus-property/121877/7 "2024-12-19T20:24:00Z")

</div>

> [@jkane](#):
>
> user selects a certain value in a combo, the combo is hidden and the text box appears.

Wonder if its a timing issue… can you put an on-create event on that textbox… so when it is created (painted onto the UI) the event fires to set focus?
