Can you pass an ID via Update?

3 posts, 0 answers
  1. Allan
    Allan avatar
    34 posts
    Member since:
    Aug 2015

    Posted 07 Apr Link to this post

    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. Allan
    Allan avatar
    34 posts
    Member since:
    Aug 2015

    Posted 07 Apr in reply to Allan Link to this post

    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 ) }))

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 08 Apr Link to this post

    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
Back to Top