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

[Solved] t-grid-new-row class

4 Answers 93 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.
Bob
Top achievements
Rank 1
Bob asked on 12 Jan 2012, 07:41 PM
Can someone tell me when the t-grid-new-row class is added and when it is removed?

BOb

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 13 Jan 2012, 09:14 AM
Hello Bob,

This CSS class is applied to rows in insert mode during AJAX / web service editing.

http://demos.telerik.com/aspnet-mvc/grid/editingajax

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Bob
Top achievements
Rank 1
answered on 13 Jan 2012, 05:18 PM
Thanks... so I assume that class is used to determined the mode passed to the onEdit event?

When is the class removed? On a submit changes? Or never at all?

BOb
0
Dimo
Telerik team
answered on 13 Jan 2012, 05:31 PM
Yes, it determines the mode in the edit event. The class is removed when the row is removed when the edit row is removed (cancel action) or saved (insert action).

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Bob
Top achievements
Rank 1
answered on 13 Jan 2012, 05:36 PM
Ah ok. I am trying to figure out a way to determine in the onEdit even if the event was fired due to an existing row being edited or a new row being added. I thought mode would do it, but mode is inserted when editing a newly added row in batch edit mode.

BOb
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Bob
Top achievements
Rank 1
Share this question
or