ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Getting save and cancel button in same column in inline editing grid
Title:
B
I
{code}
?
Hi I am having an inline editing awesome grid in which I want to have SAVE and CANCEL button in same column, in awesome demo there are two columns like :- @(Html.Awe().Grid("DinnersGrid") .Mod(o => o.PageInfo().InlineEdit(Url.Action("Create"), Url.Action("Edit"))) .Url(Url.Action("GridGetItems")) .Parent("txtSearch", "search") .Height(350) .Resizable(true) .Columns( new Column { Bind = "Id", Width = 75 }.Mod(o => o.InlineId()), new Column { Bind = "Name" }.Mod(o => o.Inline(Html.Awe().TextBox("Name"))), new Column { Bind = "Date", Width = 170 }.Mod(o => o.Inline(Html.Awe().DatePicker("Date"))), new Column{ Bind = "Organic", Width = 100}.Mod(o => o.InlineBool(cssClass:"btoggle")), new Column { ClientFormat = GridUtils.InlineEditFormat(), Width = 60 }, new Column { ClientFormat = GridUtils.InlineDeleteFormat("deleteDinnersGrid"), Width = 70 })) I want to remove the last delete column, and when the user clicks on edit column, he should be getting save and cancel button in same edit column, right now only SAVE button is coming. Please suggest some help
Save Changes
Cancel
Tanuj Shrivastava
asked at 16 Jun 2016
have a look inside the InlineDeleteFormat method, note the html for the cancel button, put it inside the InlineEditFormat method
at 16 Jun 2016
Omu
Thanks a lot its working, but I am facing a problem, that I want to pass an additional ID to model other than binded columns, in httpPost of 'EDIT' button
at 16 Jun 2016
Tanuj Shrivastava
it doesn't has to be in the binded columns, it has to be in the grid model (Map) and you can put it in the ClientFormat using .PropertyName
at 16 Jun 2016
Omu
I didn't understood this one, is there any example for this in demo...
at 17 Jun 2016
Tanuj Shrivastava
if you look in the GridUtils.InlineEditFormat method you'll find id: .Id you need to add id2: .GridProp
at 17 Jun 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK