Telerik Forums
UI for WinForms Forum
2 answers
205 views
 I'm opening the sub forms in panel on the main form. The cursor is not moving to mouse position in text boxes

This is the code to open the sub form in a panel on the main form :
Public Shared Sub ShowForm(form As RadForm, Optional FormType As Integer = 0)

        Dim i As Integer
        form.TopLevel = False
        frmMainMenu.rdpnlchild.Controls.Add(form)
        form.BringToFront()
        If FormType = 0 Then
            form.Show()
        ElseIf FormType = 1 Then
            form.ShowDialog()
        End If

    End Sub
TAMILARASAN
Top achievements
Rank 1
 answered on 21 Sep 2018
2 answers
137 views
In the page view (tabs) by default only the active tab is highlighted but the other tabs are shown as words with no separators & borders. I need to show the page view with separator & need borders for individual tabs.
Please check the attached image.
TAMILARASAN
Top achievements
Rank 1
 answered on 21 Sep 2018
2 answers
537 views
Hello,
My client wants to filter integers column by contain operator . How can i add contain filter operator on integer column ?
Pham
Top achievements
Rank 1
 answered on 21 Sep 2018
0 answers
130 views

Hey, is there a way to change the popup location of RadDropDownButton? I'm currently trying to put it over the button and at the right side. See screenshot to know what I mean. It's is not showing correctly because the edge of the screen. 

I've tried setting the popup bound but it don't work

btnOpcoesTela.DropDownButtonElement.DropDownMenu.PopupOpened += DropDownMenu_PopupOpened;
private void DropDownMenu_PopupOpened(object sender, EventArgs args)
        {
            var popup = sender as RadDropDownButtonPopup;
             
            popup.SetBounds(10, 5, popup.Width, popup.Height);
             
        }
Leandro
Top achievements
Rank 1
 asked on 20 Sep 2018
2 answers
102 views

I want to create a RadGridViewwhich allow the user to enter the multiple materials just click on add material 

as well as after list of material adds, we can add the multiple labours also 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2018
0 answers
137 views

I have this code modified from example for moving rows between grids:

 

GridDataRowBehavior:

public class RowSelectionGridBehavior : GridDataRowBehavior
{
    private List<GridViewRowInfo> selectedRows = new List<GridViewRowInfo>();
    protected override bool OnMouseDownLeft(MouseEventArgs e)
    {
        GridDataRowElement row = this.GetRowAtPoint(e.Location) as GridDataRowElement;
        if (row != null)
        {
            RadGridViewDragDropService svc = this.GridViewElement.GetService<RadGridViewDragDropService>();
            svc.AllowAutoScrollColumnsWhileDragging = true;
            svc.AllowAutoScrollRowsWhileDragging = true;
            svc.Start(row);
        }
        return base.OnMouseDownLeft(e);
    }
}

My extension of RadGridView

public delegate void MovingItemsEvent(List<GridViewRowInfo> rows, object source, object target);
public event MovingItemsEvent MovingItems;
//THIS IS THE PART I DON'T LIKE
private void ExtendedGrid_MouseDown(object sender, MouseEventArgs e)
{
    if (e.Button == System.Windows.Forms.MouseButtons.Left && EnableDragnDrop)
    {
        GridGroupContentCellElement row = this.ElementTree.GetElementAtPoint(e.Location) as GridGroupContentCellElement;
        if (row != null)
        {
            RadGridViewDragDropService svc = this.GridViewElement.GetService<RadGridViewDragDropService>();
            svc.AllowAutoScrollColumnsWhileDragging = true;
            svc.AllowAutoScrollRowsWhileDragging = true;
            svc.Start(row);
        }
    }
}
private bool _EnableDragnDrop;
[BrowsableAttribute(true)]
public bool EnableDragnDrop
{
    get { return this._EnableDragnDrop; }
    set
    {
        _EnableDragnDrop = value;
        if (value)
        {
            //register the custom row selection behavior
            var gridBehavior = this.GridBehavior as BaseGridBehavior;
            gridBehavior.UnregisterBehavior(typeof(GridViewDataRowInfo));
            //gridBehavior.UnlockBehavior(typeof(GridGroupContentCellElement));
            gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new RowSelectionGridBehavior());
        }
    }
}
private void svc_PreviewDragStart(object sender, PreviewDragStartEventArgs e)
{
    if (EnableDragnDrop)
        e.CanStart = true;
}
private void svc_PreviewDragOver(object sender, RadDragOverEventArgs e)
{
    if (EnableDragnDrop)
        e.CanDrop = true;
}
private void svc_PreviewDragDrop(object sender, RadDropEventArgs e)
{
    if (EnableDragnDrop)
    {
        var dropTarget = e.HitTarget as RadItem;
        var targetGrid = dropTarget.ElementTree.Control as RadGridView;
        //append dragged rows to the end of the target grid
        
        List<GridViewRowInfo> rows = new List<GridViewRowInfo>();
        if (e.DragInstance is GridGroupContentCellElement)
        {
            e.Handled = true;
            GridGroupContentCellElement group = e.DragInstance as GridGroupContentCellElement;
            foreach (var row in group.ViewInfo.CurrentRow.ChildRows)
            {
                rows.Add(row);
            }
            this.MoveRows(targetGrid, rows);
        }
        else if (e.DragInstance is GridDataRowElement)
        {
            e.Handled = true;
            foreach (var row in this.SelectedRows)
            {
                rows.Add(row);
            }
            this.MoveRows(targetGrid, rows);
        }
    }
}
private void MoveRows(RadGridView targetGrid, List<GridViewRowInfo> dragRows)
{
    this.BeginUpdate();
    targetGrid.BeginUpdate();
    if (MovingItems != null)
    {
        MovingItems(dragRows, this, targetGrid);
    }
    this.EndUpdate(true);
    targetGrid.EndUpdate(true);
}

 

This works fine without any problem, but I would like if ther is a better way to allow Grouped rows to be dragged, like for example registering a GridBehavior like in the case of ordinary rows

 

Vicent
Top achievements
Rank 1
Iron
 asked on 20 Sep 2018
4 answers
315 views
Hi all,In my winForm program, I made some GridView columns programmatically. and after adding them to GridView
I tried to make just some headers in a group view style. the problem  is when I apply this view changes, the gridview don't load 
other columns which haven't been grouped.
the code I used to change the view is  in below and notice I wrote them after adding columns to DGV. Thanks in advance
...
//adding 8 columns to DGV programmatically
....
//make just 6 column in a group format
ColumnGroupsViewDefinition view = new ColumnGroupsViewDefinition();
            dataGridView1.ViewDefinition = view;
            view.ColumnGroups.Add(new GridViewColumnGroup("morning));
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows[0].Columns.Add(this.dataGridView1.Columns["MrnngEnt"]);
            view.ColumnGroups[1].Rows[0].Columns.Add(this.dataGridView1.Columns["MrnngExit"]);
            view.ColumnGroups.Add(new GridViewColumnGroup("evnng"));
            view.ColumnGroups[2].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[2].Rows[0].Columns.Add(this.dataGridView1.Columns["EvnngEnt"]);
            view.ColumnGroups[2].Rows[0].Columns.Add(this.dataGridView1.Columns["EvnngExit"]);
            view.ColumnGroups.Add(new GridViewColumnGroup("over"));
            view.ColumnGroups[3].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[3].Rows[0].Columns.Add(this.dataGridView1.Columns["OvrEnt"]);
            view.ColumnGroups[3].Rows[0].Columns.Add(this.dataGridView1.Columns["OvrExit"]);       
        }
Tofan
Top achievements
Rank 1
 answered on 20 Sep 2018
2 answers
105 views

Hello,

 

I have defined my own GroupBox, that inherits the RadGroupBox.

If I apply a Theme, nothing happend.

Button, MaskedEditBox, CheckBox etc. works fine, but not the GroupBox.

Is this an known issue?

 

Regards

Marc
Top achievements
Rank 1
Veteran
 answered on 20 Sep 2018
3 answers
536 views

First, I'm new to Telerik Controls.

I'm trying to show a simple hierarchical class (some Properties and a List<T> with sub entries) in a RadGridView. I figured out I can use "AutoGenerateHierarchy" which works so far. But I'm having a real hard time to make it look how I need it. Especially for the sub entries. What ever I change in the Property Builder on "Template1" doesn't seem to have any effect. Also does it display a + even if the entry doesn't have sub entries.

I would appreciated if you could help me out with this...

Marco
Top achievements
Rank 1
 answered on 19 Sep 2018
1 answer
708 views

Greetings,

I want the RadTimePicker to show only Time value , not date. How to do that ?

 

Thanks


Hristo
Telerik team
 answered on 19 Sep 2018
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?