asp.net - Why always selectedindexchanged is firing when i click on checklistbox dropdownlist in c#? -
ti have 1 checklistbox dropdownlist firing when click on dropdown.but not selecting of listing in dropdown.how fix that.
<asp:dropdowncheckboxes id="ddcbproductstockitem" runat="server" autopostback="true" enableviewstate="true" usebuttons="false" useselectallnode="true" cssclass="form-control" onselectedindexchanged="ddcbproductstockitem_selectedindexchanged"> <style selectboxwidth="200" dropdownboxboxwidth="200" dropdownboxboxheight="130" /> <texts selectboxcaption="select item" /> </asp:dropdowncheckboxes>
in cs page,
if (!ispostback) { binditem(); }
try setting autopostback="false"
"autopostback == true && usebuttons == false - no action buttons ( 'ok/cancel' ) displayed, postback occurs whenever user leaves expanded drop down clicking outside it."
you can see here more details
Comments
Post a Comment