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

Can I have a custom grid update template using kendo.Observable() object.

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rasika
Top achievements
Rank 1
Rasika asked on 15 Sep 2015, 05:10 AM

I have a requirement like this.

I am making a dynamic grid. In that grid dataSource can be change any time. Because of that I am making dynamic grid. In that grid update popup It has a Boolean value. So I wanna change it to radio button. So what I am try to do is I add a custom template.

editable: {
                mode: "popup",
                template: kendo.template($("#myCustomTemplate").html())
            }

 When someone click the update button it will give this template.

<script type="text/x-kendo-template" id="myCustomTemplate">
    <div id="lead-update22">
        <table data-template="leadFieldsTemplate"  @*data-bind="source: dataField.leadModel"*@></table>
    </div>
</script>‚Äč

 

But this grid is dynamic. So I try to make kendo.Observable() object and try to make the field to bellow template with in the above template.

 

<script type="text/x-kendo-template" id="leadFieldsTemplate">

<script>

 But this is not working. I wanna know that if it is possible to do something above ??  

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 18 Sep 2015, 11:20 AM
Hello,

This behavior is not supported out of the box and can be implemented only through a custom solution. I am not sure what the structure of the data is and how this will help generating the proper input elements, however the approach should work. Here is a proof of concept example.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Rasika
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or