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

how to get the rowindex in text_changed event

1 Answer 185 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 21 Feb 2011, 06:13 AM
hi

i have used this line to get the row index in the textchanged event but i didnt get any value and this is the line

int i = ((GridDataItem)(((RadNumericTextBox)sender).NamingContainer)).ItemIndex;
how to get the row index in text changed event

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 24 Feb 2011, 09:17 AM
Hello abinav,

Indeed, this is the proper approach for achieving your goal. However, can you specify if any error is thrown on this line and let me know where in the grid is the RadNumericTextBox placed - in ItemTemplate of a GridTemplateColumn, or in its EditItemTemplate or in a FormTemplate for instance?

Regards,
Iana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
abinav
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or