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

MVC Grid not accessible after AJAX HTML response added to DOM

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harris
Top achievements
Rank 1
Harris asked on 18 Jun 2015, 07:12 PM

Hi,

I am using the ASP.NET MVC Grid control on a page. The functionality is to fire a AJAX query when a Grid row is selected. The AJAX query calls the MVC Controller and gets a response HTML.

 The response HTML is a Tab Strip with 4 tabs , all of them are empty except for one which shows a hierarchy (built using <ul> and <li> tags).

Scenario,

  • When Grid loads, it gets the data from one of the MVC controllers
  • When a row is selected, the "onChange" event fires and a AJAX call pulls the HTML response with the Tabstrip
  • Once the AJAX response comes back, it is added to the DOM using $('#DrillDown').html(data)

Issue

Once the AJAX response is added to the DOM, the GriD is no longer accessible. None of the rows are selectable anymore, the below line returns null

var grid = $('#MasterGrid').data("kendoGrid");

 Any help appreciated.

-Harris

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 22 Jun 2015, 10:31 AM

Hello Harris,

We are not aware of such problem with the Kendo UI Grid for ASP.NET MVC. I prepared a sample project that implements very similar scenario but it works fine and after the AJAX response comes back the grid widget is accessible and respond properly to user interaction. 

Regards,
Boyan Dimitrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Harris
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or