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

How do I use the javascript method _getNextDataRow()?

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Jan 2011, 05:28 PM
Hello!

Today I took a "deep" look into the javascript methods, expandos, etc. of the radgrid control. There I found different methods, that are very interesting to me (in grouping and navigation with keys scenario ==> excel-like style), for example

var radGrid = $find(radGridId).get_masterTableView()._getNextDataRow()

I can see, that this methods needs a argument "a" (see attached png-File), but I don't know what type of argument and where I should get it then. Can anyone help me?

Generally: Is there a documentation of all these telerik-javascript-things, where this is all explained (I'm not an javascript expert)? Is there a pattern for the arguments, because as you can see in the picture, there are many methods, which need different arguments (b, f, etc.)?

Please help me.

Bye

Michael

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 21 Jan 2011, 10:41 AM
Hi Michael,

Indeed those methods and fields (starting with underscore ' _ ' ) are not well documented because they are intended primary for internal use by the grid and normally you do not need to use them. You can find reference to the official Client-Side API for the grid here explaining all the methods and properties that should be sufficient for client-side programming with the grid. It is a good idea to start by exploring them and the various examples they are used in.

Finally on your question about the _getNextDataRow() method - it is an internal method used as an iterator for traversing rows in the grid in various complex scenarios like client-side navigation and selection. The parameter it takes is the html element of a concrete grid item (namely the grid row).

Regards,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or