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

kendo grid sorting with custom template

1 Answer 137 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mentor Graphics
Top achievements
Rank 1
Mentor Graphics asked on 06 Jun 2013, 08:53 AM
Hello.

I have a project with kendo-kncokout plugin and real time data using signarR.
 the data is pushed to the KO view model which is bonded  to the grid and updates the data.

While sorting  on regular grid the data is  resorted on update, but when i try to do this on a templated row it doesn't work. 

 

I'm using a   'useKOTemplates: true'  attribute for the template.

Is there a way to make the sorting  work for a template row?



code :

    <table id="grid" data-bind="kendoGrid: { 
    data: GridTable,
    rowTemplate: 'rowTmpl', 
    useKOTemplates: true,  
    pageable: false, 
    sortable: true, 
    resizable: true, 
    reorderable: true,
    columnMenu: true,
    
    filterable: {extra: false, operators: {string: {eq: 'Full Name',startswith: 'Starts with', }, } }, 
    columns: [
    {field: 'CName()', title: 'CName'},
    {field: 'WOName()', title: 'WOName'},  
    {field:'WOPercentProduced()',type: 'number', title: 'WOPercentProduced'}, 
    {field: 'WODate()', type: 'date', title:  'WODate'} ],  
    dataSource: {data:  GridTable ,schema: { model: { fields: 
    { 
     CName: { type: 'string'},
     WOName: { type: 'string' }, 
     WOPercentProduce: { type: 'number'}, 
     WODate: { type: 'date' }
     } }}}  }">
      

      
        <thead>
            <tr>
                <th data-field="CName">
                    CName
                </th>
                <th data-field="WOName">
                    WOName
                </th>
                <th data-field="WOPercentProduced">
                    WOPercentProduced
                </th>
                <th data-field="WODate">
                    WODate
                </th>
            </tr>
        </thead>
    </table>



tnx

Yaniv

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 10 Jun 2013, 08:43 AM
Hello Yaniv,

The Knockout-Kendo library is part of the Kendo UI Labs projects. As such, these projects are not officially supported by the Kendo UI team. Any support requests (via tickets or Forum posts) should go to either StackOverflow, or to the issues list for that project.

Regards,
Alexander Valchev
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
Mentor Graphics
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or