Telerik Forums
UI for WinForms Forum
4 answers
228 views

 

Sorry if this is a bad question but I want to configure the grid lines in the RadGridView. This Post https://www.telerik.com/forums/change-color-of-the-grid---radgridview says I have to use Visual Style Builder and edit the theme.... Do I really have to dig into this massive thing?! Thats a total overload...? All I want is to configure the grid lines?

Marco
Top achievements
Rank 1
 answered on 21 Sep 2018
4 answers
232 views

I'm trying to figure out how to create some padding inside the coordinate space of the chart. Things I have done:
Set categorical axis axisplotmode to OnTicksPadded
Increased Padding on Chart.View.Margins (this seems to be the padding between the chart itself and stuff outside the chart)

 

See the picture below for an example. Basically datapoints aren't fully displaying because the points are being cutoff because the last Y-axis Tick is literally at the same Y location as the top of the chart. I'd like to move it down a bit to give the datapoints some space. Essentially create extra space around the edges of the axes. I have one axes that's a categorical axis and one that's a linear axis.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2018
3 answers
151 views

Create BarSeries:

            _barModel = new BarSeries
            {
                ValueMember = "Model",
                CategoryMember = "N",
                LegendTitle = "Model",

     IsVisible = false
            };
            _radChartViewGss.Series.Add(_barModel);

Set data source (dataTable):

            _radChartViewGss.DataSource = _table;

After this, changing the property _barModel.IsVisible = true does not lead to anything - the bar series is not visible.

 

Why???

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2018
6 answers
350 views

Hi.

Probably an easy question, but trying for a while, searching in the doc and the forum, I could not find the solution.

When I use a legend in radchartview, it shows the items below each other (vertically). But I would like to show them next to each other (horizontally).

Among others, I tried:

 this.radChartView2.ChartElement.LegendElement.TextOrientation = Orientation.Horizontal;

or

 this.radChartView2.ChartElement.LegendElement.StackElement.TextOrientation = Orientation.Horizontal;

But it does not seem to work...

Thank you

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2018
2 answers
177 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
104 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
473 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
92 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
83 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
106 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
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?