Combobox disappears on inline javascript

2 posts, 0 answers
  1. Dharmesh
    Dharmesh avatar
    15 posts
    Member since:
    Apr 2011

    Posted 05 Oct 2011 Link to this post


    I have the below code and my combobox is getting disappeared on inline javascript call, but the aspx button has no any issue.






    <form id="form1" runat="server">



    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />






    <telerik:RadComboBox ID="ddlReportUserViews" runat="server" AutoPostBack="true" AllowCustomText="false"



    AccessibilityMode="true" Skin="Outlook">






    <telerik:RadComboBoxItem Text="1" Value="1" />



    <telerik:RadComboBoxItem Text="2" Value="2" />









    <asp:Button ID="btn1" runat="server" Text="Click" OnClientClick="alert('hi');" />




    <script type="text/javascript" language="javascript">



















  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 05 Oct 2011 Link to this post

    Hello Dharmesh,

    When the RadComboBox disappears, is it after the button's postback? I can understand why it would appear hidden, as the control is created using jQuery and the alert you call during the page load, stops all javascript calls, so the RadComboBox will only appear after you click ok.

    I hope that explains why it disappears in your situation.
Back to Top