Telerik Forums
UI for WinForms Forum
10 answers
244 views
Can anyone please help.. I have create multiple child hierarchical grid but i cant seem to see the fourth level and fifth level. I dont know if its the size of the child template is the problem or something else. Isn't the child template autoresized?

Here is a copy of my code, if the problem is not what i stated please tell me what i'm missing thanks!
 
if (list.Keys.Count > 0)
            {
                //Child Template
                GridViewTemplate template = new GridViewTemplate();
                template.AllowAddNewRow = false;
                template.Columns.Add(new GridViewTextBoxColumn("ParentID"));
                template.Columns.Add(new GridViewTextBoxColumn("ID"));
                template.Columns.Add(new GridViewTextBoxColumn("Key"));
                template.Columns.Add(new GridViewTextBoxColumn("Value"));
                parentTemplate.ChildGridViewTemplates.Add(template);
                //Relation
                GridViewRelation relation = new GridViewRelation(parentTemplate);
                relation.ChildTemplate = template;
                relation.ParentColumnNames.Add("ID");
                relation.ChildColumnNames.Add("ParentID");
                radGridView1.Relations.Add(relation);
                //Get Key and Value
                foreach (string str in list.Keys)
                {
                    GridViewTemplate newTemplate = parentTemplate.ChildGridViewTemplates[0];
                    newTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
                    childCtr = childCtr + 1;
                    string strCtr = parentID.ToString() + childCtr.ToString();

                    if (list.ValueIsList(str))
                    {                        
                        LogEntryPropertyList listChild = list.GetList(str);
                        newTemplate.Rows.Add(parentID, strCtr, str, null);
                        newTemplate.Columns[0].IsVisible = false;
                        newTemplate.Columns[1].IsVisible = false;
                        parseLogEntryList(listChild, newTemplate, ulong.Parse(strCtr));
                    }
                    if (list.ValueIsString(str))
                    {
                        newTemplate.Rows.Add(parentID, strCtr, str, list.GetString(str));
                        newTemplate.Columns[0].IsVisible = false;
                        newTemplate.Columns[1].IsVisible = false;
                    }
                }
            }
Jack
Telerik team
 answered on 17 Mar 2010
3 answers
615 views

Hello.

When I enable rows creation in RadGridView and click that tells "Click here to add new row" new item is being added to binding source. But then if click somewhere (without entering any text to the cell) this empty row is being added to grid view. How can I change this behavior? I want that new row to be added only after entering some text or pressing "Enter" button.

Thanks.

Martin Vasilev
Telerik team
 answered on 17 Mar 2010
2 answers
114 views
We developed an App with Q3 2009 SP1 and recently upgraded to Q1 2010 Beta.  The following line of code now produces an error:

If TypeOf (rgvEDs.CurrentRow) Is GridViewRowInfo Then   ' Ensure we have a data row, not a group or header


Error: GridViewRowInfo is not defined

Any idea?  I searched the Object Browser and the class doesn't seem to exist anymore?!

Jack
Telerik team
 answered on 17 Mar 2010
1 answer
154 views
Seems when you select the Desert Theme for RadDock for some reason the default document tab controls (like the X for close and the down pointing arrow for selecting a tab) are not visible. Furthermore, the control does not honor the desert theme properties displaying a blue color on the tab section. Any idea why is this happening? or how can one change the appearance of the RadDock control?

Thanks,

George
Nikolay
Telerik team
 answered on 16 Mar 2010
6 answers
305 views
I'm currently evaluating your product.

In the grid we are currently using, we use custom editor. These editor are controls and user control that we created and that we are using everywhere in the application. We would like to be able to use these same control in the RadGridView, but we can only use RadElement.

Is there a way to use our company control as editor in grid?

Is there plan to make an interface ex: IRadElement, that will make us possible to use any of our control in the grid.

Thank you for your reply.
Svett
Telerik team
 answered on 16 Mar 2010
5 answers
355 views
Hello -

I am nesting a RadComboBoxElement under a GridCellElement (in my actual code, I'm nesting a larger element tree of which one of the elements happens to be a combo box, which is why I cannot use a GridViewComboBoxColumn).  I've almost achieved the desired behavior.  Here are the three remaining issues:

1)  Why doesn't clicking on the combo box's arrow button cause the dropdown to open up?  Is the grid somehow intercepting this event?
3)  When the Tab key is pressed, the current grid cell gets updated, but the keyboard focus is not moved from one combo box to the next.  Can you tell me how to make tab work properly?
2)  Why doesn't clicking into the combo box's RadTextBoxElement cause the current grid row to be adjusted (note that clicking on the arrow button does adjust the current grid row)?  I believe the answer may be that the textbox is intercepting the mouse click even though I set RadComboBoxElement.NotifyParentOnMouseInput to true.  What is the suggested workaround?

Here is some simple code that reproduces the problem:

        void grid_CellFormatting(object sender, CellFormattingEventArgs e) 
        { 
            if (e.CellElement.Children.Count == 0) 
            { 
                var element = new RadComboBoxElement(); 
                element.NotifyParentOnMouseInput = true
                element.DataSource = new List<string>() { "First""Second""Third" }; 
                e.CellElement.Children.Add(element); 
            } 
        } 
 
        void Form1_Load(object sender, EventArgs e) 
        { 
            var grid = new RadGridView(); 
            Controls.Add(grid); 
            grid.BeginInit(); 
            grid.EndInit(); 
            grid.CellFormatting += new CellFormattingEventHandler(grid_CellFormatting); 
            grid.MasterGridViewTemplate.AutoGenerateColumns = false
            grid.Columns.Add(new GridViewDataColumn() { HeaderText = "Header" }); 
            grid.DataSource = new List<int> { 1, 2, 3 }; 
        } 

Thanks,
- Mike


Jack
Telerik team
 answered on 16 Mar 2010
2 answers
148 views
Hi,
I'm using the latest release with VS2008 and I code in VB

I'm searching how to set my RadGrid as a data source for my RadChart.
I don't use a data table, because I fill the RadGrid programaticly

How to do this ?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 16 Mar 2010
6 answers
267 views
Hi,

When we are assigning the theme (xml file)  for radgridview, we are getting the tooltip like Position:1.. (while scroling the vertical scroll). I need to remove this tool tip. So kindly let me know how to remove this tooltip. [Kindly refer the attached jpeg file]
Hristo
Telerik team
 answered on 15 Mar 2010
1 answer
93 views
Hi,

Unable to install Q1 2010 with Visual Studio 2010 RC Ultimate. See attached screen shots for the detail.

My OS : Windows XP Pro English
Dot Net Framework 4 installed with Visual Studio 2010 RC
Tried to install framework 3.5, does not fix anything.
Q3 2009 was installed and works fine.

Please, help,
Regards
guinux guinux
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
169 views
I am converting an old program (c++ MFC/Rogue Wave) to C#/Telerik. The old program gives users the options of deciding which columns of a data table to display at run-time. For my audience, the Column Chooser mechanism is too complicated for them to you, plus they are already used to a set of checkbox specifications in the setup routine.

So how can I, during form load event, choose which columns to display while still enjoy the automatic CRUD actions performed by databinding?

Bes6 wishes
Neal Campbell
Neal Campbell
Top achievements
Rank 1
 answered on 15 Mar 2010
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
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?