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

[Solved] Onrowselecting issue

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex Lawson
Top achievements
Rank 1
Alex Lawson asked on 30 May 2008, 01:23 PM
Hi, I am using the new AJAX suite to redevelop an online app previously coded for the asp.net suite.  The new suite looks great and is far easier to code.

I have a two tier table and need to identify when the child table is selected, I have implemented the "OnRowSelecting" event code but have been unable to find the property to get the rows parent table name.

ASP.NET code was as follows:

<ClientEvents OnRowSelected="RowSelected" OnRowSelecting="RowSelectingHandler" />

function RowSelectingHandler(index)
{
            if (this.Name == "Master")
            {
                return false;
            }
}

Can you supply the equivelant code for the AJAX suite please.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 02 Jun 2008, 09:49 AM
Hi Alex Lawson,

Find more about migration from RadGrid for ASP.NET to ASP.NET AJAX here and more information about the new client-side API of RadGrid is available here.

Try achieving your goal with the following sample code:

function RowSelectingHandler(sender, eventArgs)  
{  
    if (eventArgs.get_tableView().get_name() == "Master")  
    {  
        set_cancel(true);  
    }  
}  
 

Let us know if this help and if you need more help.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Alex Lawson
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or