In a modalpopup ,I populated the radcombo with customer names.User selects a particualr customer from the combo and clicks save button. Onclick of save, I am not able to retrieve the selectedvalue. It is working fine when i use a normal dropdownlist.
Aspx code
<asp:Panel ID="pnlmove" runat="server" CssClass="modalWindow">
<table style="width: 350px; height: 100px"><tr>
<td align="left" colspan="2"><p>Move to Customer</p></td>
<td align="left">
<telerik:RadComboBox ID="rcbCustomerName" runat="server" ZIndex="100002" MarkFirstMatch="true" DataTextField="Name" DataValueField="Id"></telerik:RadComboBox>
</td></tr>
<tr><td align="left" style="width: 50px"><div class="btnLrgDkBlue_Left"><div class="btnLrgDkBlue_Right">
<asp:Button ID="btnok" class="btnLrgDkBlue_Middle" Text="Yes" runat="server"
Style="width: 32px" OnClick="btnok_Click" OnClientClick="click" />
</div></div></td>
<td align="left" style="width: 60px"><div class="btnLrgLtBlue_Left"><div class="btnLrgLtBlue_Right">
<button id="btnclose" class="btnLrgLtBlue_Middle" onclick="hidePopupmove()" style="width: 45px">Cancel</button>
</div></div></td>
<td style="width: 250px"> </td></tr>
</table></asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="MPEmove" runat="server" TargetControlID="HiddenField1"
PopupControlID="pnlmove" BackgroundCssClass="modalBackground" OkControlID="btnok"
CancelControlID="btnclose" />
cs code
protected void btnok_Click(object sender, EventArgs e)
{
string customer = rcbCustomerName.SelectedValue;
}
Please provide me your thoughts
Chaitanya