This is a migrated thread and some comments may be shown as answers.

Possible to use javascript to interact with a grid using Virtual Scrolling?

3 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 2
Chris asked on 20 Oct 2010, 11:00 PM
I'm comparing Grid controls and need to know if the Telerik Grid control will permit me to modify the Virtual Scrolling sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx

and perform the following actions using Javascript:
1) Scroll to a particular row
2) Highlight that row
3) Detect if a user changed the selection
4) Respond (via Javascript) if the selection was changed

Let me know if this is possible using AJAX or through web services.  I'm looking for the most perfomant option.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 Oct 2010, 09:50 AM
Hello Chris,

I suggest that you review the help article below which elaborates on similar subject.
http://www.telerik.com/help/aspnet-ajax/grdscrolltotheselecteditem.html

Feel free to modify/extend the solution to be in par with your custom project schema.

Greetings,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Chris
Top achievements
Rank 2
answered on 28 Oct 2010, 01:17 AM
GridDataDiv  does not exist in JavaScript.  It returns undefined. 

Do share how to find this property since I do need to scroll a row to top in my current project
0
Pavlina
Telerik team
answered on 28 Oct 2010, 05:10 PM
Hello Chris,

Using the grid's GridDataDiv property you can obtain a reference to the DOM element for the grid's scrollable region.

var scrollArea = $find("<%= RadGrid1.ClientID %>").GridDataDiv;

However, if the problem still persists, please send us a simple working project where we could see the described issue.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Chris
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Chris
Top achievements
Rank 2
Share this question
or