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

[Solved] Initiating values On Insert

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reid
Top achievements
Rank 2
Reid asked on 26 Jan 2012, 02:02 PM
Hello all,

Is there a way to initiate the fields or column values in a new row when using client side AJAX?  I am using the Client Side AJAX Editing example.  I would like to set the values to a default.

Thanks,

Reid

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 26 Jan 2012, 02:25 PM
Hello Reid,

Basically you can set the DefaultDataItem like shown below:
.Editable(config => config.DefaultDataItem(new Person { Name="someName",Age=18}))


Greetings,
Petur Subev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Reid
Top achievements
Rank 2
answered on 26 Jan 2012, 05:05 PM
Daniel,

Thanks for replying.  Works perfectly!

Reid
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Reid
Top achievements
Rank 2
Share this question
or