Telerik Forums
UI for WinForms Forum
1 answer
18 views

I'm trying RadVirtualGrid with Hierarchy but when columns are resized, and needs to show scrollbar, height of child table element is not updated.

 

Example

 

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:

Example 2

 

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;
        }
    }

 

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Dec 2023
1 answer
75 views

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.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Apr 2022
1 answer
193 views

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)
        {
            var textediter = e.ActiveEditor as VirtualGridTextBoxEditor;
            if (textediter != null)
            {
                textediter.Multiline = true;
            }

        }

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2021
2 answers
113 views
Hello

please can you send me a sample to illustrate how to use radvirtualgrid to add a new row with an enter key to move to next column in vb.net
thank you
Nadya | Tech Support Engineer
Telerik team
 answered on 02 Jul 2021
2 answers
110 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Jun 2021
8 answers
46 views

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!

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Dec 2020
4 answers
57 views
The documentation makes no mention of a footer in a virtual grid.  Is it possible to put lets's say a label or some other control under the grid - to give a record count after filtering, for example.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Nov 2020
1 answer
59 views

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!

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Oct 2020
1 answer
83 views
Hi, how can I hide the column of row headers in a VirtualGrid?
Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
1 answer
87 views

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.)

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
RichTextEditor
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Barcode
Styling
ColorBox
PictureBox
Callout
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?