Quantcast
Channel: ASP.net MVC Awesome - jQuery Ajax helpers
Viewing all articles
Browse latest Browse all 345

New Post: Grid Groupable column with null value, does not work

$
0
0
why do you need ids for each item ?

you can use mods in the new version
@(Html.Awe().AjaxRadioList("cat1")
        .Mod("myradiolist")
        .Url(Url.Action("GetCategories", "Data")))

<script>
    function myradiolist(o) {
        function render() {
            o.d.empty();
            var items = '';
            $.each(o.lrs, function (i, item) {
                var checked = $.inArray(item.K, awe.val(o.v)) > -1;
                items += '<li ><label><input type="radio" id="' + o.i + 'item' + i + '" value="' + item.K + '" name="' + o.nm + '" ' + (checked ? 'checked="checked"' : '') +
                    '" />' + item.C + '</label></li>';
            });
            var res = '<ul>' + items + "</ul>";

            o.d.append(res);
        };

        o.v.data('api').render = render;
        o.v.on('change', render);
    }
</script>
+ is plus

Viewing all articles
Browse latest Browse all 345


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>