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

Custom Command Button

2 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 12 Nov 2010, 05:57 PM
Is there a way to customise the custom command button at row level?

For example you can customise what the command button does at grid header level. I would like on occasion to configure my grid so that "Edit" goes to my own page that does more enhanced editing. I know I can do a custom template, but I would like to have my solution to work as similar as customising buttons in the header. I also want to display the same style buttons as if Telerik was managing the update/edit.

2 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 25 Jan 2011, 04:05 PM
Anyone?
0
Sam Stange
Top achievements
Rank 1
answered on 26 Jan 2011, 09:09 PM
This worked for me:

columns.Template(@<text><a href="PreviewEmail/@item.EmailID" class="Preview">View Email</a></text>).Width(50).Title("View Email");

I'm extending it by adding a jquery dialog, but you could simply go to the view you want.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Sam Stange
Top achievements
Rank 1
Share this question
or