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

Few queries on Web Data grid

3 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 28 May 2013, 09:44 AM
Hello Team,
I am evaluating the web data grid and the features it provides. I have few queries
  1. Check box is not getting rendered as part of the row, Is there any way, I can achieve this scenario for both single grid as well as hierarchical grid.
  2. In one of the live demo(Popup), ASP.NET web API has been used for CRUD operation, Can you guys please provide the server side code/ or working solution, because we want to know how the filter/sorting parameters and newly added rows data is being passed.
  3. With hierarchical grid, if I select one of the child row, how can I select the parent row and vice verse.

Regards,
Rakesh

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 May 2013, 06:35 AM
Hi,

 Up to your questions:

1. A checkbox would be rendered only if you set the template of the column to render a checkbox.
2. You can check the following example which includes a crud service: https://github.com/telerik/kendo-examples-asp-net-mvc/tree/master/grid-crud. Here you can find more demos: https://github.com/telerik/kendo-examples-asp-net
3. To select grid rows from code you need to use the select method. You can combine that with the change event which is raised when the user selects a grid row.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Rakesh
Top achievements
Rank 1
answered on 30 May 2013, 06:52 AM
Hi,
  1. A checkbox would be rendered only if you set the template of the column to render a checkbox.(So, on checkbox select/un-select, can i access selected row data, without writing additional code and also on page change will the selected row data get persisted?).
  2. For 3rd question, i think you didn't get my requirement, It goes like this, Assume that, I have a hierarchical grid when I select the first row of the parent grid will all the child row gets selected? and if i select one of the child row, will the corresponding parent row get selected?. If this is not achievable by default, any link/source where i can achieve the same.?

Regards,
Rakesh

0
Atanas Korchev
Telerik team
answered on 03 Jun 2013, 06:36 AM
Hi,

 1. You need to write additional code to handle the checkbox checking. After all it is a custom template. The grid doesn't know what this template does as it is user specified.
 2. No, the parent row isn't automatically selected. This is why I suggested how you can implement that using the change event of the grid and the select method. I recommend checking the provided links to the documentation.

Regards,
Atanas Korchev
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
Rakesh
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Rakesh
Top achievements
Rank 1
Share this question
or