I have a web grid with Hierarchical data.
This data is represented as a list of cutomers that is expanded out to show each order each customer has made.
I have a grid click event which is the last cell in the expanded orders grid. When this sell is click it displays a pdf of the actual order in a seperate pop out window. The user is not allowed to edit, add or delete any of the columns. <~~ This all works fine and dandy...
Whenever a user clicks on one of the other cells the grid does a post back and closes the current location of what was expanded.
I want to stop the post back on the click event so that the page doesn't reload or refresh on each click closing the current location of where the user was at. Is this possible and how can this be accomplished?
EnableViewState controls how much information goes into viewstate. I could effect if the rows collapse but it could be overridden, likeif you are rebinding on the server.
What is the purpose of EnableViewState and how is it used properly?
I thought this feature would prevent the grid from collapsing on an event post back such as using the cell click event?
I should of also mentioned that the documents are created on the fly by the server doing a query to the database for the clicked information based on id. This limits the need of wasting disk space to store pdf documents.
Rather then using the server side click event, could you use either a link or use the client side event to open up the pdf in a second window?