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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -