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

[Solved] problem in multiple combo box for address

3 Answers 75 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
laxmi
Top achievements
Rank 1
laxmi asked on 13 Jun 2008, 11:58 AM
Hi,

This is laxmi.
I am using multiple combo boxes in my application.
We have 4 combo boxes (continent,country,city,office) on selection of office 4 labels should appear for (street,pobox,city,zipcode)

Can any one help me out how to display label on selection of office in client side.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 16 Jun 2008, 11:03 AM
Hello Laxmi,

I suggest you wrap the labels with a div which has style="display:none". Then you can make this div visible in the event handler of OnClientSelectedIndexChanged event.

For example:
<script>  
function OnClientSelectedIndexChanged ()  
{  
    var myDiv = document.getElementById("div1");  
    myDiv .style.display= "block";  
 
}  
 
</script> 


Best wishes,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
laxmi
Top achievements
Rank 1
answered on 16 Jun 2008, 11:09 AM
Thanks for your reply.

I need to bind data in the labels depends on selected item of combo box(i am excuting db query depends on selected item).

Like the items requested, i need to send id and retrieve values according to that id.

how can i access server method?

Thanks in advance.

Laxmi.
0
Rosi
Telerik team
answered on 17 Jun 2008, 01:09 PM
Hi Laxmi,

In this case I suggest you execute your logic on the server in OnSelectedIndexChanged event instead of on the client side.

However, you can use RadAjaxManager and call its ajaxRequest method in OnClientSelectedIndexChanged event.

Then you can set the Text property of the label controls in AjaxRequest event.

Please follow the link -http://www.telerik.com/help/aspnet-ajax/ajxonajaxrequest.html

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
laxmi
Top achievements
Rank 1
Answers by
Rosi
Telerik team
laxmi
Top achievements
Rank 1
Share this question
or