Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter Sign In with OpenID Sign In with Google

Sign In Sign Up

In this Discussion

Welcome to the Jo support forums! Please Sign Up and join in the discussion. You can also Sign In instantly with Twitter, OpenID or your Google ID.
joSelect - Bug on data binding?
  • KarstenKarsten April 2012
    Posts: 1

    I want your opinion on the following problem.
    I created a joSelect control and bind both dataSource and valueSource to a record:

    var rec = new joRecord({
        elements: ["Apple", "Banana", "Meat"],
        element: undefined
    });
    var select = new joSelect(rec.link("elements"), rec.link("element"));


    If the value of the select control changes, the list of the selectable entries is replaced by a one element list with the index of the selected value (i.e. "1").

    If I create the select controll without dataSource binding, the selectbox keeps its list of data after selection:

    var select = new joSelect(["Apple", "Banana", "Meat"], rec.link("element"));

    Can somebody confirm that the first behaviour is a bug, or am I using the data binding in a wrong way?

  • davedave April 2012
    Posts: 416

    I'll check it out this weekend.

    Dave Balmer, Jo Code Wrangler