sir-bsbaril / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

no display drop items #298

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

hello,

i am binding control using ajax with json web method in asp.net but its not 
display drop items and ajax bind successfully. i am using firstItemChecksAll
so its display first item but not all so please post how to bind dynamically 
dropdownchecklist .
 please send quick reply ,

thanks.

code is here
 $.ajax({
                    type: "POST",
                    contentType: "application/json; charset=utf-8",
                    url: "WebForm3.aspx/BindData",
                    data: '{ ListDistrictID: ' + '"' + $('#Div3').val() + '"' + '}',
                    dataType: 'json',
                    success: function (data) {
                        $("#drpsubdistrict").empty();
                        $.each(data.d, function (key, value) {
                            $("#drpsubdistrict").append($("<option></option>").val(value.SubDistrictID).html(value.SubDistrictName));
                        });
                    },
                    error: function (result) {
                        alert("Error");
                    }
                });

Original issue reported on code.google.com by viralpi...@gmail.com on 17 Aug 2013 at 6:00