i have text input
{
height: 35,
view:"toolbar", css:"fltr",
elements:[
{view:"text", id:"list_input", width:500, placeholder:"select model" , tooltip:"text", labelWidth:100}
]},
below start datatable
{
view:"datatable",
id:"st",
url: "server/datatable.php?fresh=1",
scroll:false,
height:800,
container:"st",
rowHeight:105,
resizeColumn:false,
select:"row",
columns:[
{ id:"model", template:"#model#", sort:"int", header:"model", width:50, css:{ "background":"#fafafa; " }},
]}
below i write
$$("list_input").attachEvent("onTimedKeyPress",function(){
var value = this.getValue().toLowerCase();
$$("st").filterByAll(function(obj){
return obj.model.toLowerCase().indexOf(value)==0;
})
});
this solution not work ! , how make what i conceived ? help please. Thanks