ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Movable Rows with Click to Edit grid inline editing
Title:
B
I
{code}
?
When using the InLineEdit mod, is it possible to use the MovableRows (reorderable) mod as well as rowClickEdit: true? Can I drag/drop rows as well as click to edit? Ideally, a click on a row would put it in row edit mode while a "mousedown and drag" enters drag/drop mode.
Save Changes
Cancel
Stephen
asked at 01 Mar 2020
Answers
B
I
{code}
?
Yes, that's how it works, you can open our main demo solution (latest version), and in `Views/GridInlineEditDemo/Index.cshtml` modify the code for the second grid so it would be like this: @(Html.Awe().Grid(grid2Id) .Mod(o => o.PageInfo().InlineEdit(Url.Action("Create"), Url.Action("Edit"), rowClickEdit: true).MovableRows()) // added MovableRows() `Ctrl+F5` and try it
Save Changes
Cancel
Omu
answered at 01 Mar 2020
Thanks, that's great! I was almost there - I'd added a second .Mod instead of appending to the first :(
at 02 Mar 2020
Stephen
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