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

Row selection in auto generated columns

0 Answers 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 16 Oct 2012, 01:28 PM
Hello,

I am binding the grid with auto generated columns. and now I want to handle the row selected event.could anyone help on this.  please find my view below

@{Html.Kendo().Grid(Model)

        .Name("GridSam")
        .DataSource(dataSource => dataSource
            .Server()
                     .PageSize(20)

                )

        .Columns(c =>
        {
            c.AutoGenerate(column =>
            {
                //customize autogenereted column's settings                                                   
                column.Width = "150px";

            });
        })

          .Resizable(resizing => resizing.Columns(true))
          .Scrollable(scrolling => scrolling.Enabled(true).Height(600))
          .Sortable(sorting => sorting.Enabled(true))
          .Groupable(grouping => grouping.Enabled(true))
          .Filterable(filtering => filtering.Enabled(true))
          .Reorderable(reorder => reorder.Columns(true))
          .Pageable(Pageable => Pageable.Enabled(true).PreviousNext(true).Input(true).PageSizes(true))

          .Render();
                }



Regards,
Ravi.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Ravi
Top achievements
Rank 1
Share this question
or