Jun 16, 2011, 11:35 AM
change store data and gridpanel refresh
Hello
Lets say i have method to select data from database - method is called selectsql(filter) where filter is my own filter using LIKE statement. method is returning datatable.
And when the page loads everything is ok im using this code
Somethin is with refresh store or gridpanel - i try with CLEARMETA and REMOVEALL store methods and nothing changes.
Lets say i have method to select data from database - method is called selectsql(filter) where filter is my own filter using LIKE statement. method is returning datatable.
And when the page loads everything is ok im using this code
store1.datasource = selectsql("");
store1.databind();
and i have a textbox where i can write filter(this is simply company name) and button SEARCH. the code for directclick is:strore1.datasource = selectsql(textbox.text);
store1.databind();
and this is not working - why - when i write in page loads:store1.datasource = selectsql("WOL");
store1.databind();
this returns me what i want - all companies starting by WOL.Somethin is with refresh store or gridpanel - i try with CLEARMETA and REMOVEALL store methods and nothing changes.
Last edited by Daniil; Jun 16, 2011 at 7:02 PM.
Reason: Please use [CODE] tags