Error custom control from Telerik GridViewDataColumn for Date Filed Type Date

0 Answers 62 Views
DatePicker GridView
Debora
Top achievements
Rank 1
Debora asked on 23 Dec 2022, 10:52 AM

If I use directly the control Telerik GridViewDataColumn, define the column grid like a Date (DataType="{x:Type sys:DateTime}"), when I click on the filed visualize correctly the Calendar.

But if I use the custom control from GridViewDataColumn when I do click appare this error:

System.InvalidCastException: Impossibile eseguire il cast di oggetti di tipo 'Telerik.Windows.Controls.RadDatePicker' sul tipo 'System.Windows.Controls.TextBox'.

Can you help me to resolve the problem?
Thank You.

Stenly
Telerik team
commented on 28 Dec 2022, 07:20 AM

Hello Debora,

This does give me a general idea of what the scenario is on your end, however, with the currently shared information I cannot correctly pinpoint the cause of this exception.

With this being said, would it be possible to share the implementation of the custom GridViewDataColumn, or if this is not possible, just an extracted code from it that will still cause this exception? This will allow me to prepare a sample project, test this behavior, and get back to you with more information on why this is caused.

No answers yet. Maybe you can help?

Tags
DatePicker GridView
Asked by
Debora
Top achievements
Rank 1
Share this question
or