Strange Problem .. Please help

2 posts, 0 answers
  1. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 01 Oct 2010 Link to this post

    Hi,
    I have 3 RadComboboxes and 1 RadGird on my page.
    If i select item from RadCombobox1, RadCombobox2 will be populates then if i select item from  RadCombobox2 then RadCombobox3 will be populates.
    After i select item from RadCombobox3 then RadGrid will filled up.

    I am using RadAjaxManger to avoid the whole page refresh when i select items from RadComboBoxes.
    But the interesting thing is if i select Item from RadCombobox3, 
    First      protected void RadComboBox1_SelectedIndexChanged event firing then coming to 
                 protected void RadComboBox3_SelectedIndexChanged
            
    I don't know way.

    Here is my code
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />                   
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadComboBox2">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox3" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadComboBox3">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgdNoticeHistory" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
     
    <telerik:RadComboBox ID="RadComboBox1" runat="server"  Width="200px"
                onselectedindexchanged="RadComboBox1_SelectedIndexChanged" AutoPostBack="true">
            <Items>
                        <telerik:RadComboBoxItem runat="server" Text="ALL" Value="ALL" />
                        <telerik:RadComboBoxItem runat="server" Text="A" Value="A" />
                        <telerik:RadComboBoxItem runat="server" Text="B" Value="B" />
                        <telerik:RadComboBoxItem runat="server" Text="C" Value="C" />                   
            </Items>
            </telerik:RadComboBox>
         
        <telerik:RadComboBox ID="RadComboBox2" runat="server" Width="200px"
                onselectedindexchanged="RadComboBox2_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox>
        
         <telerik:RadComboBox ID="RadComboBox3" runat="server" Width="200px"
                onselectedindexchanged="RadComboBox3_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox>

    Here my code behind:

    protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
            {
                RadComboBox2.Items.Clear();
                RadComboBox3.Items.Clear();
                LoadRadComboBox2Items();           
            }
     
    protected void RadComboBox2_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
            {
                RadComboBox3.Items.Clear();
                LoadRadComboBox3Items();
            }
     
     protected void RadComboBox3_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
            {     
                    RadGrid1.DataSource = GetAllData(Convert.ToInt32(RadComboBox1.SelectedValue.ToString()), Convert.ToInt32(RadComboBox3.SelectedValue.ToString()));
                    RadGrid1.Rebind();             
            }


    Please help me..
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 08 Oct 2010 Link to this post

    Hi Venkata Maddineni,

    The issue that you describe is really strange.

    I created a sample page using your code and tried to reproduce it - but unfortunately without success.
    Please take a look at this demonstration video. Maybe I miss something?

    Could you please find the sample page attached, change it in order to reproduce the issue and paste the changed code here? Thank you in advance.

    Greetings,
    Kalina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top