コード例 #1
0
        void btnAddNew_Click(object sender, EventArgs e)
        {
            ClearDownTabs();

            this.Profile = new ProfilesService.PerformanceProfile();
            this.rmpProfiles.SelectedIndex = 1;
            rmpPerformance.SelectedIndex   = 0;

            rgProfiles.Rebind();
        }
コード例 #2
0
        void rgProfiles_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "Edit")
            {
                e.Canceled = true;
                this.rmpProfiles.SelectedIndex = 1;
                this.Profile = this.ServiceClient.GetPerformanceProfile(new Guid(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ProfileID"].ToString()));
                ShowProfile();
            }

            if (e.CommandName == "Vehicles")
            {
                e.Canceled   = true;
                this.Profile = this.ServiceClient.GetPerformanceProfile(new Guid(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ProfileID"].ToString()));
                this.rmpProfiles.SelectedIndex = 2;
                ShowVehicles();
            }
        }