Hi Telerik,
RadGridView allowed (albeit didn't function neat enough) to add a set of columns under a viewdefinition in order to show them as grouped. Is there a proper way of achieving this in RadVirtualGrid? If the feature doesn't exist now, can you advise me on how to achieve this by additional GDI rendering ?
Thank you,
Saj.
4 Answers, 1 is accepted
Thank you for writing.
Currently, RadVirtualGrid doesn't support view definitions. However, we already have a similar request logged in our feedback portal and I have added a vote for it on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
Due to the complexity of the feature and the specific layout, we are unable to suggest a suitable workaround.
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik by Progress
Hello Dess
Can I display Row Header (it means show row index in rad Virtual Grid View (in list) ) for every row?
1
2
3
4
5
....
thank you in advance
Hello, Aseman,
The following help article demonstrates how to show row numbers in RadGridView: https://docs.telerik.com/devtools/winforms/controls/gridview/cells/formating-examples/row-numbers
In a similar way it can be achieved for RadVirtualGrid:
public RadForm1()
{
InitializeComponent();
this.radVirtualGrid1.RowCount = 100;
this.radVirtualGrid1.ColumnCount = 5;
this.radVirtualGrid1.CellValueNeeded += radVirtualGrid1_CellValueNeeded;
this.radVirtualGrid1.CellFormatting += radVirtualGrid1_CellFormatting;
}
private void radVirtualGrid1_CellFormatting(object sender, VirtualGridCellElementEventArgs e)
{
if (e.CellElement.RowIndex > -1 && e.CellElement.ColumnIndex < 0)
{
e.CellElement.DrawText = true;
e.CellElement.Text = e.CellElement.RowIndex.ToString() ;
}
}
private void radVirtualGrid1_CellValueNeeded(object sender, VirtualGridCellValueNeededEventArgs e)
{
e.Value = "Data" + e.RowIndex + e.ColumnIndex;
}
I would kindly ask you to open a separate thread with the appropriate Product (RadGridView for WinForms) and to avoid mixing different subjects in the same thread in future. This will also give you the opportunity to track the different cases easily in your account.
Thank you for your understanding.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik