This is a migrated thread and some comments may be shown as answers.

[Solved] Radcombo not retrieving selectedvalue in ModalPopupExtender

3 Answers 115 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
taraka chaitanya
Top achievements
Rank 1
taraka chaitanya asked on 02 Mar 2010, 04:09 AM
Hi,
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">&nbsp;</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

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 08 Mar 2010, 08:04 PM
Hi taraka chaitanya,
Please excuse our delayed reply.

I tried to reproduce the issue on our side without success.
Since the code snippet that you sent gives only a partial representation of your code, I made a sample running page with a dummy data source in order to reproduce the issue.

I suggest you modify this example in order to illustrate the issue and paste the modified code back to us.

Please send us the implementations of the client side functions "click" ( "btnok" control ) and "hidePopupmove()" ( "btnclose" contol).



Sincerely yours,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Csaba Szolomajer
Top achievements
Rank 1
answered on 18 Mar 2010, 12:32 AM
Hi!

I have the same issue, but it is very tricky. The list is populated, but it is appear under the modalpopup like my attached picture shown.

Do U have any idea what the problem is?

I try to add z-index !important  css property like this: .
.RadComboBoxDropDown {z-index:999999 !important} 
.
Nut it takes no effect.

Thanks,

mikro
0
Kalina
Telerik team
answered on 18 Mar 2010, 11:50 AM
Hello Csaba Szolomajer,

In order to help you I need to inspect your code and reproduce the issue on our side.

Could you send to us a sample page that illustrates your implementation please?
I didn’t found the attached image - can you try attaching it again?

Thank you in advance.

Best wishes,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
taraka chaitanya
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Csaba Szolomajer
Top achievements
Rank 1
Share this question
or