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

How to stay in the Insert Mode after performing insert?

1 Answer 93 Views
ListView
This is a migrated thread and some comments may be shown as answers.
LamKhoa
Top achievements
Rank 1
LamKhoa asked on 27 Aug 2011, 05:13 AM
Hi,

When I insert a new record in RadListView, I added some custom validation, however, no matter what I did, it's automatlcally kicked out of the Insert Mode and back to normal mode after I click "Insert" button.

In Edit Mode, I can do that (keep the RadListView in Edit Mode) by setting e.Canceled = true. However, it didn't happen to be same in Insert Mode.

Please let me know if it's possible to stay in Insert Mode after performing insert and how to do it.

Thanks

Lamk.

1 Answer, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 01 Sep 2011, 07:36 AM
Hello Lamkhoa,

Try calling the ShowInsertItems() method after the insert operation finished to reopen the insert form.
Find more information in the below article:
http://www.telerik.com/help/aspnet-ajax/listview-switch-insert-update-regular-modes.html

Regards,
Iana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ListView
Asked by
LamKhoa
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or