Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems with DateRangeItem

    I'm using SmartClientPro 8.0 stable version 2011-01-05.

    I have two problems with DateRangeItem

    1. display problem with titleOrientation: "top"
    I want to show a SearchForm with only 1 column. Setting titleOrientation to "top" reorders both edits of DateRangeItem leading to 2 columns for the DateRangeItem. I expected the same alignment of both edits as with titleOrientation "left"
    Code:
    isc.SearchForm.create({
        ID: "dateTest",
        width:100, 
        height:224, 
        numCols:1,
        autoDraw:true,
        titleOrientation: "top",
        fields:[        
            {name:"countryName", title:"Country"},
            {name:"independence", title:"Nationhood",
              type: "date", allowRelativeDates : true, useTextField:true
            }
        ]
    })
    2. RelativeDateItem has an option "yearsAgoTitle" and "yearsFromNowTitle". Both options do not appear in the DateRangeItem PickList.
    How can I show them?

    Thanks

    burkhard

    #2
    Hi Burkhard,
    In answer to your questions:

    1) Ok we see the problem. We've now fixed the effect whereby the items appear side-by-side if titleOrientation is set to "top" and added a new property "innerTitleOrientation" which will allow you to set the orientation of the titles on the from and to fields independently from the orientation of the other items in the form. These changes will show up in the next nightly build.

    2) This should be able to be achieved by setting the timeUnitOptions property on the fromField and toField autoChildren.
    If you're not already familiar with auto children, the concept and available APIs are well documented here http://www.smartclient.com/docs/8.0/...ype..AutoChild.

    In short you should be able to set fromFieldProperties.timeUnitOptions and toFieldProperties.timeUnitOptions and see these options show up.

    Comment

    Working...
    X