Telerik Forums
UI for WinForms Forum
4 answers
324 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
366 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
249 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
487 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
257 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
184 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
631 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
188 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
135 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
197 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?