This question is locked. New answers and comments are not allowed.
Hi, may i know how can i get the second textbox in the custom filter template?
below is the code i used, but couldnt find a way to replace the second textbox..
function onLoad() {
$("#grid th:contains(Status)")
.find(".t-grid-filter")
.click(function (e) {
var filterIcon = $(this);
var select = $("<select><option value=''>-- select --</option><option>Approved</option><option>Closed</option></select>");
setTimeout(function () {
var filterMenu = filterIcon.data("filter");
filterMenu.find(":text").first().replaceWith(select); // replace the first textbox with the new filter UI
});
});
}
below is the code i used, but couldnt find a way to replace the second textbox..
function onLoad() {
$("#grid th:contains(Status)")
.find(".t-grid-filter")
.click(function (e) {
var filterIcon = $(this);
var select = $("<select><option value=''>-- select --</option><option>Approved</option><option>Closed</option></select>");
setTimeout(function () {
var filterMenu = filterIcon.data("filter");
filterMenu.find(":text").first().replaceWith(select); // replace the first textbox with the new filter UI
});
});
}