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

PropertyGrid and DateTimePicker

2 Answers 187 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Gosha
Top achievements
Rank 1
Gosha asked on 10 Mar 2014, 09:33 PM
I am trying to add DateTimePicker to PropertyGrid but it not work! What is wrong?


Dim startdate As New PropertyStoreItem(GetType(RadTimePicker), "Start date", DateTime.Now, "", "Dates", False)

2 Answers, 1 is accepted

Sort by
0
Gosha
Top achievements
Rank 1
answered on 10 Mar 2014, 09:44 PM
I apologize for being dumb, I was supposed to write DateTime instead of RadDateTimePicker. 
0
Stefan
Telerik team
answered on 13 Mar 2014, 11:10 AM
Hi Sasa,

I guess you have already resolved this case, but I will post a small sample here in case anyone else have the same case:
radPropertyGrid1 = new RadPropertyGrid();
radPropertyGrid1.Dock = DockStyle.Fill;
radPropertyGrid1.Parent = this;
 
PropertyStoreItem dateItem = new PropertyStoreItem(typeof(DateTime), "Start Date", DateTime.Now, "", "Dates", false);
RadPropertyStore store = new RadPropertyStore();
store.Add(dateItem);
this.radPropertyGrid1.SelectedObject = store;

Regards,
Stefan
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
PropertyGrid
Asked by
Gosha
Top achievements
Rank 1
Answers by
Gosha
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or