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

Rad grid causing issue with date picker

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tanmay
Top achievements
Rank 1
tanmay asked on 17 Mar 2014, 01:51 PM
Hello All, 
I am getting some issue with here is my code

See attached , i have aspx, VB page along with the ERROR, also screen short after F12
, exception is 
Uncaught TypeError: Cannot set property 'control' of undefined 

Interesting thing is this same code is basically generating columns based on the query and condition, in some pages it's really work but in some case not , and from the error when i go to the source i found it's date picker also on load this exception happen , and including date picker no ajax is working even loader , row filter all, 


Please help as soon you can 


























1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 20 Mar 2014, 10:57 AM
Hi Tanmay,

After inspecting the code shown in the screenshot I noticed that you are using simple data binding for the RadGrid (using the DataBind() method). Note that this type of binding is generally used in simple scenarios where operations like paging, sorting, filtering are not needed for RadGrid.

From the provided markup it seems that paging and filtering for the grid are enabled. In such scenario it is recommended to use advanced data-binding by either using a Declarative DataSource or handling the NeedDataSource event for the RadGrid. You could see an illustration on how both approaches are implemented in the articles linked above.

Moreover would you try to disable Ajax by setting EnableAjax property of the RadAjaxPanel to false and see if an error will be thrown on the server?

Regards,
Viktor Tachev
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Grid
Asked by
tanmay
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or