示例#1
0
    protected void uxStateFooter_RefreshHandler(object sender, EventArgs e)
    {
        AdminAdvanced_Components_StateList   stateList   = (AdminAdvanced_Components_StateList)uxTaxClassRuleGrid.FooterRow.FindControl("uxStateList");
        AdminAdvanced_Components_CountryList countryList = (AdminAdvanced_Components_CountryList)uxTaxClassRuleGrid.FooterRow.FindControl("uxCountryList");

        stateList.CountryCode = countryList.CurrentSelected;
        stateList.Refresh();
    }
    protected void uxState_RefreshHandler(object sender, EventArgs e)
    {
        int index = uxGrid.EditIndex;
        AdminAdvanced_Components_StateList   stateList   = (AdminAdvanced_Components_StateList)uxGrid.Rows[index].FindControl("uxStateList");
        AdminAdvanced_Components_CountryList countryList = (AdminAdvanced_Components_CountryList)uxGrid.Rows[index].FindControl("uxCountryList");

        stateList.CountryCode = countryList.CurrentSelected;
        stateList.Refresh();
    }
    protected void uxAddButton_Click(object sender, EventArgs e)
    {
        uxGrid.EditIndex  = -1;
        uxGrid.ShowFooter = true;
        uxGrid.ShowHeader = true;
        RefreshGrid();

        uxAddButton.Visible = false;

        AdminAdvanced_Components_CountryList myCountry = ((AdminAdvanced_Components_CountryList)uxGrid.FooterRow.FindControl("uxCountryList"));

        myCountry.CurrentSelected = "";
        SetFooterRowFocus();
    }