i m using Mvc Contrib grid to represent the data, now i want to whenever i click the edit column of the row the Edit view open in a jquery modal,
How can i open a View in Modal?
Thanks,
Saad Tahir
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should just use the link with Fancybox, or whichever modal plug-in you prefer. With fancybox, your column would look something like this:
And you should initialize, for instance, Fancybox, with a JavaScript block like this:
This would open ~/EditController/EditAction through ajax in a modal. Just remember that EditAction should return a partial view, since it is going to be loaded with ajax.