How to move to beginning of list after setting edit on all records |
5/20/2020 6:00:46 PM |
PHPRunner General questions | |
B
bobalston author
In an earlier post I found Javascript code to add to the Onload event that forces all rows into inline edit status. |
|
![]() |
Sergey Kornilov admin 5/20/2020 |
You can try something like this in Javascript OnLoad event. "CustomerID" is here is the name of the first edit field. $("input[id^=value_CustomerID]").first().focus(); |
B
|
bobalston author 5/21/2020 |
You can try something like this in Javascript OnLoad event. "CustomerID" is here is the name of the first edit field. $("input[id^=value_CustomerID]").first().focus();
|
![]() |
Sergey Kornilov admin 5/21/2020 |
It worked in my test but maybe your configuration is different or maybe this code fires too soon. Inline Edit takes a bit of time to load, especially if you have more than a few records on the page. setTimeout(function(){ $("input[id^=value_CustomerID]").first().focus(); }, 5000);
|
B
|
bobalston author 5/21/2020 |
It worked in my test but maybe your configuration is different or maybe this code fires too soon. Inline Edit takes a bit of time to load, especially if you have more than a few records on the page. You can try something like this. The problem is that if loading all records in edit mode takes more than 5 seconds it will not help. setTimeout(function(){ $("input[id^=value_CustomerID]").first().focus(); }, 5000);
|
![]() |
Sergey Kornilov admin 5/22/2020 |
It must be a text field. You cannot focus on a checkbox. |
B
|
bobalston author 5/22/2020 |
It must be a text field. You cannot focus on a checkbox.
|
B
|
bobalston author 5/23/2020 |
Could I use code to "move up" in the list in a loop and stop when it errors out? |