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

kendo-grid with ClientRowTemplate and CommandButtons

1 Answer 238 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Support
Top achievements
Rank 1
Iron
Support asked on 09 Mar 2021, 04:20 PM

Hi,

I have a grid, where the column is rendered via ClientRowTemplate, and on that template, I have 3 buttons, that should open 3 different pop-ups (similar to popUp Edit).

.Editable(editable => editable<br>            .Mode(GridEditMode.PopUp)<br>            .Window(w =><br>            {<br>                w.HtmlAttributes(new { @class = "csa-edit"});<br>                w.HtmlAttributes(new { style = "height: 200px;" });<br>                w.Height(200);<br>                w.Width(500);<br>                w.Title("Customer Validation");<br>                w.Events(v =><br>                    v.Open("OnEditStart")<br>                        .Activate(@<text>function () { console.log("EditWindow.Activate") }</text>));<br>                }))

 

I've tried this, but it's not what I exactly need, because I need to have customized templates for each button. 

Can you point me some article or demo ?

Any help would be highly appreciated. 

Best regards,

Manuel

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 12 Mar 2021, 12:41 PM

Hello,

I suggest implementing a custom command button that will open a different Kendo UI window on click. Please refer to the below official demo demonstrating how this can be achieved:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Support
Top achievements
Rank 1
Iron
Answers by
Nikolay
Telerik team
Share this question
or