I am using the following code in aspx.cs and aspx page to turn off/on the filetring of radgrid, but its working in reverse. When I click on FilterOn button, filters hide and when I click on FilterOff button, filters show up..it should not work like that
We use Initial Filter if you want to set the initial filter for a RadGrid control so that when the Web page is first loaded, it presents an already-filtered set of data. But in your code its NoFilter which is by default, when the page load there is no filter, hence you don't have to write this code in in PreRender. In case if you need it, below is the modified code.