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

[Solved] Radiobuttonlist in Kendo Grid

1 Answer 219 Views
Grid
This is a migrated thread and some comments may be shown as answers.
crazy05
Top achievements
Rank 1
crazy05 asked on 05 Mar 2015, 01:52 AM
I want 4 columns in Grid, First column is Name and next three columns are permissions - Read, write and None. If user is having Read and write access, I want check Write Radiobutton. If user is having Read, Read Radiobutton and Neither then check None. How can I do this ? Below is the code I tried.

var dataSource = new kendo.data.DataSource({
transport: {
read: {
type: "GET",
dataType: "json",
url: "/Home/GetUsers",
data: UserData
}
},
schema: {
model: {
id: "Id",
fields: {
Id: { editable: false },
Name: { editable: false },
Read: { editable: true },
Write: { editable: true },
None: { editable: true}
}
}
}
});

$("#grid").kendoGrid({
dataSource: dataSource,
columns: [
{ field: "Id", hidden: true },
{ field: "Name", title: "Name" },
{ field: "Read", title: "Read", template: "<input type='radio' name='Read' value='#= Read #' />" },
{ field: "Write", title: "Write", template: "<input type='radio' name='ReadWrite' value='#= Write #' />" },
{ field: "None", title: "None", template: "<input type='radio' name='None' value='#= None #' />" }
],
});

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 06 Mar 2015, 04:45 PM
Hello,

I have already addressed this query in the other forum thread you opened.

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
crazy05
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or