You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with EditEmployee form, postback often causes switch to another tabs - this leads to losing user's focus on the current work and may lead to major data-entering errors.
The text was updated successfully, but these errors were encountered:
The issue is caused by dnnTabs jQuery plugin behavior - it stores currently selected tab in the cookie by 2 minutes by default, and (just my thinking) not updates it every time when tab is switched by user. This may be fine with AJAX-based queries, as then dnnTabs() is calling just once - but not with standard ASP.NET postbacks, as we need to call dnnTabs() function every single page load.
The idea behind the fix: use ViewState to store selected tab number and pass it to dnnTabs () function every page load. Default value is 0 (no ViewState ~ first load), so first tab is selected by default. Then, for each postback event handler, we update ViewState to the number of tab, on which control (postback) is located.
Solution is not very elegant, but working. Also need check how it will work along with form validation, as dnnTabs () should automatically switch to the tab where invalidated messages appears.
When working with EditEmployee form, postback often causes switch to another tabs - this leads to losing user's focus on the current work and may lead to major data-entering errors.
The text was updated successfully, but these errors were encountered: