[Solved] Make the Telerik Grid Client DetailTemplate Editable

1 Answer 29 Views
General Discussions Grid
Charlston
Top achievements
Rank 1
Iron
Iron
Charlston asked on 12 May 2026, 12:02 PM

I currently have a Grid that I want the ClientDetailTemplateId to be the editable area for fields that are currently not displayed on the grid. Then have an update button that uses the Datasource function of Update to update that row's values. 

 


@( Html.Kendo().Grid(Model.Members)
                .Name("membersGrid")
                .Columns(columns =>
                {
                              
                        
                    })
                    .AutoBind(true)
                    .HtmlAttributes(new { @class = "table table-hover align-middle faux-k-table" , style =" width: 100%"})
                    .Pageable()
                    .Sortable(false)
                       .ClientDetailTemplateId("DetailGridTemplate")          
                    .DataSource(dataSource => dataSource
                        .Ajax()
                        .PageSize(50)
                                .Events(e =>  e.RequestStart("onRequestStart")
                                             .RequestEnd("onRequestEnd")
                                              )
                        .Read(read => read.Action("GetGroupMembers", "Members").Data("additionalData"))
                    ).NoRecords(n => n.Template(@"<div class=""alert alert-warning"">
                        No data found with selected filter values or there are no eligible members from your MEC to view.
                    </div>"))
                        )


script id="DetailGridTemplate" type="text/kendo-tmpl">

                     
</script>

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 15 May 2026, 06:43 AM

Hi Charlston,

Thank you for the code snippet and teh details provided.

In order to edit fields from the same Model, but not represented in the Grid, I would recommend using a PopUp Edit Mode instead of a ClientDetailTemplate.

Here is a demo of a Grid with PopUp Edit Mode:

The documentation for the PopUp Edit Mode:

By default, in the PopUp edit modal window, all the fields of the Model will be available(even the ones not represented as columns in the Grid). If you decide to show only part of the fields, I would recommend using a Template for the PopUp edit modal:

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Charlston
Top achievements
Rank 1
Iron
Iron
commented on 15 May 2026, 04:29 PM

Does the data refresh after you save or do you have to do a refresh on the grid after save happens?
Anton Mironov
Telerik team
commented on 18 May 2026, 05:52 AM

Hi Charlston,

Yes, you are totally correct - the data will refresh automatically when save.

 

Best Regards,
Anton Mironov

Tags
General Discussions Grid
Asked by
Charlston
Top achievements
Rank 1
Iron
Iron
Answers by
Anton Mironov
Telerik team
Share this question
or