Below is the definition for my datasource object. In the change event, I am setting focus based on whether or not the datasource contains any items. Focusing on the dropdownlist ("custom1combo") is working, however the part where focus is set on "portraitNotes", which is a text area, is not working.
This is the line in question:
$("#portraitNotes").focus();
The weird thing is it works fine in other areas of my site, just not here.
This is the line in question:
$("#portraitNotes").focus();
The weird thing is it works fine in other areas of my site, just not here.
custom1DataSource = new kendo.data.DataSource({ serverFiltering: true, transport: { read: { url: "wsRest.svc/custom1/", data: { user: function () { return userField.value; }, client: function () { return $("#clientCombo").val(); }, matter: function () { return $("#matterCombo").val(); } } } }, change: function () { //when data is updated, if there is more than 1 item we need to enable the menu var custom1 = $("#custom1Combo").data("kendoDropDownList"); custom1.enable(false); if (custom1DataSource.data().length > 1) { custom1.enable(true); $("#custom1Combo").focus(); } else { $("#portraitNotes").focus(); } }});