Jump to content

Recommended Posts

Posted

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
Posted

Hi,

 

thank you, but this is not working. The UniEdit is part of a UniFieldSet. Could this be the problem?

 

Best regards

Posted

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

  • 7 months later...
Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...