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

<> operator is not supporiting in

1 Answer 21 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alok
Top achievements
Rank 1
Alok asked on 24 Dec 2008, 01:02 PM

<> operator is not supporiting in  "Telerik.WinControls.UI.RadDateTimeEditor"
i have copied this code same as the given in Telerik dacumentation yet i am receiving the error. pls give me a best code as soon as possible. thnks

 

Imports

Telerik.WinControls.UI.RadDateTimeEditor

 

 

Private

Sub RadGridView1_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles RadGridView1.EditorRequired

 

 

Dim dateTimeEditor As RadDateTimeEditor = TryCast(e.Editor, RadDateTimeEditor)

 

 

If dateTimeEditor <> Nothing Then

 

 

DirectCast(dateTimeEditor, RadDateTimePickerElement).Format = DateTimePickerFormat.[Short]

 

 

End If

 

 

End Sub

 

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 29 Dec 2008, 03:14 PM
Hi Alok,

Thank you for writing.

Simply change the
If dateTimeEditor <> Nothing Then 
with
If Not IsNothing(dateTimeEditor) Then 

I will appreciate if you specify where you found this code in our documentation to correct this mistake.
Please, excuse us for the inconvenience.

I am looking forward to your reply.

Best wishes,
Martin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Alok
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or