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

[Solved] How to get RadCombobox PostbackUrl to open in new window

2 Answers 162 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
William Corry
Top achievements
Rank 1
William Corry asked on 10 Apr 2009, 09:15 PM
I have a form where the user selects a value on a Radcombobox that has a PostbackUrl that is a different webpage.  The new webpage uses the information on the previouspage variable as the source of parameters for its Sqlserverdata sources.  The issue I'm having is that the process of opening the new webpage destroys the old one.  I don't see a target property on the Radcombobox.  Is there a way to get the webpage specified by the PostbackUrl to open as a new webpage?

Thanks,

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 13 Apr 2009, 02:44 PM
Hi William Corry,

Unfortunately this is not possible. I may suggest a workaround though - to use the window.open JavaScript method and open a new window passing the required data as query string parameters. You can use the OnClientSelectedIndexChanged event of the combobox. Here is a quick example:

<script type="text/javascript">
function selectedIndexChanged (sender, args)
{
     window.open("Page.aspx?selectedValue=" + sender.get_value(), "_blank");
}
</script>
<telerik:RadComboBox runat="server" ID="RadComboBox1" OnClientSelectedIndexChanged="selectedIndexChanged">
   <Items>
           <telerik:RadComboBoxItem Text="One" />
           <telerik:RadComboBoxItem Text="Two" />
           <telerik:RadComboBoxItem Text="Three" />
   </Items>
</telerik:RadComboBox>

Kind regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
William Corry
Top achievements
Rank 1
answered on 15 Apr 2009, 12:17 AM
Thanks Albert:

That should do the job.
Tags
ComboBox
Asked by
William Corry
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
William Corry
Top achievements
Rank 1
Share this question
or