This is a migrated thread and some comments may be shown as answers.

[Solved] Bug: IE batch editing doesn't focus form field on first click

3 Answers 135 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Renee
Top achievements
Rank 1
Renee asked on 26 Jul 2011, 03:47 PM
We've run into a problem with the batch editor functionality which we were able to reproduce on your website:  http://demos.telerik.com/aspnet-mvc/grid/editingbatch

In the attached PDF shows the walkthrough of how to reproduce it.  In the demo, using IE, I click on the word "Chai" to edit that field.  Unfortunately, the input field does not have focus, so if I hit backspace right now, the browser will instead go to the previous page, since backspace is the shortcut for "go to previous page".

This is an issue because when doing batch editing, a user’s first action is very likely to be "delete the existing stuff so I can write something else in".  Therefore, clicking on an input field and then hitting backspace is a common combination, and it is somewhat jarring to be redirected back to the previous page (when the user meant to delete the "i" in "Chai").

It only happens on Internet Explorer, and it only happens on the first click.  Subsequent editing correctly gives focus to the input element.  And Firefox always works, even on the first click.

p.s.  Is it better to post bugs like this to the forum or directly to your public issue tracker?

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 27 Jul 2011, 08:20 AM
Hello Renee,

I suspect that the issue that you are describing is only reproducible in IE8 and is caused by a erroneous browser behavior.

You can workaround it by handling OnEdit client event of the Grid and focus first input in the edited cell. For example:
<script type="text/javascript">
        function grid_onEdit(arg){
            $(arg.cell).find(':input:visible:first')
                  .trigger("focusin")
                  .focus();
        }
</script>


Regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Renee
Top achievements
Rank 1
answered on 31 Jul 2011, 04:25 AM
This happens consistently in IE6, IE7, and IE8.  I was not able to test in IE9, but I imagine it's possible (if not probably) that it happens over there as well.  With Telerik identifying a fix, what's the likelihood that this simply gets put in the next upgrade?  It gets frustrating to have to remember hacks to make functionality work as expected.

Is it better to post bugs like this to the forum or directly to your public issue tracker?
0
Nikolay Rusev
Telerik team
answered on 01 Aug 2011, 09:17 AM
Hello Renee,

Unfortunately same browser behavior exists in IE versions 6, 7, 8.  We will further consider porting the code into our library.

You can post any questions in the forums or as a formal support ticket.

All the best,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Tags
Editor
Asked by
Renee
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Renee
Top achievements
Rank 1
Share this question
or