Hi I am using your resource planner.
If I add an input using typeahead on the basic html page containing the resource planner it works.
But when I try to add a custom input into the edit dialog, the input appears but the typeahead does not work.
What do I need to do?
Code is as follows for adding the custom field:
var EnquiryRefField = “<div>”;
EnquiryRefField += “<div class=’jqx-scheduler-edit-dialog-label’>” + enquiryref + “</div>”;
EnquiryRefField += “<div class=’jqx-scheduler-edit-dialog-field’><input name=\”EnquiryRef\” id=\”EnquiryRef\” style=\”display:inline;\” type=\”text\” value=\”\” data-provide=\”typeahead\” autocomplete=\”off\” data-url=\”/Job/Enquiry/GetReferenceList\”></div>”;
EnquiryRefField += “</div>”;
var i = 0;
$(‘#dialogscheduler’).children(‘div’).each(function () { // loop trough the div’s (only first level childs) elements in dialogscheduler
i += 1;
if (i == 1) { // places the field in the third position.
$(this).after(EnquiryRefField);
};
});
$(‘#EnquiryRef’).jqxInput({ width: ‘99%’, height: 25 });