Hi there.
Could someone please give me a pointer as to how to display the column filters only if the number of rows INITIALLY returned by a grid is greater than x?
I say "initially" for a reason. Let's say x above is 20. If the grid initially returns 30 rows the filters will appear. But if I filter the grid so that only 5 rows come back based on my filter expression then the grid needs to know this is 5 out of 30 rows so it still needs to show the filters. I.e. It's the 30 that is important here, not the 5.
I'm assuming I will use the onDataBound event. But I dont know how to get the number of rows returned. And I assume there is a "total" variable I can tap into that is the number of rows regardless of any filter applied?
Thanks in advance.
Chris
Could someone please give me a pointer as to how to display the column filters only if the number of rows INITIALLY returned by a grid is greater than x?
I say "initially" for a reason. Let's say x above is 20. If the grid initially returns 30 rows the filters will appear. But if I filter the grid so that only 5 rows come back based on my filter expression then the grid needs to know this is 5 out of 30 rows so it still needs to show the filters. I.e. It's the 30 that is important here, not the 5.
I'm assuming I will use the onDataBound event. But I dont know how to get the number of rows returned. And I assume there is a "total" variable I can tap into that is the number of rows regardless of any filter applied?
Thanks in advance.
Chris