I used to have a page with a JQuery Autocomplete. It used 2 textboxes, one for the text search, and one for the returned value.
It was setup like this
//AutoComplete functions
$(document).ready(function () {
$(function () {
initializer();
});
var prmInstance = Sys.WebForms.PageRequestManager.getInstance();
prmInstance.add_endRequest(function () {
initializer();
});
jQuery(function ($) {
$('#<%=txtPBId.ClientID%>').change(function (e) {
var val = $(this).val();
if (val == '')
$('#<%=hdnPBId.ClientID%>').val("");
});
});
// Setup AutoComplete
function initializer() {
$('#<%=txtPBId.ClientID%>').autocomplete({
cacheLength: 1,
source: function (request, response) {
$.ajax({
url: "../WS/AutoComplete.aspx",
dataType: "json",
data: {
term: request.term,
ref: 1,
random: new Date().getTime()
},
success: function (data) {
response(data);
$('#<%=hdnPBId.ClientID%>').val("");
},
error: function (model, error) {
$('#<%=hdnPBId.ClientID%>').val("");
//alert("No code found.");
}
});
},
select: function (event, ui) {
$('#<%=hdnPBId.ClientID%>').val(ui.item.idval);
}
});
}
});
I now want to use a RadGrid with InPlace Editing. Is there any way of tying a GridAutoCompleteColumn to the above?
I can't use Datasources/Tablenames etc.