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

[Solved] Controls disabled after RadComboBox postback

1 Answer 149 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 03 Nov 2009, 09:05 PM
Every time my code executes the selected index changed event for a radcombo box, all other controls on my page become disables temporarily. If I try to type in any of the controls on my page rigth after the selected index changed event, nothing happens until i click anywhere on the form and then back on the control. Below is my selected index changed event code:
 

if

 

(e.Value != string.Empty)

 

{

    txtItemDescription.Text =

 

string.Empty;  

 

 

    hdnItemNumber.Value = e.Value;

 

 

 

    if (e.Value != string.Empty) 

    {

 

 

        foreach (DataRow dr in GetItem(e.Value.Trim()).Rows) 

        {

            txtItemDescription.Text = dr[

 

"Description"].ToString(); 

 

 

 

 

            break

        }

    }

}

Here is my ASP.NET code:

 

 

 

 

 

<

 

table border="0" cellpadding="2">

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<asp:HiddenField ID="hdnItemMode" runat="server" />

 

 

 

 

 

Item Number:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<telerik:RadComboBox runat="server" ID="rcbItemNumber" AllowCustomText="True" EnableItemCaching="True"

 

 

 

 

 

 

EnableLoadOnDemand="True" EnableVirtualScrolling="True" OnSelectedIndexChanged="rcbItemNumber2_SelectedIndexChanged"

 

 

 

 

 

 

DataTextField="ItemNumber" DataValueField="ItemNumber" OnItemsRequested="rcbItemNumber_ItemsRequested"

 

 

 

 

 

 

MaxHeight="180px" CausesValidation="false" ShowMoreResultsBox="True" ShowWhileLoading="False"

 

 

 

 

 

 

AutoPostBack="True">

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnItemNumber" runat="server" Value='<%# Bind("ItemNumber") %>' />

 

 

 

 

 

 

<asp:Label ID="lblItemsFound" runat="server" ForeColor="Red"></asp:Label>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

Description:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<asp:TextBox class="textbox" ID="txtItemDescription" Width="250px" Text='<%# Bind( "ItemDescription") %>'

 

 

 

 

 

 

TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

< tr>

 

<td>

 

 

 

 

 

Qty:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td>

 

 

 

 

 

 

<asp:TextBox class="textbox" ID="txtQty" Width="150px" runat="server"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td>

 

 

 

 

 

Price:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="middle">

 

 

 

 

 

 

<asp:TextBox ID="txtPrice" runat="server" class="textbox" Width="150px"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Nov 2009, 12:06 PM
Hi Steve,

I tried to reproduce this issue with the latest Q3 release but to no avail. Could you please give it a try?

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or