Hi,
We are updating to Infragistics 13.1 from 7.3.
Currently trying to scroll the webdatagrid programmatically at the client side using javascript.
Earlier for Ultrawebgrid, scrollToView() was used.
Tried using scrollIntoView for webdatagrid. But it doesnot work.
oCell = this.oGrid.get_rows().get_row(i).get_cellByColumnKey(sColumn);
oCell.get_row().get_cell(0).get_element().scrollIntoView();
Could you please send me a sample for making it work.
Please note that webdatagrid contains close to 1000 records.
Expecting your response at the earliest.
Hello Jeevitha Manickam,
Thank you for posting in our forums!
The first thing I see wrong with your code is that you are trying to call scrollIntoView() from a DOM element and we provide our scrollIntoView() method off of a cell.
If you use the following code, it should work. Please also note that the cell must be visible to be scrolled to. If the column is hidden, this will not work and you should choose another, visible cell to scroll to.
oCell.scrollIntoView();
I have also attached a sample that demonstrates this for your convenience. You can find the ScrollToRow.zip link below.
If you need any further assistance with this, please let me know.
Hi Mike,
Thanks for your reply.
I tried this - oCell.scrollToView(); It works for few rows of the grid ( say for 14 rows), after that my selected row is not in the visible area of the grid.
Looks like scroll bar position does not match with the selected row position.
Please note that my selected row keeps changing dynamically based on a search condition in client side. (javascript).
Could you please let me know if i need to do something else to work for all the rows of the grid.
And also the no of rows in the grid is not fixed. it keeps changing according to the data in DB.
Please reply asap.
We have a deliverable today.
Thanks a lot for the trouble u took in providing me a solution.
We use Microsoft Visual Studio 2010 premium version. I wasnt able to open your solution. Please see the attachment.(Solution_cant_open.png)
Infragistics version - Version=13.1.20131.1012
Could u please provide me a updated solution with the IG version iam using.
Please revert asap.
Attaching my design file. Please review and let me know.
Hi Jeevitha Manickam,
I have further modified my sample to use VS2010 and Infragistics 13.1.20131.1012. Again, I am unable to reproduce this issue when testing with these conditions.
Please find the attachment to this post and test the sample to let me know if you are experiencing the issue with it.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using IE9 with version 13.1.20131.2331 in Infragistics ASP.NET 2013 Volume 1.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one
Looking forward to hearing from you.
Iam sorry. Iam still not able to open your solution. It gives me same error message like before. It shows unrecognised version in my machine. Please see attachment.
-------------------------------------------
We are getting close to our production date and would appreciate quicker response. Earlier we used to get response within 2-3 hours even during IST hours. Is there any way we can prefer for high priority, while posting the question in Infragistics forum? Thanks for the understanding.
Finally i got it working by using - oCell.get_element().scrollIntoView();
Not sure why it wasnt working out with oCell.scrollToView().
Might be useful for anyone who has same requirement.
Thanks a lot for your support.