![]() |
Item Date, Popup and Calendar |
Post Reply ![]() |
Author | |
dlord ![]() Newbie ![]() Joined: 25 October 2004 Location: United States Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() Posted: 31 October 2004 at 1:22am |
I'm building a property grid that display's a few dates. Most detail when an event occured. Which the user doesn't need to change. But when I add 'item.readonly = true' I loose the popup calnedar. It would be handy to present the calendar as information, but just don't allow a change. Is this something that can be done with 9.5.1 ?? Set Item = Category.AddChildItem(PropertyItemDate, "First Ping", DATEFIRSTPING) Also, I noticed the date is displayed in the grid in a differnet format than it is read in as. Such as - May 20, 2004 Is 20/05/2004 instead of what is used around Mississippi - 05/20/2004 Thanks for the help and the product is great..! David |
|
![]() |
|
Boyd ![]() Senior Member ![]() Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
![]() ![]() ![]() ![]() ![]() |
Has anyone found the solution to this? I've tried setting the Format property of the PropertyGridItem to 'mm/dd/yyyy', and it doesn't work. |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
I belive both of these issues are fixed and will be available in the next release
![]() |
|
![]() |
|
Boyd ![]() Senior Member ![]() Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
![]() ![]() ![]() ![]() ![]() |
Do you have an ETA on the next release?
|
|
![]() |
|
larrym ![]() Newbie ![]() Joined: 30 May 2006 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Here it is over two years later. Is it fixed? I'm using version 10.3.1 and it seems to still work this way. Actually the tutorial says it will display mm/dd/yyyy and it doesn't it displays dd/mm/yyyy. If I use the item.format = "%m/%d/%y" then the drop down calendar returns an error.
Does anyone have an answer? Should I create a new thread? Thanks. |
|
![]() |
|
elmsoftware ![]() Groupie ![]() ![]() Joined: 21 November 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Just reviewing some old posts...
Make sure the code reads as follows...
Item.Format = "%m/%d/%Y"
Note that the 'Y' is capitalized.
Doing this, we get the date value to read 01/31/2007.
======================================
With that being said, I would like for the date format options to be more robust in future updates to the property grid, allowing for custom formats.
We prefer showing dates in our programs with the format of "dd-mmm-yyyy" which produces dates in the following format...01-Jan-2007.
This is helpful because 01/09/2007 could be either January 9 or confused with September 1.
Best regards,
John
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |