Ticket B210375
Visible to All Users

Restoring the focus after a change in the current editor and a subsequent callback initiated by the ImmediatePostDataAttribute

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

Starting with version 15.2.8, the previous custom-tailored solution is no longer required, as this code has been moved to the standard delivery.
You can test this improvement right away after installing the following hot fix build: http://downloads.devexpress.com/Share/DXP/160330/DevExpressComponents-15.2.7.16090.exe
I am looking forward to hearing from you once you have had an opportunity to test the latest build with your real web projects.

Thanks,
Dennis

    created 13 years ago (modified 9 years ago)

    Attached is a sample project that contains a better solution (refer to the B210375_Workaround.cs and Default.aspx files for more details) on how to restore focus after a callback operation.
    For instance, in the attached sample project you can modify the Hours and Rate properties and then press the Tab key or move the mouse out of the editor and see that the previously focused editor will be focused after the callback.
    Refer to the How to highlight the focused editor in DetailView example to learn more on how to attach a custom client side functionality to controls of an XAF View.
    Take special note that this is a temporary solution for the scenario given in the attached example, and we have not tested it under all scenarios supported by XAF.
    Creating a permanent solution is a rather complex task, requiring additional R&D, which we hope to implement in the future (we cannot provide any ETA at this stage, because this functionality is not yet planned for any specific release).
    That said, we may not be able to fix issues with this temporary solution in a reasonable time frame, so please use it at your own risk, and feel free to modify and test it further to better meet your business requirements.

      Comments (1)
      Dennis Garavsky (DevExpress) 12 years ago

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.