Mario Margo Pradipta Mario Margo Pradipta - 2 years ago 93
Swift Question

Swift: Shonobi Data Grid scroll to a specific row

I have two grid let say grid a and grid b.
Value of grid a is (1, 2, 3, 4, 5, ... 50) and in grid b (3, 5, 10, 25) .

I need when I click row with value 10 in grid b , then grid a will automatically scroll to row with value 10 too. Below code I have been try :

gridRoomStatus?.setContentOffset(CGPoint.init(x: 0, y: 0), animated: true)
self.gridRoomStatus?.reloadColumns(self.gridRoomStatus?.columns)


I have that code to make grid a go to the top when grid b is clicking. But its not still solve my problem. I cant get a specific point for row with specific value. In
UITableView
there are
tableView.rectForRow(at: indexPath)
but i cant find similar function with that in Shinobi data Grid. How to do that? Any suggest and answer will help for me. Thanks in Advance.

Answer Source

DISCLAIMER: I am a developer for ShinobiControls.

I have answered your query on the post you made on our forum.

For anyone interested it can be found here.

If you have any questions, please add them to the post linked above.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download