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

Checkbox value

1 Answer 418 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 15 Mar 2012, 05:29 PM
Hello everyone,
I have the following code to create the table

<div id="grid"></div>
            <script>
                 
                $(document).ready(function() {
                    $("#grid").kendoGrid({
                        dataSource: {                           
                            transport: {
                                read: {
                                    url: "'.$url.'",
                                    type: "post",
                                    dataType: "json"
                                }
                            },
                            schema: {
                                model: {
                                    fields: {
                                    sel: {                   
                                     editable: false
                                     },
                                        CODE: { type: "string" },                                       
                                        TYPE: { type: "string" },
                                        CATEGORY_NAME: { type: "string" },
                                        ARTICLE_NAME: { type: "string" },
                                         
                                    }
                                }
                            },
                            pageSize: 60
                        },
                        
                         
                        height: 450,
                        scrollable: true,
                        groupable: true,
                        sortable: true,
                        filterable: true,
                        pageable: true,
                        selectable: "multiple row",
                         
                        columns: [{
                            field: "sel",
                            template: "#= kendo.toString(\'<input type=\"checkbox\" id=\"select\" value=\"CODE\"  />\') #",
                             filterable: false,
                             sortable: false,
                             width: 50
                            },
                            "CODE",
                            "TYPE",
                            "CATEGORY_NAME",
                            {
                                field:"ARTICLE_NAME",
                                filterable: true
                            }
                        ]
                    });
                });
            </script>



I would add a column with a checkbox to cancel multiple lines. As you see I added the input, but I can not enter into the record ID value. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Santosh
Top achievements
Rank 1
answered on 17 May 2012, 09:07 AM
Tags
Grid
Asked by
Roberto
Top achievements
Rank 1
Answers by
Santosh
Top achievements
Rank 1
Share this question
or