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

Make Changes to Records Programmatically

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luciano Vernaschi
Top achievements
Rank 1
Luciano Vernaschi asked on 05 Oct 2011, 01:58 PM
Hi,

I have a RadGrid that must support insertion of new records, but there are some required values that must not be inserted by the user. I need to be able to compute the correct values for them before the record is inserted using the LinqDataSource.

What's the correct way to amend the object that is going to be inserted? Since some of those values are not nullable, not giving them a value makes it impossible to insert the record anyway.

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 10 Oct 2011, 06:47 AM
Hello Luciano,

In order to implement the desired functionality, I suggest that you insert the values manually after computing the desired fields.
You can review the following topics for additional information:
Inserting Values Using InPlace and EditForms Modes
Inserting Values Using UserControl/FormTemplate

I hope this helps.

Regards,
Mira
the Telerik team
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 their blog feed now
Tags
Grid
Asked by
Luciano Vernaschi
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or