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

Problems with focus.

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 27 May 2015, 04:49 PM
Hello,

I'm having the following problem when I add a "RadGrid" and set the propiedade "EditMode =" Batch "" control "RadNumericTextBox" has strange behavior in their focus,
sometimes identifies the control received the focus and then apply the "SelectAll" content, but sometimes the control receives the focus and position the cursor at the end of the content, and  also not  recognize that there was a change in the content and does not call the "OnTextChanged" event. This only happens when I set the property "EditMode =" Batch "" the "RadGrid"

Thanks in advance for your help.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 01 Jun 2015, 07:27 AM
Hi Dev,

I try to replicate the issue on my side but to no avail. Could you please let me know which version of our controls you are using and also which browser you are using? Additionally you can try to manually focus the NumericTextBox by hooking OnBatchEditOpened client event and then when access the control to call focus method. Please check out the following code snippet.
<script type="text/javascript">
    function OnBatchEditOpened(sender, args) {
        var numericTextBox = $telerik.findControl(args.get_cell(), "RNTB_" + args.get_columnUniqueName());
        numericTextBox.focus();
    }
</script>


Regards,
Kostadin
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Dev
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or