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

Kendo MVC Grid Issue while reloading

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krutik
Top achievements
Rank 1
Krutik asked on 06 Apr 2017, 09:04 AM

Hi,

I am encountering strange issue in kendo mvc grid. My kendo mvc grid supports two feature one is saving state which save the state of filter/column order in my local database and other one is to upload pdf files using link button in the row.

Now say I loaded my kendo mvc grid with some records and applied a date range filter on it and save the state of it. Now when i load that saved state and try to upload record I encounter following error on reloading grid after successful upload. Please check attached screenshot for more details :

Following are the details

kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:26 Uncaught Error: Cannot call method 'value' of kendoDropDownList before it is initialized at HTMLSelectElement.<anonymous> (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:26:4132) at Function.each (https://kendo.cdn.telerik.com/2017.1.223/js/jquery.min.js:2:2881) at M.fn.init.each (https://kendo.cdn.telerik.com/2017.1.223/js/jquery.min.js:2:846) at M.fn.init.e.fn.(anonymous function) [as kendoDropDownList] (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:26:4079) at init.refresh (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:37:20463) at init.d (https://kendo.cdn.telerik.com/2017.1.223/js/jquery.min.js:2:3856) at init.trigger (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:25:6794) at init._process (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:28:3663) at init.success (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:27:31463) at success (https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js:27:30421)

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 10 Apr 2017, 06:31 AM
Hello Krutik,

You say that your Grid reloads after uploading the PDF file. Is there a reason why you need the Grid to reload again? If I understand correctly, there are no changes to the Grid itself when a PDF upload happens.
Also, about the DropDownList error, can you provide more details on where you have a DropDownList in the Grid - do you have any custom DropDownLists that you added as templates? 
Can you show us the logic that reloads the Grid on PDF upload and any initialization code for custom DropDownLists in your Grid?
In the meantime, make sure that you don't have any custom code that might be running while the Grid is reloading, or before its column menu is initialized.

Regards,
Tsvetina
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Krutik
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or