using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using Telerik.Web.UI.Skins;

namespace TelerikWebApp1.UI
{
    public partial class EventUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
            
            }
        }

       
        protected void AttributDDL_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            lblInfo.Text = "AttributDDL_SelectedIndexChanged";
        }
       

        [WebMethod]
        public  void TrancheDDL2_ItemChecked(object sender, RadComboBoxItemEventArgs e)
        {

            String autrecontrol = "";
            if (((System.Web.UI.Control)sender).ClientID == RadComboBox1.ClientID)
                autrecontrol = RadComboBox2.ClientID;
            else
                autrecontrol = RadComboBox1.ClientID;

            lblInfo.Text = "AttributDDL_ItemChecked2";
            ((Telerik.Web.UI.RadComboBox)sender).OnClientLoad = string.Format(@"  function()
                                   {{                                                   
                                     OnClientActionMethode2('{0}', '{1}');                                     
                                   }}",
                                ((System.Web.UI.Control)sender).ClientID, autrecontrol);
        }
        [WebMethod]
        public  void TrancheDDL_ItemChecked(object sender, RadComboBoxItemEventArgs e)
        {

            String autrecontrol = "";
            if (((System.Web.UI.Control)sender).ClientID == RadComboBox1.ClientID)
                autrecontrol = RadComboBox2.ClientID;
            else
                autrecontrol = RadComboBox1.ClientID;

            lblInfo.Text = "AttributDDL_ItemChecked";
            ((Telerik.Web.UI.RadComboBox)sender).OnClientLoad = string.Format(@"  function()
                                   {{                                                   
                                     OnClientActionMethode1('{0}', '{1}');                                     
                                   }}",
                                ((System.Web.UI.Control)sender).ClientID, autrecontrol);
        }
    }
}