Jump to content

How to set focus to an uniEdit


bbm

Recommended Posts

Hi,

 

when I open a new frame to enter new data, I want to set the focus on a special uniEdit component.

 

How can I do that? The UniEdit.SetFocus does not work.

 

Best regards

  • Like 1
Link to comment
Share on other sites

Hi,

 

no. Currently I made a work arround. 

I create an ajax event in the afterrender ExtEvent.

Then I can use the UniEdit.SetFocus in the OnAjaxEvent.

 

Thank you all.

 

Best regards

Link to comment
Share on other sites

  • 7 months later...
9 hours ago, rtalmeida said:

When I needed it, I was told to do so:

UniFormAfterShow

    UniSession.AddJS('setTimeout(function(){'+UniEdit2.JSName +'.focus()}, 100)');

 

 

rtalmeidathanks a lot for this tip. For Frames I tested UniFrameReady an also works!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...