private void radComboBoxAgreement_DropDownOpened(object sender, EventArgs e) |
{ |
//getting the popup form which size should be set |
RadPopupForm popup = (RadPopupForm)radComboBoxAgreement.Items[0].ElementTree.Control; |
int desiredWidth = (int)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Viewport.DesiredSize.Width; |
RadScrollLayoutPanel scrollPanel = (RadScrollLayoutPanel)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Children[2]; |
if (desiredWidth > radComboBoxAgreement.Width) |
{ |
if (scrollPanel.CanVerticalScroll) |
{ |
desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.ScrollThickness; |
} |
//adding border width (both left and right) of the inner listbox element. |
desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.BorderThickness.Horizontal; |
popup.Size = new Size(desiredWidth, popup.Height); |
} |
} |
Hallo.
Please, could you give me an adwace how to use RadWaitingBarElement in RadGridView and run this element. I have try used it in cell_formating, but element do not run.
(it is trial Version: 2010.1 504 , C#, vs 2008 )
Thank you for advice or source code.
Tomas
void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) |
{ |
if (e.CellElement.RowIndex < 0) return; |
if (((GridViewDataColumn)e.CellElement.ColumnInfo).FieldName == "test") |
{ |
RadWaitingBarElement element = new RadWaitingBarElement(); |
element.StretchHorizontally = true; |
element.StretchVertically = true; |
element.waitingTimer = this.timer1;//timer is running |
e.CellElement.Children.Add(element); |
} |
I am experiencing some issues with allowing the user to filter data in the grid. We are using Telerik.WinControls.GridView, v8.2.0.0. In the designer, i have the following code:
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn1);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn2);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn3);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn4);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn5);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn6);
this.grdAuditDetails.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn7);
this.grdAuditDetails.EnableFiltering = true;
this.grdAuditDetails.MasterGridViewTemplate.EnableFiltering = true;
this.grdAuditDetails.MasterGridViewTemplate.EnableGrouping = false;
this.grdAuditDetails.MultiSelect = false;
this.grdAuditDetails.Name = "grdAuditDetails";
this.grdAuditDetails.ReadOnly = true;
this.grdAuditDetails.RightToLeft = System.Windows.Forms.RightToLeft.No;
//
//
//
this.grdAuditDetails.RootElement.ForeColor = System.Drawing.SystemColors.GradientActiveCaption;
this.grdAuditDetails.ShowGroupPanel = false;
this.grdAuditDetails.Size = new System.Drawing.Size(791, 590);
this.grdAuditDetails.TabIndex = 94;
this.grdAuditDetails.TabStop = false;
this.grdAuditDetails.Text = "radGridViewPreview";
this.grdAuditDetails.ThemeName = "Breeze";
((Telerik.WinControls.UI.
GridTableElement)(this.grdAuditDetails.GetChildAt(0))).CellSpacing = -1;
((Telerik.WinControls.UI.
GridTableElement)(this.grdAuditDetails.GetChildAt(0))).TableHeaderHeight = 26;
((Telerik.WinControls.UI.
GridTableElement)(this.grdAuditDetails.GetChildAt(0))).BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(246)))));
((Telerik.WinControls.UI.
GridTableElement)(this.grdAuditDetails.GetChildAt(0))).Padding = new System.Windows.Forms.Padding(3);
On the form, i can see the filter icons for the fields, but when the user speicifies how they want to filter and add their criteria, nothing happens. Can anyone please help me out with this issue?
Thanks!
Craig
Hi,
How to do i customize the back color of a particular Date in Day View or Weekly View by code.
Regards
Nitin