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

Set Data field default values for Item Insert / Edit

2 Answers 152 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Paul J
Top achievements
Rank 1
Paul J asked on 03 Jun 2011, 09:39 PM
I've got a ListView bound to a Linq data source. I've got both edit and insert templates. I only allow the user to edit two of the fields. the rest of the fields (i.e. update by user id, udpated datetime, created date time, etc.) I want the system to set. On what event of the ListView can I set the additional fields before the item is updated / inserted into the database? And coulde you show me an example?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Paul J
Top achievements
Rank 1
answered on 08 Jun 2011, 02:50 PM
Since this has gone unanswered for over 5 days, I'm opening a support request.
0
Iana Tsolova
Telerik team
answered on 09 Jun 2011, 01:09 PM
Hello Paul,

You can use the ShowInsertItem() method of the RadListView to achieve your goal. As a parameter you can pass it an IDictionary containing the predefined insert values.

Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

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