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

Could I separate "EditTemplate" from "CreateTemplate" ?

0 Answers 28 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.
Wahid
Top achievements
Rank 2
Wahid asked on 17 Sep 2011, 02:12 PM
Hi,

I've a grid with Editable support and Insert command.

But I wanna use different "Template" for Editing not the same one of the Insert or create action.

How to do that ?

<% Html.Telerik()
    .Grid<eFajr.Web.ViewModels.EpisodeList>()
    .Name("EpisodesGrid")
    .EnableCustomBinding(true)
    .ToolBar(t => t.Insert().ButtonType(GridButtonType.ImageAndText))
    .Editable(editing => editing.Mode(GridEditMode.PopUp).Window(w => w.Resizable()))    
    .DataKeys(key => key.Add(m => m.ID))
    .DataBinding(dataBinding => dataBinding
                                    .Ajax()
                                    .Insert("Create", "Episodes")
                                    .Select("ReGetIndex", "Episodes")
                                    .Delete("Delete", "Episodes")
                                    .Update("Edit", "Episodes"))
....................... %>
Tags
Grid
Asked by
Wahid
Top achievements
Rank 2
Share this question
or