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

Manually perform server inserts

2 Answers 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Nov 2013, 07:04 AM
My RadScheduler is bound to a LinqDataProvider and automatically inserts, updateds and deleted appointments.  Is there a way to perform inserts manually via a server side event?  I have a custom field that I would like saved with each appointment which never needs editing.  Thanks.

2 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 19 Nov 2013, 04:57 PM
Hi Michael,

To add custom field, which does not need editing you may try to use InsertParameters:
<asp:LinqDataSource
  ContextTypeName="ExampleDataContext"
  TableName="Products"
  EnableUpdate="true"
  EnableInsert="true"
  EnableDelete="true"
  ID="LinqDataSource1"
  runat="server">
  <InsertParameters>
    <asp:Parameter Name="Category" DefaultValue="Miscellaneous" />
  </InsertParameters>
</asp:LinqDataSource>

or set the value programmatically in the LinqDataSource's inserting event. For more details, please take a look at this MSDN help article.

Regards,
Hristo Valyavicharski
Telerik
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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Michael
Top achievements
Rank 1
answered on 22 Nov 2013, 06:35 AM
That worked perfectly.  Thank you for your help!
Tags
Scheduler
Asked by
Michael
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Michael
Top achievements
Rank 1
Share this question
or