I've an ajax grid. When the user clicks add record, the data bound drop down lists are not getting bound. My drop down list inside the grid edit form looks like this:
<asp:DropDownList ID="DropDownListPlucState" runat="server"
AppendDataBoundItems="true"
DataSource='<%# Cache[Global.CACHE_STATES] %>'
DataTextField="Name"
DataValueField="Code"
SelectedValue='<%# Bind("State") %>'>
<asp:ListItem Text="" Value="" />
</asp:DropDownList>
The cache has data, but I need to manually call Bind on the DropDownList. The problem is, I can't find any event that corresponds on the server side to the "add record" click event on the grid.
This used to work before I started ajax-ifying the grids.
Thanks in advance.
<asp:DropDownList ID="DropDownListPlucState" runat="server"
AppendDataBoundItems="true"
DataSource='<%# Cache[Global.CACHE_STATES] %>'
DataTextField="Name"
DataValueField="Code"
SelectedValue='<%# Bind("State") %>'>
<asp:ListItem Text="" Value="" />
</asp:DropDownList>
The cache has data, but I need to manually call Bind on the DropDownList. The problem is, I can't find any event that corresponds on the server side to the "add record" click event on the grid.
This used to work before I started ajax-ifying the grids.
Thanks in advance.