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

Grid row selection change event not firing

3 Answers 605 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Just
Top achievements
Rank 1
Just asked on 18 Sep 2012, 07:35 PM
I got a grid where I've set
selectable: true

but the change event does not fire. Any ideas why it would be so?

3 Answers, 1 is accepted

Sort by
0
Just
Top achievements
Rank 1
answered on 18 Sep 2012, 09:27 PM
If I use jQuery 1.7.1 then it works but if I reference 1.8.1 it does not.

Could  somebody from Kendo please tell if there has been any update to Kendo JS files post jQuery 1.8.1 release?
Thanks.
0
JJ
Top achievements
Rank 1
answered on 19 Sep 2012, 01:10 AM
I am having the same issue.  My grid worked with jquery-1.7.2.  I updated to 1.8.1 today and row selection no longer works.
0
Leon
Top achievements
Rank 1
answered on 17 Oct 2012, 07:52 PM
I can confirm the same issue.  It was not working for me in jquery 1.8.2 and I went back to 1.7.2 and it works.  The code below works in 1.7.2 but the event does not fire in 1.8.2

Anyone find a way around this besides rolling back to 1.7.2?

thanks

Grid
----------------------------------------------

  @( Html.Kendo().Grid<xxxxxxx.Models.xxx.Project>()
  .Name("MRMProjects")
        .Columns(columns =>
             {
                 columns.Bound(p => p.prjID);
                 columns.Bound(p => p.prjName);
             })
        .ClientDetailTemplateId("MRMProjectsTemplate")
        .DataSource(dataSource => dataSource
             .Ajax()
             .Read(read => read.Action("GetProjects", "xxx"))
             )
        .Sortable()
        .Scrollable()
        .Filterable()
        .Selectable(s => s.Mode(Kendo.Mvc.UI.GridSelectionMode.Single))
        .TableHtmlAttributes(new { style = "width: 783px;" })
        .HtmlAttributes(new { style = "width: 800px; height: 300px;" })
        .Events(events => events.Change("dgChange"))
  )

Script
-----------------------------

<script type="text/javascript">
    function dgChange(e) {
        var projMetaDiv = document.getElementById('mddHeader');
        projMetaDiv.innerHTML = "Whatever";
    }
</script>

 

 

Tags
Grid
Asked by
Just
Top achievements
Rank 1
Answers by
Just
Top achievements
Rank 1
JJ
Top achievements
Rank 1
Leon
Top achievements
Rank 1
Share this question
or