| buUserTableAdapter buUserTA = new buUserTableAdapter(); |
| protected BindingSource buUserBindingSource = new BindingSource(); |
| buUserBindingSource.DataSource = buUserTA.GetData(); |
| this.radGvAdminUsers.DataSource = buUserBindingSource; |
| private void radBtnAdminSaveUser_Click(object sender, EventArgs e) |
| { |
| int userId = Convert.ToInt32(lblAdminUserDBID.Text); |
| string userLogin = this.radTxtAdminLoginId.Text.ToUpper(); |
| string lastName = this.radTxtAdminLastName.Text; |
| string firstName = this.radTxtAdminFirstName.Text; |
| string userPhone = this.radMTxtAdminPhone.Value.ToString().Trim(); |
| int userRole = Convert.ToInt32(this.radComboAdminRole.SelectedValue); |
| string userRoleDesc = radComboAdminRole.Text; |
| bool userActive = Convert.ToBoolean(this.radCbAdminUserIsActive.Checked); |
| if (userId != 0) |
| { |
| buUserTA.UpdateSP(userId, userLogin, lastName, firstName, userPhone, userRole, userActive, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString()); |
| } |
| else |
| { |
| //Need to do an insert for a new user and update for the new id |
| userId = Convert.ToInt32(buUserTA.InsertSP(userLogin, lastName, firstName, userPhone, userRole, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString())); |
| } |
| } |
If RadGropBox have
1) non odd height (for example, 179 instead of 180) and
2) font set for Tahoma with size 8
lower boundary is lost. See this picture for example.
I use Telerik RadControls for WinForms version 2009.2.729.
RadButtonElement
radB = new RadButtonElement();
Image Image = SaveBitmap(f); //My Faunction which returns an image
radB.CanFocus =
true;
radB.DisplayStyle = Telerik.WinControls.
DisplayStyle.Image;
radB.Image = Image;
radB.Name =
"radButtonElement";
radB.Text =
"radButtonElement";
((Telerik.WinControls.Primitives.
FillPrimitive)(radB.GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;
((Telerik.WinControls.Primitives.
BorderPrimitive)(radB.GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this.leoSchachterCarousel1.Items.Add(radB);
---------------------------------------------------------------------------------------------------------------------------------------
the Problem Is that the Image is to big and when I set it smaller it is cut...
how can I set an AutoSize and Stretch Image to RadButtonElement ?
Thank You,