Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
635
Postback occurs when selecting the selected item
posted

I have a WebDropDown and a WebDataGrid on a page. When I click the item from the dropdown that is already selected, a postback occurs but no server-side SelectionChanged or ValueChanged events are triggered. Therefore the data in my data grid is being cleared as there are no events from which I can re-bind the grid.

How can I either:-

a) prevent the dropdown from causing a postback when the item clicked is the selected item.

b) cause the dropdown to raise a server-side event from which I can re-bind the datagrid.

Any Ideas?

<ig:WebDropDown ID="DropDown1" runat="server" Width="140px" DisplayMode="DropDownList">
  <AutoPostBackFlags SelectionChanged="On" />
  <ClientEvents />
</ig:WebDropDown>