Skip to content

Replies

0
Eduard
Eduard answered on Apr 29, 2013 5:29 PM

No, I did not solve this. As far as I know, person who continued this pilot project switched it to IBM Worklight and Sencha Touch.

Thanks

0
Eduard
Eduard answered on Sep 4, 2012 8:24 PM

Thanks, scrolling does work! However how can I find that specific record is outside the visible part of the grid and I really need to scroll the grid to select it ? If the record is visible, I can just select it, something like:

$('#grid1').igGridSelection('selectRow', i);

Now when I scroll to the visible record, grid first scrolls to it and the record became top record of the visible grid, then it scrolls back, record jumps to the previous place and became selected.

Thanks,

Ed

0
Eduard
Eduard answered on Aug 31, 2012 10:23 PM

Sorry, it does not work for me. I have primaryKey: "timestamp" set and when I try to scroll to row if it's necessary:

var searchStr = "tr[timestamp='" + strTime + "']";

$("#grid1_scroll").scrollTop($("#grid1").find(searchStr).first().position().top)

I receive an error message: Microsoft JScript runtime error: Unable to get value of the property 'top': object is null or undefined

In debugger I see that $("#grid1").find(searchStr).first().position() is null…

Thanks,

Ed

0
Eduard
Eduard answered on Aug 30, 2012 8:00 PM

Angel,

Thanks for the answer. I have additional questions:

1. Do you mean $("#grid1").igGrid("scrollContainer") instead of $("#grid1_scroll") ?

2. I don't see igGrid find() method in docs. Is it undocumented ?

3. I can use $("#grid1").igGrid("findRecordByKey", "key value") in second case, correct ?

Another question – will this feature be added to next release ?

Thanks,

Ed