ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Initialize Edit mode for all rows upon grid load
Title:
B
I
{code}
?
Is there any way to start all rows in edit mode upon the Grid loading? Currently I have inline editing upon "Edit" button click, but we would like to explore editing being initialized for all rows upon page load.
Save Changes
Cancel
eliawesome
asked at 11 Oct 2018
Answers
B
I
{code}
?
depends what type of editors you need, if it's only text you could use this: https://demo.aspnetawesome.com/GridSpreadsheetDemo https://demo.aspnetawesome.com/GridSpreadsheetDemo/Autocomplete or show the editors on click like here: https://demo.aspnetawesome.com/GridInlineEditDemo#Edit-on-row-click for the Grid InlineEditing demo you can use this to call inlineEdit on all the rows $(function() { var g = $('#DinnersInlineCrudGrid'); $('#DinnersInlineCrudGrid').on('awerender', function (e) { if ($(e.target).is(g)) { var api = g.data('api'); // calling reverse so that the last focused row will be the 1st $(g.find('.awe-row').get().reverse()) .each(function (i, row) { api.inlineEdit($(row)); }); } }); });
Save Changes
Cancel
Omu
answered at 12 Oct 2018
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