This a very helpful example. However, it uses two buttons to accomplish the action. First loading the partial view into the dialog. Then a button to display the dialog.
Can this be done with a single button click? I tried using a callback but this didn't seem to work.
I'm a bit new to JavaScript so some additional help here would be appreciated
Regards,
Chris