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

Grid Grouping Does not work in WebBrowserControl

3 Answers 232 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 26 Jul 2012, 02:42 PM
Browser: Internet Explorer 9
Framework: ASP.net MVC 3 with Razor
IDE: Visual Studio 2010
OS: Microsoft Windows 7
Kendo Version: 2012.2.710

When I open my Webpage with a Html.Kendo().Grid in a C# System.Windows.Forms.WebBrowser Control and try to group by a column I get the attached javascript Error. The inital load of the data works.

When I open the Page using Internet Explorer everything works.

When I use my Webbrowser Control to open the telerik grid samples grouping works,

Error translated:
In a script on this page has a error occred:

Line:  8
Column: 44082
Error: Could not get value of "length". The object is null or undefined
Code: 0
URL: http://localhost:12384/Scripts/kendo.web.min.js

My Grid Control:

@(Html.Kendo().Grid<lobotask.web.ViewModel.TaskViewModel>()    
	.Name("Grid")
	.Columns(columns => {
		//columns.Bound(t => t.).Title("ID");
		columns.Bound(t => t.Name).Title("Name").Groupable(true);
		columns.Bound(t => t.Description).Title("Beschreibung").Groupable(false);
		columns.Bound(t => t.RecipientsText).Title("Empfänger").Groupable(true);
		columns.Bound(t => t.Status).Title("Status").Groupable(true).Width(100);
		columns.Bound(t => t.Status).Title("Result").Groupable(true).Width(100);
	})
	.Pageable()
	.Sortable()
	//	.Resizable(t => t.Columns(true))
	.Scrollable() 
	.Filterable()
	.Groupable()
	
	.DataSource(dataSource => dataSource
		
		.Ajax()
		.Read(read => read.Action("MyTasks""Tasks"))
		//.Server()
		//.Read(
	 )
)

3 Answers, 1 is accepted

Sort by
0
Emily
Top achievements
Rank 1
answered on 09 Sep 2012, 02:43 AM
I am getting the same error on grouping with the following:

Browser: Internet Explorer 9
Framework: ASP.net MVC 3 with Razor
IDE: Visual Studio 2010
OS: Microsoft Windows 7
Kendo Version: 2012.2.710.340

Error: Could not get value of "length". The object is null or undefined
Code: 0
URL: http://localhost:12384/Scripts/kendo.web.min.js

Why does the Kendo.Mvc.Examples Solution work in IE 9? I cannot see anything that I am doing differently.

Thanks,
Emily

BTW: Everything works as expected in Chrome
0
Tito
Top achievements
Rank 1
answered on 20 Sep 2012, 12:05 PM
Hi,

I am having the same error as well.
0
Nithik
Top achievements
Rank 1
answered on 15 Jan 2013, 06:19 AM
use kendo.all.min.js instead of kendo.web.min.js.......
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Emily
Top achievements
Rank 1
Tito
Top achievements
Rank 1
Nithik
Top achievements
Rank 1
Share this question
or