Copied to clipboard

Flag this post as spam?

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


  • Mark 255 posts 612 karma points
    Jul 23, 2015 @ 11:25
    Mark
    0

    Grid PreValue Editors Not Restoring Values

    The existing grid pre value editors don't restore previously set values. Well, boolean, radiobuttonlist, etc. Only things like mediapicker do.

    Is this by design? Or is it a bug?

    It's bad for my users to have to remember what previous settings were, and re-instate them each time they want to make a change.

    Umbrach 7.2.6 by the way.

    I've even tried creating my own editor:

    Mainfest:

    {
    propertyEditors: [
        {
            alias: "OnOffPicker",
            name: "On Off Picker",
            editor: {
                view: "~/App_Plugins/OnOffPicker/view.html"
            }
        }
    ],
    javascript: [
        "~/App_Plugins/OnOffPicker/OnOffPicker.controller.js"
    

    ] }

    Controller:

    angular.module("umbraco").controller("OnOffPicker",
    function ($scope) {
        if ($scope.model.value === null || $scope.model.value === undefined) {
            $scope.model.value = "";
        }
    }
    

    );

    View:

    <div ng-controller="OnOffPicker">
    <input name="boolean" type="checkbox" ng-model="model.value" ng-true-value="1" ng-false-value="" />
    <pre>{{model | json}}</pre>
    

    But the same problem occurs. Is there an example of how I can code the controller to retrieve and load the previous value from the grid?

  • Mark 255 posts 612 karma points
    Jul 24, 2015 @ 08:03
    Mark
    0

    Can anyone shed any light on this?

  • Amir Khan 1282 posts 2739 karma points
    May 09, 2016 @ 17:40
    Amir Khan
    0

    Having this same issue with 7.2.4, anyone know if this was addressed in some later build?

Please Sign in or register to post replies

Write your reply to:

Draft