After some trial and error I found the solution for the problem. I modified the below code combobox.pre.js file in source code and used the custom build dll in my application . Hope it may be use full to others.
_getTextSelectionInfo:
function
(textBox, e) {
//
returns a helper object with information about textbox selection
var
info = new
Object();
//
strategy
info.strategy =
this._getTextSelectionStrategy();
//
selectionStart & selectionEnd
if
(info.strategy == Sys.Extended.UI.ComboBoxTextSelectionStrategy.Microsoft) {
info.selectionStart = 0;
info.selectionEnd = textBox.value.length;
var
userRange;
if
(window.getSelection) { //
all browsers, except IE before version 9
//Modified
code start for IE 11
info.selectionStart = textBox.selectionStart;
info.selectionEnd = textBox.selectionEnd;
//Modified
code end for IE 11
}
else
{
userRange = document.selection.createRange();
while
(userRange.moveStart('character',
-1) != 0) {
None
0 Points
4 Posts
Re: Ajax combo box issue in ie 11
Dec 23, 2013 01:00 AM|k3627|LINK
After some trial and error I found the solution for the problem. I modified the below code combobox.pre.js file in source code and used the custom build dll in my application . Hope it may be use full to others.
_getTextSelectionInfo:
function (textBox, e) {
// returns a helper object with information about textbox selection
var info = new Object();
// strategy
info.strategy =
this._getTextSelectionStrategy();
// selectionStart & selectionEnd
if (info.strategy == Sys.Extended.UI.ComboBoxTextSelectionStrategy.Microsoft) {
info.selectionStart = 0;
info.selectionEnd = textBox.value.length;
var userRange;
if (window.getSelection) { // all browsers, except IE before version 9
//Modified code start for IE 11
info.selectionStart = textBox.selectionStart;
info.selectionEnd = textBox.selectionEnd;
//Modified code end for IE 11
}
else {
userRange = document.selection.createRange();
while (userRange.moveStart('character', -1) != 0) {
info.selectionStart++;
}
while (userRange.moveEnd('character', 1) != 0) {
info.selectionEnd--;
}
}
}
else if (info.strategy == Sys.Extended.UI.ComboBoxTextSelectionStrategy.W3C) {
info.selectionStart = textBox.selectionStart;
info.selectionEnd = textBox.selectionEnd;
}
// typedCharacter, textBoxValue, selectionPrefix, selectionSuffix, selectionTextFirst
info.typedCharacter = String.fromCharCode(e.charCode);
info.textBoxValue = textBox.value;
info.selectionPrefix = (info.textBoxValue.length >= info.selectionStart)
? info.textBoxValue.substring(0, info.selectionStart) :'';
info.selectionText = (info.textBoxValue.length >= info.selectionEnd)
? info.textBoxValue.substring(info.selectionStart, info.selectionEnd) : '';
info.selectionSuffix = (info.textBoxValue.length >= info.selectionEnd)
? info.textBoxValue.substring(info.selectionEnd, info.textBoxValue.length) :'';
info.selectionTextFirst = info.selectionText.substring(0, 1);return info;
},