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

radComboxBox AJAX autopostback problem

3 Answers 93 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jialiang_liu
Top achievements
Rank 1
jialiang_liu asked on 03 Nov 2008, 03:38 PM
I have set an RadComboxBox AJAX control's autopostback to true, so that when the selectedIndexChanges the page will change accordingly. But somehow the postback occurs even when I just pull down the drop list. So everytime I click on the arrow to list page, the entire page refreshses.

The comboxbox is defined as 

<

telerik:RadToolBarButton Text="combobox" Value="combobox" CssClass="toolboxitem" CausesValidation="false">

 

 

<ItemTemplate>

 

 

<div style="padding-left:30px">

 

 

<telerik:RadComboBox ID="si_display_combobox" runat="server" AutoPostBack="True" OnSelectedIndexChanged="display_combobox" CausesValidation="false" Width="190px" Height="300px"></telerik:RadComboBox>

 

 

</div>

 

 

</ItemTemplate>

 

 

</telerik:RadToolBarButton>

It is inside an toolbar.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 05 Nov 2008, 01:30 PM
Hello,

I suppose that you've subscribed to OnButtonClick event of RadToolBar and that causes the postback when you click the dropdown arrow. Please find attached sample page which shows how to fix this issue.

Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jialiang_liu
Top achievements
Rank 1
answered on 05 Nov 2008, 03:42 PM
Thank you. It works perfect.
0
jialiang_liu
Top achievements
Rank 1
answered on 07 Nov 2008, 03:18 PM
After using the javascript, the problem is solved, however there is a new problem that the selectedindexchange event is fired twice, is it a related issue?

----It is a seperated issue, and the event is not fired twice. Sorry!----
Tags
ComboBox
Asked by
jialiang_liu
Top achievements
Rank 1
Answers by
Yana
Telerik team
jialiang_liu
Top achievements
Rank 1
Share this question
or