
public class CustomGroupHeaderCell : GridGroupContentCellElement { public event EventHandler MeCheckChanged; private RadCheckBoxElement checkbox; public CustomGroupHeaderCell(GridViewColumn column, GridRowElement row) : base(column, row) { } protected override void CreateChildElements() { base.CreateChildElements(); checkbox = new RadCheckBoxElement(); checkbox.MinSize = new System.Drawing.Size(5, 5); checkbox.ToggleStateChanged += new StateChangedEventHandler(checkbox_ToggleStateChanged); Children.Insert(0,checkbox); ApplyThemeToElement(checkbox, "Bruder"); } private void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args) { if (MeCheckChanged != null) MeCheckChanged(this, null); } protected override System.Drawing.SizeF ArrangeOverride(System.Drawing.SizeF finalSize) { SizeF size = base.ArrangeOverride(finalSize); RectangleF rect = GetClientRectangle(finalSize); if (this.checkbox != null) this.checkbox.Arrange(new RectangleF(rect.Right - this.checkbox.DesiredSize.Width - 5, rect.Top + (rect.Height - this.checkbox.DesiredSize.Height) / 2, this.checkbox.DesiredSize.Width, this.checkbox.DesiredSize.Height)); return size; } private void ApplyThemeToElement(RadItem item, string themeName) { try { if (item.ElementTree == null) return; DefaultStyleBuilder builder = ThemeResolutionService.GetStyleSheetBuilder( (RadControl)item.ElementTree.Control, item.GetThemeEffectiveType().FullName, string.Empty, themeName) as DefaultStyleBuilder; if (builder != null) item.Style = builder.Style; } catch (Exception ex) { } } } }
Dear members,
i have 3 grids on 3 forms, but just one gridview is directly visible for the end user, because the other forms are on seperate monitors away from the pc users view.
What i want is, that a condtional rules that is defined for the main grid will be copied to the both others.
Is this supported and if not can i bind for example the rowbackcolor to a my.settings.value?
i have used
Dim obj = New ConditionalFormattingObject("MyCondition", ConditionTypes.Startswtih, "1 -", "", True)
obj.CellForeColor = Color.Red
obj.RowBackColor = my.settings.fcDIV1
Me.RadGridView1.Columns("Name").ConditionalFormattingObjectList.Add(obj)​
but i have gotten a null reference exception.
Kind regards
Martin

Hello,
is there a way to have the RadProgressbarElement show a gradient that only uses part of the defined color range depending on the actual progress (eg. at 50% only BackColor1->BackColor2, at 75% BackColor1->BackColor3, at 100% BackColor1->BackColor4)?
Kind regards,
Andreas


Hi guys.
Got some problems with the radgridview. I have a radgridview with some filters. If user filters the data i need to get row index for some updates. But for me row index is always -1 after filtering. Without filtering code works well.
private void grdDetay_CellEndEdit(object sender, GridViewCellEventArgs e)
{
var listId = 0;
var dtyid = 0;
GridViewRowInfo row = this.grdDetay.CurrentRow;
int rowIndex = row.Index;
listId = Convert.ToInt32(grdDetay.ChildRows[rowIndex].Cells[0].Value);
dtyid = Convert.ToInt32(grdDetay.ChildRows[rowIndex].Cells[1].Value);
}
​


Hi all, I've attached a png of my issue. The shart is inside a table cell, as you can see only half of the chart is visible, no idea why this is?

I don't understand why but if you place a RadTextBox or a RadTextBoxControl with a BackColorChanged event setup inside a RadPageView the BackColorChanged event is raised before the Form_Load method when you start the app without changing the BackColor of the RadTextBox. If you move the control outside the RadPageView the BackColorChanged event does not get raised which is the expected behavior.
I wonder if this is a known issue?
Any idea how to prevent the BackColorChanged event to get raised when the control is inside a RadPageView?
