Hi,
My grid is up and running and I can move columns and such. However, if I click to sort a column or tries a groupBy, it comes back empty.
My grid resides in a user control. When a particular public property is set, the connected DataSource gets it's select and delete statements defined.
What do I need to do to make groupby and columnfilters to work?
well it didn't help since I am using a declarative SQL-datasource and the InitializeDataSource event isn't being called.
However, I turned off Ajax which solved it. I am using an HTTPHandler to do URLrewrites but the WebGrids Ajax calls still tries to use the initial (unrewritten) url, making the call fail.
This left me using UpdatePanels instead. However, that does not seem to work at all. I have wrapped my WebGrid with a MS UpdatePanel set to conditional updateMode, but paging and groupBys still refresh the whole page. What's that all about?
Hello,
This typically happens when the grid is not rebinded after postback, when there is operation that needs datasource, like filtering, sorting, paging, grouping.
There are two ways to do that, one way is to use the InitializeDataSource event which gets automatically called whenever the grid needs data. The other one is to explicitly rebind the grid in the event handler after the operation is completed.