This is a migrated thread and some comments may be shown as answers.
ClientSide event in RadGrid for Edit/Insert mode
1 Answer 63 Views
This is a migrated thread and some comments may be shown as answers.
darenkov
Top achievements
Rank 1
darenkov asked on 18 Oct 2009, 04:04 PM
Is there a clientside event that I can access when the RadGrid goes into Edit mode or Insert mode when I am using a template for insertin/editing?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 19 Oct 2009, 04:58 AM
Hello,

Attach OnCommand event to RadGrid and check for the commandname in the event handler as shown below.

JavaScript:
 
<script type="text/javascript"
function RadGridCommand(sender, args) { 
    if (args.get_commandName() == "Edit") { 
        alert("Edit"); 
 
    } 
    if (args.get_commandName() == "InitInsert") { 
        alert("Insert"); 
 
    } 
</script> 

-Shinu.
Tags
Grid
Asked by
darenkov
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or