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

[ask] Some issue in Kendo UI Grid.

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rory
Top achievements
Rank 1
Rory asked on 25 Oct 2012, 02:46 AM
Hi All,

Sorry if the topic is little bit confuse, I am new comer in MVC, and Kendo UI of course, I have some question about Grid of kendo UI which related some part of functional in grid.

the first, How to give functionality about check all with checkbox control in header template and Item template in grid? I already read on example project of Kendo UI but still got confuse about that :), is there any different way get that result?

the second, in web form we can modify in item template of grid which can add / insert some control and manipulate the value on server side code, how to do that functionality in kendo grid? based on example I just get how to modify in row template, is it possible?

the third and the last, Is there possible to give functionality on event double click in row of grid to edit the record? cause I want the grid have ability to selection row with highlight on one click and ability to edit the record inline the row on double click also. is it possible?

thanks, hope my questions not too much and make confusing :)

I am newbie and getting stuck on some code of MVC :)

Rory,

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 29 Oct 2012, 04:33 PM
Hello Rory,

To your questions:

  1. The checkbox functionality is not supported out-of-the-box by the Grid. The preferred way to enable it is the approach covered in the code library which you probably are talking about. 
  2. There are individual column tempaltes - Template and ClientTemplate (based on the Binding) which you can use. There are also row templates and RowTemplate ClientRowTemplate ( again based on the Binding - server/ajax). I suggest you to check the demos to get the basic idea.
    http://demos.kendoui.com/web/grid/rowtemplate.html
    (use the SelectSource DropDown to see the syntax with the MVC wrapper)
    http://docs.kendoui.com/documentation/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/configuration#clienttemplate
  3. You can can attach that double click manually to the Grid and inside of the handler you can use the client object of the Grid to put that double clicked row into edit mode.
    http://docs.kendoui.com/api/web/grid#editrow
    e.g.
    $('#YourGrid tbody').on('dbclick','tr',function(e){
         var grid = $('#YourGrid ').data().kendoGrid;
         grid.editRow(this);
    })

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