Print Page | Close Window

Item Date, Popup and Calendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=1351
Printed Date: 27 November 2024 at 7:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Item Date, Popup and Calendar
Posted By: dlord
Subject: Item Date, Popup and Calendar
Date 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)
        Item.DESCRIPTION = "date of first ping reply."
        Item.ReadOnly = True
       

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




Replies:
Posted By: Boyd
Date Posted: 10 December 2004 at 8:53am

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.



Posted By: SuperMario
Date Posted: 10 December 2004 at 9:00am
I belive both of these issues are fixed and will be available in the next release


Posted By: Boyd
Date Posted: 10 December 2004 at 9:10am
Do you have an ETA on the next release?


Posted By: larrym
Date Posted: 14 December 2006 at 2:44pm
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.


Posted By: elmsoftware
Date Posted: 27 January 2007 at 11:59pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net