Telerik Forums
UI for WinForms Forum
5 answers
127 views

 The following code works:

 view.ColumnGroups.Add(new GridViewColumnGroup("AutoPOD"));
            view.ColumnGroups.Add(new GridViewColumnGroup("Addresses"));
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());
           

 Is there a way to replace it with something like this, short of using variables:

 view.ColumnGroups.Add(new GridViewColumnGroup("AutoPOD"));
            view.ColumnGroups.Add(new GridViewColumnGroup("Addresses"));
            view.ColumnGroups["autoPOD"].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups["Addresses"].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());

We have a lot of groups and having the name right there would help code readability a lot.

 

Thanks,

 

Joe

Stefan
Telerik team
 answered on 17 Feb 2016
4 answers
140 views

Hi All

I have implemented the gantview in a test winforms application, and I am just wondering if someone can assist me.

On the View, I drag a Task (Child) Item, and thus changes the start or end date.

Now a very Basic need, is that the Summary (Parent) gets updated too.

Here is a toned down version:

void radGanttView1_SelectedItemChanged(object sender, GanttViewSelectedItemChangedEventArgs e)
{
    try
    {
             if (e.Item.End > e.Item.Parent.End)
             {    
                    e.Item.Parent.End = e.Item.End;

            } 

           if (e.Item.Start < e.Item.Parent.Start)
          {
              e.Item.Parent.Start = e.Item.Start;
         }
     }
   catch { }
}

(View1)

Now this "WORKS" in the sense that if I click off the selected child (View2) , and then back on to it, the  Summary does update (View3), but I need it to be immediately

 

Regards

 

Marius

 

 

 

Marius
Top achievements
Rank 1
 answered on 17 Feb 2016
0 answers
139 views

Hello All...

I need help about MCCB...

Why the data always change to blank after i click new button or edit button 

hope attached picture help to explain the problem 

 Here the code i write on Form_load 

ds = New DataSet("Daftar")
 
        Tblanggota = ds.Tables.Add("Anggota")
        With Tblanggota
            .Columns.Add("KODE", GetType(String))
            .Columns.Add("NAMA", GetType(String))
        End With
        'fill TblAnggota
 
        Using conn As New OleDbConnection(str)
            conn.Open()
            Using cmd = conn.CreateCommand()
                'mengisikan data Anggota.
                Dim query = <sql>
                                 SELECT KodeAnggota as KODE, NamaAnggota as NAMA FROM MstAnggota ORDER BY KodeAnggota
                             </sql>.Value()
                cmd.CommandText = query
                Dim adapter = New OleDbDataAdapter(cmd)
                adapter.SelectCommand = cmd
                Tblanggota.Rows.Add(New Object() {"", ""})
                adapter.Fill(Tblanggota)
            End Using
            With CmbAnggota
                .DataSource = Tblanggota
                '.SelectedValue = ""
                .AutoSizeDropDownToBestFit = True
                .BestFitColumns()
                .AutoFilter = True
                .DisplayMember = "KODE"
                .ValueMember = "KODE"
                .Text = ""
                TxtNamaAnggota.Text = ""
 
                'Dim filter As New FilterDescriptor()
                'filter.PropertyName = Me.CmbAnggota.DisplayMember
                'filter.[Operator] = FilterOperator.Contains
                'Me.CmbAnggota.EditorControl.MasterTemplate.FilterDescriptors.Add(filter)
                'CmbAnggota.MultiColumnComboBoxElement.EditorControl.EnableCustomFiltering = True
 
                'AddHandler CmbAnggota.MultiColumnComboBoxElement.EditorControl.CustomFiltering, AddressOf CmbAnggota_CustomFiltering
                'AddHandler CmbAnggota.KeyDown, AddressOf CmbAnggota_KeyDown
 
 
            End With
 
            conn.Close()
        End Using
 
        TxtNamaAnggota.DataBindings.Add("Text", Tblanggota, "NAMA")

I have tried to move the code on button_click event. but the i got the same result.

 

Thanks before

Hengky
Top achievements
Rank 1
Veteran
 asked on 17 Feb 2016
1 answer
88 views

Hi, I got an issue with the RadMaskedEditBox with standard phone mask (999) 000-0000. It works well when we enter only digits, but when we hit the keys like 123123-1234, the '-' skips the next character so I got text like this "(123) 123-_123". I'm not really familiar with telerik controls and I tried to find some way to avoid this without success. So is there a property or something else to avoid this problem or is there a real issue with the control itself. 

Thank you very much. 

Dimitar
Telerik team
 answered on 15 Feb 2016
1 answer
236 views

Hi Support,

I change my export to excel function to be able to have xlsx format instead of xls. So I change my ExportToExcelML to use GridViewSpreadExport function.

Everything works properly except the group column start in column B instead of column A. My users prefer when the data start in column A. You can see the difference between the old and the new format.

Is it possible that the group column start in column A like it was before?

Regards,

Nadia

Dimitar
Telerik team
 answered on 15 Feb 2016
3 answers
154 views

Hopefully the attached screenshot will show the issue I am having.  It is intermittent but when I start typing on a multicolumn within a grid (and I think I have seen this with the stand alone multicolumn as well), the drop down pops but the scroll bar is initialized at the bottom of the list.  When this occurs, I am also unable to use my up/down arrow keys to navigate the drop down list so it is quite annoying.

 

This is on 2016 Q1.

Dimitar
Telerik team
 answered on 12 Feb 2016
1 answer
146 views

Hello,

1. I added a grouping expression to my RadGridView, but the GridViewCheckBoxColumns no longer automatically become checked when all of the child rows in each group for that column are checked. How can I regain this functionality?

2. Also, is it possible to add header checkboxes that only apply to the groups? I have my GridViewCheckBoxColumns that apply to the entire column, but what if I just want to check/uncheck all the rows in a particular group?

Thanks!

Hristo
Telerik team
 answered on 11 Feb 2016
11 answers
1.1K+ views

I have a radgridview that is databound to a llblgen entity collection (implements IListSource) . One property of the actual databound object (entity) is a nulalble int. This property is set by a GridViewComboBoxColumn. When a new entity is added to the llblgen entity collection after the llblgen entity collection is databound to the radgridview the new row is automatically added to the radgridview but when the user changes the nullable property a NullReferenceException occurs:

       bij Telerik.WinControls.UI.GridDataCellElement.SetContentCore(Object value)
       bij Telerik.WinControls.UI.GridDataCellElement.SetContent()
       bij Telerik.WinControls.UI.GridTableElement.InvalidateRow(GridViewRowInfo rowInfo)
       bij Telerik.WinControls.UI.GridViewRowInfo.InvalidateRow()
      bij Telerik.WinControls.UI.RadGridView.OnLostFocus(EventArgs e)
       bij System.Windows.Forms.Control.WndProc(Message& m)
       bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       bij Telerik.WinControls.RadControl.WndProc(Message& m)
       bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bij System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(HandleRef hWnd)
       bij System.Windows.Forms.UnsafeNativeMethods.DestroyWindow(HandleRef hWnd)
       bij System.Windows.Forms.NativeWindow.DestroyHandle()
       bij System.Windows.Forms.Control.DestroyHandle()
       bij System.Windows.Forms.Control.Dispose(Boolean disposing)
       bij System.Windows.Forms.Form.Dispose(Boolean disposing)
       bij Bouwfonds.GEMS.GUI.WF.uiHoofdFrm.Dispose(Boolean disposing)
       bij System.ComponentModel.Component.Dispose()
       bij System.Windows.Forms.ApplicationContext.Dispose(Boolean disposing)
       bij System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows()

Any idea’s?

Many tanx in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Feb 2016
1 answer
158 views

Good day all

 

I just started playing around with the GantView in an existing Winforms application.

In general All seems to be working nicely, but I have 1 serious issue I cannot seem to get around.

 

On the context menu, when I am over a link, and select delete, It deletes the Parent/Child/sibling item. I have checked the forums and googled it , but can not find a way so far to simply just delete the link, and not any items.

 

Any links/samples/advice on how this can be achieved would be appreciated.

 

Regards

 

Marius

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Feb 2016
2 answers
169 views

Hello 

I would like to remove the top and bottom border of each ribbon group at run time for a cleaner look. Have tried this in the form constructor with no success. Any ideas?

Dim myRibbonBarTab As RibbonTab = CType(Me.RadRibbonBar1.CommandTabs(0), RibbonTab)

For Each group As RadRibbonBarGroup In myRibbonBarTab.Items
        group.GroupBorder.BoxStyle = BorderBoxStyle.FourBorders
        group.GroupBorder.TopWidth = 0
        group.GroupBorder.BottomWidth = 0
Next

 

Thanks for any tips that point me in the right direction.

Robert

 

 

 

Robert
Top achievements
Rank 1
Iron
 answered on 11 Feb 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?