I wanted to get your opinion on best practices for getting user input while doing something in a controller. I am inside a Action method in my controller and I am processing some data. The data may force me to ask the user for further input, based on that input I will then do something with that data.
What is the best practice to go about this?
1) How do I issue an alert or confirm box to get user input from the Controller? This Action is initiated by an update button on a Telerik MVC grid.
2) How do I persist my data from initially processing it, to asking the user for input, and then continue processing the data? It's a fair amount of data.
Am I on the right track here? If so, my problem would be with the Telerik MVC grid. I would need the update event of my grid to be bound client side.
So I can do this by cancelling the OnSave server-side controller action by using "e.preventDefault();" in the OnSave client event. So now I can do all the updating on client-side the with ajax calls, etc. HOWEVER: When I am done, how to I change the edited row back to it's display state, preserving any changes that were made?