This is a migrated thread and some comments may be shown as answers.

MVC Grid command runs javascript function with parameters - is it possible?

0 Answers 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Romanos
Top achievements
Rank 1
Romanos asked on 02 Nov 2012, 09:41 PM
Hello!
First of all I'd like to congratulate you on your work.
One small suggestion is that it would be better if you expanded your documentation and examples, especially for mvc.

My question is stated in the title. I have a vs project and I use mvc. I also have some javascript functions that I'd like to fire whenever someone clicks on a button. I can make this happen but I don't know how to pass arguments.

The way I've implemented is by using htmlattributes on custom command and passing new {onclick = "MyFunction()"}.
This works but I need parameters as well. And I need a parameter from the same row's element.

Can you please help me?
Thank you very much in advance!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Romanos
Top achievements
Rank 1
Share this question
or