Skip to content

Preselect is not working #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Using optionTree to cascade country/state
2. Have var loc_tree with proper structure.  Works just fine for initial 
entry.
var loc_tree = {
    "Canada":"2:CAN",
    "Canada ==>":{
        "Nova Scotia":"75:NS",
        "Quebec":"74:QC"},
    "Mexico":"3:MEX",
    "United States":"1:US",
    "United States ==>":{
        "Alabama":"14:AL",
        "Alaska":"13:AK"}
    };

3. For edit, I have var config with preselect set to existing state, 
like "13:AK".
4. It doesn't seem to have an effect.  Still only displays countries.

What is the expected output? What do you see instead?
I expected it to have "United States ==>" selected for country 
and "Alaska" selected for state

What version of the product are you using? On what operating system?
I just downloaded it yesterday, so I have the latest version, 1.0.1
I'm running on Windows XP and Apache.

Please provide any additional information below.
It isn't clear how to use preselect.  Do I specify the cascading 
elements, "United States ==>" + "Alaska" or what?

Original issue reported on code.google.com by psyclo1...@gmail.com on 14 Jul 2009 at 2:30

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions