Hi All,
Is there a way to enable user to input MultiLine in a text field?
I tried TextBoxProvider and TextEditorProvider both seems not working.
When the user press "Enter" key, the field just exit edit mode but not go to the next line within the textbox.
Thanks!
David
Hi,
Can you explain with the example for this scenerio.
I want to accept only 4 characters in TextBoxProvider with multiline property.
Thanks in Advance.
Praveena,
What is the value of editor when you get the exception if you look at the value in the watch window?
My expectation is that editor is an html textarea element and you should be able to wire up the keypress instead of the key down if you wish.
I have attached the error image and the code also along with this forum. Kindly check and correct the changes. Whether there is a event like onkeypress in the TextBoxProvider?
Using the Visual Studio debugger or the debugger built into IE8, please find exactly what line the script is failing on and what is null and let me know what you find.
Let me know if you have any questions with this matter.
It is giving the error in the javascript itself in the below code .
editor.onkeydown = function (e) {
if (e == null)
e = event;
// don't cancel the event if the backspace or delete key was pressed.
if (e.keyCode == 8 || e.keyCode == 46)
return true;
// cancel the event if the length of the editor is 4 or more.
if (editor.value.length >= 4)
return false;