I'd like to be able to programmatically select a particular row in a grid (highlight it) after executing a query on the underlying DS. Although I can set a particular record as the current record of the DS, this doesn't get reflected visually in the grid. I also tried api_component.setSelectedRowid to set it to the DS row ID, but it still doesn't change the display.

Is there a way to synchronize the inner state of the grid with the visual?


asked 13 Jan '16, 18:26

Ilia%20Sazonov's gravatar image

Ilia Sazonov
accept rate: 0%

Hi Ilia,

This works for me. I used api_datasource.setCurrentrowByPK to change the current row and the grid shows the updated current row. How do you do it?

Kind Regards,


answered 14 Jan '16, 06:48

Yalim's gravatar image

Yalim ♦♦
accept rate: 20%

Hi Ilia, I just double-checked. This is something we fixed after releasing 1.9. So the fix should be available in the next release.

(14 Jan '16, 06:50) Yalim ♦♦

Thanks, Yalim. I tried the following:

api_datasource.executeQuery('t_mstr_tag1'); api_datasource.setcurrentrowbyrownr('t_mstr_tag1',1);




I'm using Chrome on Windows 7.

(14 Jan '16, 12:39) Ilia Sazonov

Hi Ilia,

This issue will be fixed in the next version of Formspider.

(15 Jan '16, 06:39) Yalim ♦♦

Hi Yalim ?

This functionality works and if Datasource infinitescroll ?


answered 15 Jan '16, 02:14

AlfAbetas's gravatar image

accept rate: 11%

Hi AlfaAbetas,

It will work only if the row you are selecting is already in the datasource. It will not cause the datasource fetch new rows from the database.

Kind Regards, Yalim

(15 Jan '16, 06:40) Yalim ♦♦
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 13 Jan '16, 18:26

Seen: 2,741 times

Last updated: 15 Jan '16, 06:40

© Copyright Gerger 2017