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

[Solved] Accessing a custom GridEditMode.PopUp template...

2 Answers 138 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.
Jason
Top achievements
Rank 1
Jason asked on 21 Apr 2011, 08:00 AM
I've scoured the doco but I can't see anything relating to using custom templates in GridEditMode.PopUp mode.
There's a TemplateName property available but how is this used?  Is it a Jquery template? The command isn't even in the help files :/

Are there any examples or pointers to documentation on this feature?

Cheers,
 Jason

2 Answers, 1 is accepted

Sort by
0
Erkan
Top achievements
Rank 1
answered on 11 May 2011, 01:45 AM
@(
Html.Telerik().Grid(Model)
    ...
    .Editable(editing => editing.Mode(GridEditMode.PopUp).TemplateName("TemplateName"))
    .Scrollable(scrolling => scrolling.Enabled(true))
    .Pageable(paging => paging.Enabled(true))
    ...
    .Render()
)


/// TemplateName.cshtml should be in EditorTemplates folder. Otherwise it doesn't work for me.
/// I wish i could move that file into another folder in my view directory.
0
Jozef
Top achievements
Rank 1
answered on 05 Sep 2011, 12:50 PM
You can save it also to Shared folder. I find it quite logical and I can see no good reason for moving it somewhere else.

I would be also very thankful for more documentation on this. For example how to customize action buttons (I found only CSS "overriding"), how exactly binding process works (I found it working only for <input> elements).
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Erkan
Top achievements
Rank 1
Jozef
Top achievements
Rank 1
Share this question
or