<script type="text/javascript">
document.addEventListener("paste", function (e) { doPaste(e); });
function doPaste(e) {
$("#TreeGridContainerTaskName").val("test");
$("#TreeGridContainerStartDate").ejDatePicker('model.value', "03/09/2014");
$("#TreeGridContainerColumn201708").ejNumericTextbox('model.value', 10);
$("#TreeGridContainerColumn201709").ejNumericTextbox('model.value', 20);
e.preventDefault();
}
</script> |
Thanks for the help, it works great!
Matthew
Hi, actually I do have one more question,
Once I set the value of the ejNumericTextbox like this:
$("#TreeGridContainerColumn201709").ejNumericTextbox('model.value', 20);
How do I then set focus to it? I would expect something like this:
$("#TreeGridContainerColumn201709").focus();
But that doesn't work :) Any ideas?
var numericObj = $("#TreeGridContainerNumeric").ejNumericTextbox("instance");
numericObj.option("model.value", 20);
numericObj._hiddenInput.focus();
|
Thanks again, it works well.