This is a migrated thread and some comments may be shown as answers.
How to select the new item
3 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 11 Oct 2011, 04:45 PM
Dear TelerikTeam,

I am using RadGrid.There are list of rows displaying in it, but I would like to select (or) highlight the newly inserted row. So that the new user can easily identify the row which is inserted.

Note: I am also using paging for your reference.

-Thanks

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Oct 2011, 07:07 PM
hello,

the best way is : You can save any primary key of your newly inserted data and store in viewstate/session.
and on itemdatabound event check if any row contains primary key , which was in stored in viewstate/session then change its or do it vice versa.

let me know if any concern.

Thanks,
Jayesh Goyani
0
Shinu
Top achievements
Rank 1
answered on 12 Oct 2011, 05:36 AM
Hello John,

Also take a look into the following code library which demonstrates how to access the lastly inserted row.
Select Last Inserted Row.

Thanks,
Shinu.
0
John John
Top achievements
Rank 1
answered on 13 Oct 2011, 09:40 AM
Dear Jayesh Goyani,

Thanks for your response.
The thing is though I could select the desired row after inserting new item, it is working only in case of the grid which is not having paging feature.Am I correct?

If the grid has paging mode then how could we point the newly inserted item.?

The below Shinu's link also helpful that tells how to select the inserted row, but there too haven't given any solution to select the row if the grid has paging mode. Still it is unanswered for the respective solution.

Please point out my requirement and give me a solution to resolve the issue. 

-Thanks
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Shinu
Top achievements
Rank 1
John John
Top achievements
Rank 1
Share this question
or