user1046415
user1046415

Reputation: 789

Telerik Radcombox autopost back not firing at all

Can some one suggest...I am not able to figure out why the autopost back is not happening once i change the index of ddl.

Please advise what am i missing? Here is the markup:

<telerik:RadComboBox runat="server" ID="ddl" AutoPostBack="true" 
   DataTextField="name" Width="152" OnSelectedIndexChanged="Bindemail"
   DataValueField="name" DataSourceID="DataSource1" AllowCustomText ="true"
   EmptyMessage="Select user..." HighlightTemplatedItems="true" 
   Filter="Contains" MarkFirstMatch="true"/>

Upvotes: 1

Views: 6909

Answers (2)

Ramesh Rajendran
Ramesh Rajendran

Reputation: 38683

Check this

protected void Bindemail(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)

try this sample code for

<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="false" AllowCustomText="True" OnSelectedIndexChanged="Bindemail"
OnClientSelectedIndexChanged="OnClientSelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1">
</telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox> 

Javascript for

<script type="text/javascript">
function OnClientSelectedIndexChanged(sender, args)
{
__doPostBack('RadComboBox1','');
}
</script>

Check this sample

http://www.telerik.com/community/forums/aspnet-ajax/combobox/unusual-postback-with-radcombobox.aspx

Upvotes: 3

Brian Mains
Brian Mains

Reputation: 50728

AutoPostBack works for me, but what you may want to try is setting CausesValidation="false", as selecting a value can trigger validation by default. Setting it to false doesn't cause a validation on postback.

If that doesn't work, try removing properties from the markup to see if there is a conflicting setting, which can happen. Try removing AllowCustomText and MarkFirstMatch to see if it's related to that, then Filter, etc. Just to see if that is the problem.

Upvotes: 14

Related Questions