Hello,
I am trying to display a product list to radgrid and it seems fine except one thing.
When i load the page i bind the whole list of the products. Then i have a field search and when you do search i want to bind only the products that match keywords .. means different data. And it works initially. But if i click another page e.g. page #2 it load the whole list again.
<on load event handler>
If Not Page.IsPostBack Then
RadGrid1.DataSource = WholeList
.....
<on button click even handler>
RadGrid1.DataSource = SearchResult
Means how do i manage the situation with remaining the new data even if i click another page (paging)?
Thanks
P.S. maybe i need to have a flag or something ?
I am trying to display a product list to radgrid and it seems fine except one thing.
When i load the page i bind the whole list of the products. Then i have a field search and when you do search i want to bind only the products that match keywords .. means different data. And it works initially. But if i click another page e.g. page #2 it load the whole list again.
<on load event handler>
If Not Page.IsPostBack Then
RadGrid1.DataSource = WholeList
.....
<on button click even handler>
RadGrid1.DataSource = SearchResult
Means how do i manage the situation with remaining the new data even if i click another page (paging)?
Thanks
P.S. maybe i need to have a flag or something ?