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

Can you pass an ID via Update?

2 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 07 Apr 2016, 07:55 AM

Hey,

I would like to pass an ID to my controller when the update event is fired on my grid.  Has anyone done this before?

.Update(update => update.Action("data_update", "Home"))

2 Answers, 1 is accepted

Sort by
0
Allan
Top achievements
Rank 1
answered on 07 Apr 2016, 08:03 AM

I attempted to do it this way but it didn't work.

.Update(update => update.Action("vessels_Update", "Home", new { id = Model(p => p.vessel_idx ) }))

0
Viktor Tachev
Telerik team
answered on 08 Apr 2016, 10:05 AM
Hi Allan,

The following article describes how you can send additional information to an ActionMethod. The example shows the Read action, however, the approach is valid also for Update/Create/Destroy Actions.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Allan
Top achievements
Rank 1
Answers by
Allan
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or