protected void ProductsCombo_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         sds3.SelectParameters[0].DefaultValue = e.Text;
     }
 }
 protected void ProductsCombo_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         sds3.SelectParameters[0].DefaultValue = e.Text;
     }
 }
 protected void Detail_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         int tryout = 0;
         if (int.TryParse(e.Text, out tryout))
         {
             sds2.SelectParameters[0].DefaultValue = e.Text;
         }
     }
 }
 protected void CountriesCombo_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         int tryout = 0;
         if (int.TryParse(e.Text, out tryout))
         {
             CountriesDataSource.SelectParameters[0].DefaultValue = e.Text;
         }
     }
 }
Exemplo n.º 5
0
 protected void CountriesCombo_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         int tryout = 0;
         if (int.TryParse(e.Text, out tryout))
         {
             citiesDataSource.SelectParameters[0].DefaultValue = e.Text;
         }
     }
 }
 protected void Detail_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Text))
     {
         int tryout = 0;
         if (int.TryParse(e.Text, out tryout))
         {
             sds2.SelectParameters[0].DefaultValue = e.Text;
         }
     }
 }
Exemplo n.º 7
0
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the countries
        DataTable data = GetCountries(e.Text);

        // Looping through the items and adding them to the "Items" collection of the ComboBox
        for (int i = 0; i < data.Rows.Count; i++)
        {
            ComboBox1.Items.Add(new ComboBoxItem(data.Rows[i]["CountryName"].ToString(), data.Rows[i]["CountryID"].ToString()));
        }

        e.ItemsLoadedCount = data.Rows.Count;
        e.ItemsCount       = data.Rows.Count;
    }
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the items
        DataTable data = GetItems(e.Text, e.ItemsOffset, 10);

        ComboBox1.DataSource = data;
        ComboBox1.DataBind();

        // Calculating the numbr of items loaded so far in the ComboBox
        e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

        // Getting the total number of items that start with the typed text
        e.ItemsCount = GetItemsCount(e.Text);
    }
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the countries
        DataTable data = GetCountries(e.Text);

        // Looping through the items and adding them to the "Items" collection of the ComboBox
        for (int i = 0; i < data.Rows.Count; i++)
        {
            ComboBox1.Items.Add(new ComboBoxItem(data.Rows[i]["CountryName"].ToString(), data.Rows[i]["CountryID"].ToString()));
        }

        e.ItemsLoadedCount = data.Rows.Count;
        e.ItemsCount = data.Rows.Count;
    }
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the items
        DataTable data = GetItems(e.Text, e.ItemsOffset, 10);

        ComboBox1.DataSource = data;
        ComboBox1.DataBind();

        // Calculating the numbr of items loaded so far in the ComboBox
        e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

        // Getting the total number of items that start with the typed text
        e.ItemsCount = GetItemsCount(e.Text);
    }
Exemplo n.º 11
0
        protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
        {
            var data = GetItems(e.Text);

            var comboBox1Load = sender as ComboBox;

            //ComboBox1Load.TemplateControl.NamingContainer.ClientID.Equals("ComboBox1Load");

            for (var i = 0; i < data.Rows.Count; i++)
            {
                comboBox1Load.Items.Add(new ComboBoxItem(data.Rows[i]["itemcode"].ToString()));
            }

            e.ItemsLoadedCount = data.Rows.Count;
            e.ItemsCount       = data.Rows.Count;
        }
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox1_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the countries
        DataTable data = GetCountries(e.Text, e.ItemsOffset, 25);

        // Looping through the items and adding them to the "Items" collection of the ComboBox
        for (int i = 0; i < data.Rows.Count; i++)
        {
            ComboBox1.Items.Add(new ComboBoxItem(data.Rows[i]["CountryName"].ToString(), data.Rows[i]["CountryID"].ToString()));
        }

        // Calculating the numbr of items loaded so far in the ComboBox
        e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

        // Getting the total number of items that start with the typed text
        e.ItemsCount = GetItemsCount(e.Text);
    }
Exemplo n.º 13
0
    // Handles the "LoadingItems" event of the ComboBox
    protected void ComboBox3_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
    {
        // Getting the countries
        DataTable data = GetCountries(e.Text, e.ItemsOffset, 25);

        // Looping through the items and adding them to the "Items" collection of the ComboBox
        for (int i = 0; i < data.Rows.Count; i++)
        {
            ComboBox3.Items.Add(new ComboBoxItem(data.Rows[i]["CountryName"].ToString(), data.Rows[i]["CountryID"].ToString()));
        }

        // Calculating the numbr of items loaded so far in the ComboBox
        e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

        // Getting the total number of items that start with the typed text
        e.ItemsCount = GetItemsCount(e.Text);
    }
Exemplo n.º 14
0
        protected void cbxCustomer_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
        {
            System.Data.DataTable data = Functions.DB.GetCustomers(e.Text, e.ItemsOffset, 10);
            cbxCustomer.DataValueField = "ID";
            cbxCustomer.DataTextField = "NAME";
            cbxCustomer.DataSource = data;
            cbxCustomer.DataBind();

            e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

            e.ItemsCount = Functions.DB.GetCustomersCount(e.Text);
        }
 protected void ShipCountry_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     (sender as ComboBox).Items.Clear();
     dataSource.SelectParameters[0].DefaultValue = e.Text + "%";
     (sender as ComboBox).DataSourceID = "SqlDataSource2";
 }
 protected void ShipCountry_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
 {
     (sender as ComboBox).Items.Clear();
     dataSource.SelectParameters[0].DefaultValue = e.Text + "%";
     (sender as ComboBox).DataSourceID           = "SqlDataSource2";
 }
Exemplo n.º 17
0
        protected void ddPortofLoad_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
        {
            System.Data.DataTable data = Functions.DB.GetPorts(e.Text, e.ItemsOffset, 10);
            ddPortofLoad.DataValueField = "POR CODE";
            ddPortofLoad.DataTextField = "POR PORT_NAME";
            ddPortofLoad.DataSource = data;
            ddPortofLoad.DataBind();

            e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

            e.ItemsCount = Functions.DB.GetPortsCount(e.Text);
        }
Exemplo n.º 18
0
        protected void ddTypeOfMove_LoadingItems(object sender, ComboBoxLoadingItemsEventArgs e)
        {
            // Getting the items
            System.Data.DataTable data=Functions.DB.GetServiceTypes(e.Text, e.ItemsOffset, 10);
            ddTypeOfMove.DataSource = data;
            ddTypeOfMove.DataBind();

            // Calculating the numbr of items loaded so far in the ComboBox
            e.ItemsLoadedCount = e.ItemsOffset + data.Rows.Count;

            // Getting the total number of items that start with the typed text
            e.ItemsCount = Functions.DB.GetServiceTypesCount(e.Text);
        }