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

Rad Combo not working

3 Answers 30 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jesmon
Top achievements
Rank 1
Jesmon asked on 15 Jun 2012, 12:01 PM
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

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 18 Jun 2012, 01:28 PM
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.
0
Jesmon
Top achievements
Rank 1
answered on 19 Jun 2012, 04:19 AM
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


0
Kalina
Telerik team
answered on 22 Jun 2012, 08:32 AM
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.
Tags
ComboBox
Asked by
Jesmon
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Jesmon
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or