Combo Box Selection Changed Event get automatically fired at Page Load.

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 26 Jul 2011 Link to this post

    Combo Box Selection Changed Event get automatically fired at Page Load.
    When the page loads, ComboBox Selection changed Event get automatically fired which causing unnecessory
    WCF service function call.

    Check out the Following Code:-
    <telerikInput:RadComboBox  Width="100"  Margin="2"  Height="20" x:Name="ddlMeasure"  SelectionChanged="ddlMeasure_SelectionChanged"  HorizontalAlignment="Center" VerticalAlignment="Top" >
    C# Code Behind:
    public CareProviderbyDiseasePopUp()
               busyIndicator = new BusyIndicator();
               busyIndicator.Width = 300;
               busyIndicator.Height = 325;
               busyIndicator.HorizontalAlignment = HorizontalAlignment.Center;
               busyIndicator.VerticalAlignment = VerticalAlignment.Top;
               busyIndicator.Visibility = Visibility.Visible;
               intAppUserId = App.Current.Resources.Contains("AppUserId") ? Convert.ToInt32(App.Current.Resources["AppUserId"]) : 0;
               intDiseaseId = App.Current.Resources.Contains("DiseaseId") ? Convert.ToInt32(App.Current.Resources["DiseaseId"]) : 0;
               intMeasureId = App.Current.Resources.Contains("MeasureId") ? Convert.ToInt32(App.Current.Resources["MeasureId"]) : 0;
               intTrendDiseaseID = App.Current.Resources.Contains("TrendDiseaseID") ? Convert.ToInt32(App.Current.Resources["TrendDiseaseID"]) : 0;
               radChart.Visibility = Visibility.Collapsed;
               // Combo Box Selection Changed Event Registered
               ddlMeasure.SelectionChanged+=new Telerik.Windows.Controls.SelectionChangedEventHandler(ddlMeasure_SelectionChanged);
  2. Yana
    Yana avatar
    4547 posts

    Posted 28 Jul 2011 Link to this post

    Hello Rahul,

    We've tested the provided code but weren't able to reproduce the described issue. Could you please send us more details which will help us observe the problem? Thanks in advance

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft R3 2016 release webinar banner
Back to Top