Telerik Forums
UI for WinForms Forum
12 answers
249 views
Hi,

I am getting an error throw when I try to add the column names to the child and parent relations in a hierarchical gridview.  I am using your WINForms sample, except that I changed the datasource to Entity Framework 4 .edmx, and am using .Net 4.0 on a WIN7 OS.  I've attached 2 files, 'Form1' shows the results.  All works fine, except the child grids are not linked to the ContactID on the grid (the relationships are defines properly in the .edmx).  'Relations' shows the results I'm getting when I try to set them in the properties window.

Thanks

Steve
Pavel Pavlov
Telerik team
 answered on 11 Apr 2011
3 answers
171 views

Hello

Can anybody tell me how I can detect where the context menu is clicked, in particular I'm looking to detect a right click in the blank space below rows (see attached file.)

The following snippet stops the right clicking on the header, and allows right clicking on a row, but I can't seem to find out when the "whitespace" is clicked? - Any clues?

Many thanks

Terry

Private Sub RadGridView1_ContextMenuOpening(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles RadGridView1.ContextMenuOpening
  
          
        Dim i As Integer = 0
        Do While i < e.ContextMenu.Items.Count
            e.ContextMenu.Items.Clear()
            i += 1
        Loop
  
        If TypeOf e.ContextMenuProvider Is GridHeaderCellElement Then Exit Sub
  
          
        Dim customMenuItem1 As RadMenuItem = New RadMenuItem()
        Dim customMenuItem2 As RadMenuItem = New RadMenuItem()
        Dim customMenuItem3 As RadMenuItem = New RadMenuItem()
  
        customMenuItem1.Text = "Insert Company History"
        customMenuItem2.Text = "Remove Company History"
        customMenuItem3.Text = "Add/Edit Roles..."
  
          
            Dim separator As RadMenuSeparatorItem = New RadMenuSeparatorItem()
            e.ContextMenu.Items.Add(customMenuItem1)
            AddHandler e.ContextMenu.Items(0).Click, AddressOf RowInsert
            e.ContextMenu.Items.Add(customMenuItem2)
            AddHandler e.ContextMenu.Items(1).Click, AddressOf RowDelete
            e.ContextMenu.Items.Add(separator)
            e.ContextMenu.Items.Add(customMenuItem3)
  
        If RadGridView1.RowCount = 0 Then
            e.ContextMenu.Items(0).Visibility = ElementVisibility.Visible
            e.ContextMenu.Items(1).Visibility = ElementVisibility.Hidden
            e.ContextMenu.Items(2).Visibility = ElementVisibility.Hidden
        End If
  
    End Sub
Richard Slade
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
206 views
Hi,

I want to add the some Combobox,TextBox and Button on the DockTabStrip or Top of the ToolWindow of RadDock Control.
But i am not getting any way to do this.

And my anathor problem is that i rounded the shape of the e.DockWIndow with FIllPrimitive and BorderPrimitive properties that rounded
the upper portion of the ToolWindow but back portion of the control is looking odd/rectangle.

The Snap Shot of my problem with code over it is attached with this thread (dock.png).

Please review this problem as soon as possible.

 
private void radDock1_DockStateChanged_1(object sender, DockWindowEventArgs e)
        {
            try
            {
                e.DockWindow.Text = strCaption;
                FillPrimitive fill = (FillPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[0];
                BorderPrimitive border = (BorderPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[1];
                fill.AutoSize = false;
 
                fill.Size = new Size(e.DockWindow.Width, 35);
                
               border.Shape = this.toproundedshape;
                
            }
            catch (Exception)
            {
                throw;
            }
        }
Alexander
Telerik team
 answered on 11 Apr 2011
3 answers
87 views
Hi,

There is any way to add user controls or controls on the e.DockWindow.DockTabStrip or at tilebar of tool window.
Alexander
Telerik team
 answered on 11 Apr 2011
12 answers
192 views

Hello,

I have recently upgraded to "RadControls for WinForms Q2 2010 SP2" and since then, occasionally, I'm getting this exception:

AvlEnumerator:version mismatch

The relevant call stack is:

 at Telerik.Collections.Generic.AvlTree`1.Enumerator.CheckVersion()
 at Telerik.Collections.Generic.AvlTree`1.Enumerator.MoveNext()

What can be the problem? I couldn’t find documentation for it.

Thanks,

sco
Top achievements
Rank 1
 answered on 09 Apr 2011
2 answers
124 views
I've followed this tutorial for binding hierarchy data:

http://www.telerik.com/help/winforms/gridview-hierarchical-grid-tutorial-binding-to-hierarchical-data.html

The data is displaying properly, and the Parent level template works as it should. However, the child level template is not working at all. Whether I use the grid property builder or the template collections interface, I can not customize which columns are visible or change header names etc. It always shows every single column from the table adapter. I need to be able to use foreign keys which are invisible, not to mention renaming headers or resizing columns.

Thanks for the help.
Ryan
Top achievements
Rank 1
 answered on 08 Apr 2011
1 answer
92 views
Hi,
in my winforms application there is one form with many tabbed documents. At the moment I see only the first 3 or 4 tabbed documents. How I can reach any tabbed document at design time to customize the content?
Kind regards.
Christian
Stefan
Telerik team
 answered on 08 Apr 2011
1 answer
105 views
Can the PageView control be programmed to support multiple page heights. I've got a couple of pages that will be fixed content, but then several that will have grids, so their heights should be resizable. Is this possible? If so, please point to examples.
Thanks!
Alexander
Telerik team
 answered on 08 Apr 2011
1 answer
96 views
I require to have a grid drawn in the calendar. Or if every cell representing a day could haveits border ON will suffice as well. Kindly help. Regards.
Richard Slade
Top achievements
Rank 2
 answered on 08 Apr 2011
1 answer
63 views
Hi,
  When I sort one of the columns in the child template, the relation no longer holds good. So none of the master rows have child rows after a sort. The child template is build from

ColumnGroupsViewDefinition



Thanks
Deepak
Deepak
Top achievements
Rank 1
 answered on 08 Apr 2011
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?