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

Simple Javascript and onRowDblClick

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kelley
Top achievements
Rank 1
Kelley asked on 30 May 2008, 09:01 PM
I'm new to Telerik RadControls. The app was developed with Q1 2007 but we upgraded to Q1 2008 and this isnt working since the upgrade:

I have a RadGrid with this:

<

ClientSettings >

<Selecting AllowRowSelect="True" />

<ClientEvents OnRowDblClick="OpenBusinessObject" />

</ClientSettings>


I double click on a row , it calls the JS code but breaks where I have Rows[index].

I've tried lots of things from these links:
http://www.telerik.com/community/forums/thread/b311D-mmcbk.aspx

http://www.telerik.com/community/forums/thread/b311D-mkttt.aspx

I've tried MasterViewTable, added ShowHeader="true", used uppercase, lowercase "Rows". But keep getting null for this.

function

OpenBusinessObject(index)

{

var props;

alert(index); // get an object here

var test = document.getElementById("ctl00_List_dgList_ctl00");

alert(test.rows.length); // gives me 22 rows which is correct

//var row = test.MasterTableView.Rows[index];  this didnt work. Get NULL

//alert(row);

var propsCol = test.GetCellByColumnUniqueName(test.Rows[index], "EditProp");  // error with Rows.[index]





1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 02 Jun 2008, 08:20 AM
Hello,

We've answered your support ticket opened on the same question, but I'm posting our answer here as well so that other can benefit from the thread as well.

Is this the RadGrid for ASP.NET AJAX or the "Classic" version of RadGrid? For the ASP.NET AJAX version, you can find the client-side API described here.

You may also find the online demo helpful:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/EditOnDblClick/DefaultCS.aspx


Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Kelley
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or