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

is there an event tie in for new line

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Charley
Top achievements
Rank 1
Charley asked on 16 Aug 2011, 02:56 PM
Is there an event I can tie my own javascript when some one adds a new line.  Thanks for the reply.

2 Answers, 1 is accepted

Sort by
0
Charley
Top achievements
Rank 1
answered on 17 Aug 2011, 08:20 PM
Found the answer:

If you add .ClientEvents(events => events .OnEdit("somefunction") binding your pass a variable to the method like this somefunction(result).  In the function you can check if(reuslt.mode == 'insert'){} if(result.mode = 'edit'){}

Hope this help other people.

Regards
0
Jatin
Top achievements
Rank 1
answered on 18 Aug 2011, 01:41 AM
Charley, indeed your solution has helped me. Thanks for sharing your solution. I was looking for a solution in which I could focus on second column in newly inserted row as discussed here: http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-batch-editing---focus-in-second-column-on-inserting-new-row.aspx.

regards,
Nirvan.
Tags
Grid
Asked by
Charley
Top achievements
Rank 1
Answers by
Charley
Top achievements
Rank 1
Jatin
Top achievements
Rank 1
Share this question
or