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

Custom command button with dynamic Id = ""

0 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 02 Nov 2012, 12:49 PM
How do i set a custom command button with dynamic id="2012-12-1 23:23"?
I was trying:
columns.Command(command => command.Custom("Avboka").Click("confirmBookingRemoval").HtmlAttributes(new { @Id =  Model.First().StartDate.ToString() }));

But the model is null when i tries to use it.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Stefan
Top achievements
Rank 2
Share this question
or