I'm trying RadVirtualGrid with Hierarchy but when columns are resized, and needs to show scrollbar, height of child table element is not updated.
Is this a bug? Can I update it manualy?
Other issue I have noticed is: when child column header is wider than parent row, it is not longer resizable:
This is the code used in this examples:
public partial class Form1 : Form
{
private int parentRows = 4;
private int parentColumns = 4;
private int childRows = 2;
private int childColumns = 6;
public Form1()
{
InitializeComponent();
this.grid.CellValueNeeded += (s, e) =>
{
if (e.ViewInfo == this.grid.MasterViewInfo)
{
if (e.ColumnIndex < 0) return;
else if (e.RowIndex == RadVirtualGrid.HeaderRowIndex)
{
e.Value = "HEADER_" + e.ColumnIndex;
}
else if (e.RowIndex < 0)
{
e.Value = "FIELD_" + e.ColumnIndex;
}
else if (e.RowIndex >= 0 && e.RowIndex < parentRows)
{
e.Value = "Value (" + e.RowIndex + ";" + e.ColumnIndex + ")";
}
}
else
{
if (e.ColumnIndex < 0) return;
else if (e.RowIndex == RadVirtualGrid.HeaderRowIndex)
{
e.Value = "CHILD_HEADER_" + e.ColumnIndex;
}
else if (e.RowIndex < 0)
{
e.Value = "CHILD_FILED_ " + e.ColumnIndex;
}
else if (e.RowIndex >= 0 && e.RowIndex < childRows)
{
e.Value = "Child_Value (" + e.RowIndex + ";" + e.ColumnIndex + ")";
}
}
};
this.grid.QueryHasChildRows += (s, e) =>
{
e.HasChildRows = e.ViewInfo == this.grid.MasterViewInfo && e.RowIndex >= 0 && e.RowIndex < parentRows;
};
this.grid.RowExpanding += (s, e) =>
{
e.ChildViewInfo.ColumnCount = childColumns;
e.ChildViewInfo.RowCount = childRows;
};
this.grid.RowCount = parentRows;
this.grid.ColumnCount = parentColumns;
}
}
Hi there,
I´m switching for radgridview to radvirtualgrid but i´m having some problems in keeping some of the funcionalities i previously had.
1) Conditional Formatting is possible in virtual grid?
2) Enable grouping (https://docs.telerik.com/devtools/winforms/controls/gridview/grouping/setting-groups-programmatically) is also another funcionality that i would like to keep in my virtual grid but i can´t find anything online related to it.
Thanks in advance.
How to use multiple lines when editing cells?
https://www.telerik.com/forums/auto-row-height-with-multiline-cell
Although I refer to the above page, cells with multiple lines work normally, but cells with only one line do not display text in Edit-Mode.
private void gridTextData__CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
hi,
i want to use the radvirtualgrid to add a new row/record to a database but instead of using Tab button to switch between column i prefer to use the enter key.
is that possible, if yes can you give me a sample please ?
Thanks in advance
Hi guys,
I would like to use a VirtualGridDropDownListEditor in a table. That it cannot be set anyhow before the use starts editing a ceel is sad, but discussed in a different forum already.
What bothers me still is the size of the DropDown. I read everything - and that's almost nothing - online about the control. Weirdly it is not the default behaviour and not mentioned anywhere how to make it wide enough for all its content. Can I use another editor? Does that function honestly not exist?
By the way the MinSize setting even destroys the VirtualGridDropDownListEditor, so that you always select what is lying under them when clicking the list items.
Thank you in advance!
Hello everybody,
I have a usual radVirtualGrid then never raises the EditorRequired event. So I cannot put DropDownLists into the cells...
Do you have any idea how that can happen? As far as I've read, it should pretty much always raise.
The grid's VirtualGridViewInfo was set to not editable. But I tried withou all those properties and still doen'st work. The event handles is handling the event, 1x trie by adding it at runtime, 1x in the designer (and explicit code behind the declaration). Sorry, I have no screenshot here...
Thank you in advance!
Can the behaviour of column header cell be changed to the following one?
When there is no space to display the whole header text, the text shall be wrapped so that it spreads over 2 (or more) lines.
(Initially now the text is cut off and 3 dots are added at the end.)