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

RadDatePicker JScript error

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 05 Dec 2008, 01:27 PM
I have a RadGrid with a user control for the edit form. The user control contains a RadDatePicker control. When the form is in add mode, everything works fine. When it is edit mode and and I click on the datepicker control, I receive a Microsoft JScript runtime error: Object expected error.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 08 Dec 2008, 02:50 PM
Hello Dennis,

Thank you for contacting us and I'm sorry for the delayed response.

May I suggest that you verify there is a property called DataItem in your user control. Please review this link and this demo which describe how to use a user control as an edit template. For your convenience I attached a working test project which implements your scenario.

I hope these directions are helpful. Let me know how it goes.

Best wishes,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Dennis
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or