Rad Combo not working

4 posts, 0 answers
  1. Jesmon
    Jesmon avatar
    17 posts
    Member since:
    Jul 2012

    Posted 15 Jun 2012 Link to this post

    Hi,
        I have an issue with radcombo. In my home page , i am using RadComo . The problem comes when i Used a Javascript in Page Load with  " document.forms[0].submit() " . After using this , combo will look like ReadOnly mode.
    Pleas help...

    Thanks in Advance
    Jesmon Joseph
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 18 Jun 2012 Link to this post

    Hello Jesmon,

    Could you paste the code associated with the troubled behavior in here? Please include the markup of the control as well.

    All the best,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Jesmon
    Jesmon avatar
    17 posts
    Member since:
    Jul 2012

    Posted 18 Jun 2012 Link to this post

    Hi Ivana ,    
                    aspx page :
        
                              <telerik:RadComboBox ID="rcbSupplier" DataTextField="Supplier_Name" DataValueField="Supplier_Id"
                                                                    runat="server" Height="140px" DropDownWidth="220px"   AllowCustomText="True"
                                                                    MarkFirstMatch="False" HighlightTemplatedItems="True" TabIndex="2" Width="220px"
                                                                    EmptyMessage="--Select Supplier--" AutoPostBack="true" EnableLoadOnDemand="True"
                                                                    Skin="Web20" ToolTip="Select Supplier" OnItemsRequested="rcbSupplier_ItemsRequested"
                                                                    OnSelectedIndexChanged="rcbSupplier_SelectedIndexChanged" EnableScreenBoundaryDetection="false">
                                                                </telerik:RadComboBox>

                In cs page , PageLoad event i just called this method from a class file

                                     _str = " hidValue = document.forms[0].namedItem('ctl00$CphMaster$hidConfirmAnswer');";
            _str += @"if (hidValue.value == 'Yes')";
            _str += @"{";
            _str += @"var jsAnswer;";
            _str += @"var jsQuestion;";
            _str += @"jsQuestion = 'You have unsaved transaction! Do you want to Continue?';";
            _str += @"jsAnswer = confirm(jsQuestion);";
            _str += @"if (!jsAnswer)";//Not Continue case
            _str += @"{";
            _str += @"document.forms[0].namedItem('ctl00$CphMaster$hidConfirmAnswer').value = 'No';";
            _str += @"document.forms[0].submit();";
            _str += @"}";
            //Place a hidden HTML control and name to be "hidConfirmAnswer" and set the value to access in CS file
            _str += @"else";
            _str += @"{";
            _str += @"document.forms[0].namedItem('ctl00$CphMaster$hidConfirmAnswer').value = 'Yes';";
            _str += @"}}";


    Thanks in Advance
    Jesmon Joseph


  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 22 Jun 2012 Link to this post

    Hello Jesmon,

    I am afraid that the code pasted here is not sufficient for us to reproduce the issue.
    Could you please make sure that there are no JavaScript errors on your page?
    Maybe the RadComboBox that you use is nested in another control?
    What is the exact scenario that you are trying to implement?


    Regards,
    Kalina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top