This topic is locked
[SOLVED]

 Inline edit on load

1/23/2019 3:43:38 PM
ASPRunner.NET General questions
T
Tim author

Hello,
On load of a list page I'd like to automatically open the first record in the list for inline edit. Looking at the manual, I assume I'd use:

pageObj.inlineEdit.editRecById(recsId[X]);


But I can't get it to work, and I'm not sure what [X] should be. I was assuming [1].
Thanks for any help.

Tim

admin 1/26/2019

Make sure you copy and paste the complete code example from the manual. I can confirm that the following does open the first record for inline editing:

var recsId = pageObj.inlineEdit.getRecsId();

pageObj.inlineEdit.editRecById(recsId[1]);


More info:

https://xlinesoft.com/asprunnernet/docs/how_to_control_inline_add_edit_functionality_from_script.htm

T
Tim author 1/29/2019

Yes, I did not have the first line. I wasn't understanding what that was doing, but I see it now.
Thanks for your help. This works great.

Tim