Hi all,

I want to set the focus of the application to the data grid given so that I can navigate through items via arrow keys. The focus can be set using ‘api_component.requestFocus’ , but it’s not possible to navigate through the data grid unless it’s select using the mouse.

Thanks

Suranga

asked 08 Jul '13, 05:35

suranga's gravatar image

suranga
2112
accept rate: 0%


Hi Suranga,

Please give a name to the component inside the grid that you want to set focus to and use this component's name in the API:

  <grid dataSource="EMPLOYEES1">
    <column headerLabel="LAST_NAME">
      <textField name="lastName" column="LAST_NAME"/>
    </column>
    <column headerLabel="SALARY">
      <textField column="SALARY"/>
    </column>
    <column headerLabel="FIRST_NAME">
      <textField column="FIRST_NAME"/>
    </column>
    <column headerLabel="EMAIL">
      <textField column="EMAIL"/>
    </column>
  </grid>

[/xml]

  api_component.requestFocus('mainPanel.lastName');
link

answered 08 Jul '13, 06:50

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 22%

edited 08 Jul '13, 06:51

Thanks Yalim ..

(08 Jul '13, 06:56) suranga
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×85
×4

Asked: 08 Jul '13, 05:35

Seen: 1,258 times

Last updated: 08 Jul '13, 08:47


© Copyright Gerger 2017