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

RAd Combobox refreshing the page

1 Answer 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Prem
Top achievements
Rank 1
Prem asked on 06 Oct 2010, 12:23 PM
Hi

I have 20-25 comboboxes to be used in my page...

I perform "selectedindexchanged event" to fill a textbox with selected value...

the whole page refreshes..& focus is moved to the first half of the page ,where my combo is sitting in the next half & I havw to scroll down to see where it is..

How can I resolve this...

my aspx
~~~~~~
 a.<telerik:RadComboBox ID="rcb_M1020_1" runat="server"
                                 DataTextField="Descriptionwithcode" DataValueField="CODE"
                                EnableLoadOnDemand="True" Width="150px" Height="150px"
                                AllowCustomText="true"
                                LoadingMessage="loading..you can enter the text in the box"
                                EmptyMessage="Type your Diagnosis here.."
                                HighlightTemplatedItems="true"
                                AutoPostBack="true" CausesValidation="false"
                                ShowMoreResultsBox="true"  Skin="Web20"
                                 onitemsrequested="rcb_M1020_1_ItemsRequested" onselectedindexchanged="rcb_M1020_1_SelectedIndexChanged">
                                    </telerik:RadComboBox>

aspx.cs
~~~~~~~~
protected void rcb_M1020_1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            IOASISFormController controllerobj = new OASISFormController();

            if (rcb_M1020_1 != null)
            {
                if (!string.IsNullOrEmpty(e.Text))
                {
                    rcb_M1020_1.DataSource = controllerobj.ListDiagnosticsData(e.Text.Trim());
                    rcb_M1020_1.DataBind();
                }
               
            }
        }

        protected void rcb_M1020_1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            txt_M1020_2.Text = rcb_M1020_1.SelectedValue;
          
        }


Please suggest a solution

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2010, 01:22 PM
Hello Sundar,


You could ajaxify the control in order to avoid page refresh on each postback.
AJAX Manager
AJAX Panel



-Shinu.
Tags
ComboBox
Asked by
Prem
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or