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

RadCombo : populate from a window

2 Answers 42 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sreedhar ambati
Top achievements
Rank 1
sreedhar ambati asked on 16 Jun 2010, 12:52 PM
Hi

I have a Country radcombo in a page. I have a anchor link to open a new window where we can a new country.
On close of  the window the newly added country should present in the radcombo and it should be in selected state.
Can you please a small sample to achieve this?

Thanks
Sreedhar Ambati

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jun 2010, 01:37 PM
Hello Sreedhar,

Invoke an ajaxRequest() in the OnClientClose event handler, and databind the combo in 'RadAjaxManager1_AjaxRequest' event. I hope the following forum explains more.
Rebind RadComboBox when RadWindow Closed

-Shinu.
0
Jonx
Top achievements
Rank 2
answered on 14 Jan 2011, 07:03 PM
Hello,
See here on how to add items by code:
http://demos.telerik.com/aspnet-ajax/combobox/examples/programming/addremovedisableitemsclientside/defaultcs.aspx

Then here to see how to return values from a dialog.
http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx

I prefer that solution to avoid having to use a postback,
John.
Tags
ComboBox
Asked by
sreedhar ambati
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jonx
Top achievements
Rank 2
Share this question
or