Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Serge 12 posts 103 karma points
    Jun 27, 2016 @ 12:13
    Serge
    0

    nuPicker value not prepopulated

    Hi all.

    Got a nuPicker dropdown on member profile. It shows time zones from IDotNetDataSource:

    TimeZones.List.Select(z => new KeyValuePair<string, string>(z.DisplayName, z.DisplayName))
    

    Everything works fine except one particular value - "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna". This value is stored in DB correctly and comes from the server in request /umbraco/backoffice/UmbracoApi/Member/GetByKey?key=xxx. But it's not preselected in the dropdown. So if you try to save the profile after page refresh - validation says it's mandatory.

    Running Umbraco version 7.3.8 assembly: 1.0.5891.22674 and nuPicker 1.5.3.

    Thanks, Sergey.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Sep 27, 2016 @ 08:09
    Jeroen Breuer
    0

    Somehow the issue only happens with "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna". Maybe the value is just too long.

    Jeroen

  • Nadeya 4 posts 86 karma points
    Sep 27, 2016 @ 15:03
    Nadeya
    2

    The issue happens when the string contains commas and JavaScript separate it because the data stored as a CSV.

    Nadeya

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies