{"action":"opened","issue":{"url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/144","repository_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric","labels_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/144/comments","events_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/144/events","html_url":"https://github.com/lcdsantos/jQuery-Selectric/issues/144","id":182574114,"number":144,"title":"problem in dropdown list style","user":{"login":"neda-sh","id":5230214,"avatar_url":"https://avatars.githubusercontent.com/u/5230214?v=3","gravatar_id":"","url":"https://api.github.com/users/neda-sh","html_url":"https://github.com/neda-sh","followers_url":"https://api.github.com/users/neda-sh/followers","following_url":"https://api.github.com/users/neda-sh/following{/other_user}","gists_url":"https://api.github.com/users/neda-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/neda-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neda-sh/subscriptions","organizations_url":"https://api.github.com/users/neda-sh/orgs","repos_url":"https://api.github.com/users/neda-sh/repos","events_url":"https://api.github.com/users/neda-sh/events{/privacy}","received_events_url":"https://api.github.com/users/neda-sh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T16:38:15Z","updated_at":"2016-10-12T16:38:15Z","closed_at":null,"body":" \r\n  \r\nhi I used below code to change dropdownlist color and style:\r\n  <script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\"></script>\r\n    <script src=\"Script/jquery.selectric.min.js\"></script>\r\n    <link href=\"css/selectric.css\" rel=\"stylesheet\" />\r\n               <script>\r\n$(function(){\r\n    $('select').selectric({\r\n        maxHeight: 200\r\n    });\r\n});\r\n</script>\r\n\r\n\r\nand html:\r\n \r\n \r\n                 <asp:UpdatePanel ID=\"UpdatePanel2\" runat=\"server\">\r\n                                                    <ContentTemplate>\r\n                                                        <div id=\"ddlzoneD\">\r\n                                                             <asp:DropDownList ID=\"Ddlzone\" runat=\"server\" CssClass=\"ddlzone\" AutoPostBack=\"true\" OnSelectedIndexChanged=\"ddlZone_OSIC\"></asp:DropDownList>\r\n                                                        </div>                                     \r\n                                                        </ContentTemplate>\r\n                                           </asp:UpdatePanel>\r\n<asp:UpdatePanel ID=\"UPstate\" runat=\"server\">\r\n                                                    <ContentTemplate>\r\n                                                        <div id=\"ddlCity1D\">\r\n<asp:DropDownList ID=\"DdlCity\" runat=\"server\" CssClass=\"ddlCity1\" AutoPostBack=\"true\" OnSelectedIndexChanged=\"ddlcity_OSIC\" ></asp:DropDownList>\r\n                                                        </div>\r\n                                                        </ContentTemplate>\r\n                                                  </asp:UpdatePanel>\r\n\r\n    protected void ddlcity_OSIC(object sender, EventArgs e)\r\n    {\r\n        string code = DdlCity.SelectedItem.Text;\r\n        switch (code)\r\n        {\r\n            case \"تهران\":\r\n                {\r\n\r\n                    Ddlzone.Enabled = true;\r\n                    Ddlzone.Items.Insert(0, new ListItem(\"منطقه\", \"0\"));\r\n                    BindDropDownList(Ddlzone, \"SelectZone\", \"Name\", \"id\");\r\n                }\r\n                break;\r\n            default:\r\n\r\n                Ddlzone.Enabled = false;\r\n\r\n                break;\r\n        }\r\n    }\r\nhere when run page it worked correctly but here as you see I used updatepanel for dropdownlist when I select Item from DdlCity it will update and it return Dropdownlist Style to asp.net default:\r\nsee below image is when run page:\r\nhttp://i64.tinypic.com/35ajjn8.jpg\r\n \r\nand below image is when I select Item from DdlCity:\r\n http://oi65.tinypic.com/4s17pz.jpg\r\n\r\nwhat should I do?\r\nBest regards\r\nNeda\r\n"}}
{"actor":{"display_login":"neda-sh"}}