Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6841791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:00:38+00:00 2026-05-27T00:00:38+00:00

I have a DynamicForm with a TextField placed in it. They are in a

  • 0

I have a DynamicForm with a TextField placed in it. They are in a custom controller’s view (like a form).
When user types some text in this field, the ListGrid with available(suitable) textvalues is shown.
This ListGrid retrieves data from server through DataSource fetching. In dataArrived event I have some logic, and make a decision to send another server request or not, and put focus into TextField.

form.focusInItem(item);

Strange behaviour takes place in IE. After data arrives, cursor is put at the very beginning of the TextField.
In Mozilla, Chrome after data arrives, textfield can lost focus(even after being focused). And focus is placed somewhere else(somewhere between textField and advice grid). I can Tab to next control on my controller’s view and then Shift+Tab back to the TextField.

Have no idea why it happens. Can’t see anything strange while debugging it.
Maybe someone faced a problem like this with SmartGWT text controls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:00:39+00:00Added an answer on May 27, 2026 at 12:00 am

    Reasons for this strange behaviour were found.

    //> @method formItem.getSelectionRange()
    // For text-based items, this method returns the indices of the start/end of the current
    // selection. Returns null if the item doesn't have focus. 
    // <P>
    // Notes:
    // <UL>
    //   <LI>In Internet Explorer, if the item has lost focus since the selection was made,
    // only the start (current caret position) is returned. This is a limitation of Internet
    // Explorer.</LI>
    
    // If the item doesn't have focus always return null
        // Natively the method we use in Moz would give us back the last selection, but the
        // method we use in IE can't give us anything meaningful.
    

    Taken from from FormItem.js

    So, after server returns us a portion of data(dataArrived event), the data fetched into ListGrid and TextField lost focus. When we manually put focus back to text field(form.focusInItem(item);), the selection is (0,0) – the beginning of the field. But only in IE. So we must save last selection before fetching data and then apply this selection after focus was manually put back to the text field.
    And after all data operations and before putting focus and setting selection we must do form.redraw();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok: i have a dynamic form like this: <div id=container> <div id=autosuggest>...</div> <form action=
I have a dynamic form where the user provides a name and description: <label>Name</label><br
I have a form which is built dynamically using this jQuery plugin http://code.google.com/p/jquery-dynamic-form/ When
I have a simple data table which contains dynamic form text fields. Each field
I have put together this code for creating a dynamic form unit Unit1; interface
I am working on dynamic form. i have a radio button, if a user
I have an array that looks like this: grades[0] = [A, 4.0, 0, a];
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have a complex form that has a static section and one that can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.