Telerik Forums
UI for WinForms Forum
0 answers
6 views

Hi 

I have a RadGridView and after updating a cell value I save the scroll (horizontal and vertical) values to set the same position after a refresh.

The problem: when I update a cell, after setting the same values for the horizontal and vertical scrolls, the current cell is placed to the right corner of the grid (image 2). Even if the scroll values are set correctly.

Img1: before changing a cell value

Img2: when the value has changed and the scroll values are set as they were. 

 

Thanks in advanced

Álvaro
Top achievements
Rank 1
Iron
Iron
 asked on 23 May 2024
1 answer
39 views

Hi all,

Within controls such a RadGridView, is there a simple way like a property to mark a column as able to decrease  or increase its width when the scrollbar is displayed or hidden, so that the set of columns would always fill all the parent control width without either overwritting the last column right part when the vertical scroolbar is shown or having to  show some unused reserved space when the scrollbar is hidden. 

I understand that it is always possible to use events to manually adjust each width for each control, but this is very cumbersome.

Wouldn't it nice to have a control overall property such as (hypothetically)  gridview.AdjustColumnWidthToScrollBarDisplay ?

Or what is the simplest method ?

Thanks for your answers

Patrick

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2023
1 answer
94 views

I have many Collapsible Panels in my Scrollable Panel, what I need it to do, is if the user expands a panel, I need that panel to scroll to the top of the scrollable panel.   Is there a way to pragmatically do this?

 

TIA.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Jun 2023
2 answers
140 views

I have a project where the user wants a multi tab control on a WinForm - no problem.

On the first tab however, they want too many controls to fit on the screen, Therefore they want the first tab's RadPageViewPage to scroll up and down. They do not want a sub tab. The problem is that there are so many controls that if they were separate tab they would fill four of them. I realize that scrolling is not the point of a tab control but this is what they want. Still, there are limits to the size of a Form and the size of the RadPageViewPage control.

Is this something that can realistically be done or is this just asking for too much?

Thanks

Carl

 

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 07 Mar 2023
1 answer
428 views
Whenever a sort filter is applied to my radgridview, it holds the selectedItem and scrolls to it further down in the list.  How to I programatically scroll to the top or disable this from jumping to the selected item? (Sorting is pre-set in the UI component, not programmatic)

Thanks!
Maria
Telerik team
 answered on 02 Sep 2022
1 answer
65 views

I have a winform, that extends pretty far below the actual size of the screen.  I have AutoScroll set to true. I can see the scroll bar in the designer, but can not move it so I can get to controls are that are off the screen.  I am not sure what I can do here. At this time, i can't not create a reproducible sample app of this happening.  I am hoping someone has seen this before and had a possible fix for this.

 

Thank You.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Mar 2022
1 answer
52 views

As title. Followed as my code and screen shot as attachment.

public partial class Form3 : Form
{
    public Form3()
    {
        this.InitializeComponent();
 
        this.label1.Text = this.radHScrollBar1.Minimum.ToString();
        this.label2.Text = this.radHScrollBar1.Maximum.ToString();
    }
 
    private void button1_Click(object sender, System.EventArgs e)
    {
        this.textBox1.Text = this.radHScrollBar1.Value.ToString();
    }
}
Nadya | Tech Support Engineer
Telerik team
 answered on 06 Jan 2021
4 answers
146 views

Hello, I want to find answer about scrollbar.

When item's height in RadTreeView is altered,

scrollbar's Maximum value is untrue.

So, scrolling for find last node is impossible.

Thank you.

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jun 2020
1 answer
49 views

I cannot make same width for first and second buttons and thumb. There is always right margins in the buttons. The below is my coding:
            this.PanelElement.Fill.BackColor = Color.Transparent;
            this.PanelElement.Fill.GradientStyle = GradientStyles.Solid;
            this.RootElement.BackColor = Color.Transparent;
            this.RootElement.ForeColor = Color.Transparent;
            ((FillPrimitive)this.VerticalScrollbar.ScrollBarElement.Children[1]).GradientStyle = GradientStyles.Solid;
            ((FillPrimitive)this.VerticalScrollbar.ScrollBarElement.Children[1]).BackColor = FXStyle.ColorForKey("ScrollBarBackColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.FitToSizeMode = RadFitToSizeMode.FitToParentContent;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonFill.GradientStyle = GradientStyles.Solid;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonFill.BackColor = FXStyle.ColorForKey("ScrollBarButtonBackColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ArrowPrimitive.ForeColor = FXStyle.ColorForKey("ScrollBarButtonArrowBackColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.BoxStyle = BorderBoxStyle.FourBorders;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.LeftColor = FXStyle.ColorForKey("ScrollBarButtonLeftTopBorderColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.LeftShadowColor = FXStyle.ColorForKey("ScrollBarButtonLeftTopBorderColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.LeftWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.TopColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.TopShadowColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.TopWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.RightColor = FXStyle.ColorForKey("ScrollBarButtonRightBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.RightShadowColor = FXStyle.ColorForKey("ScrollBarButtonRightBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.RightWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.BottomColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.BottomShadowColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.FirstButton.ButtonBorder.BottomWidth = 1;

            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.FitToSizeMode = RadFitToSizeMode.FitToParentContent;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonFill.GradientStyle = GradientStyles.Solid;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonFill.BackColor = FXStyle.ColorForKey("ScrollBarButtonBackColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ArrowPrimitive.ForeColor = FXStyle.ColorForKey("ScrollBarButtonArrowBackColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.BoxStyle = BorderBoxStyle.FourBorders;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.LeftColor = FXStyle.ColorForKey("ScrollBarButtonLeftTopBorderColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.LeftShadowColor = FXStyle.ColorForKey("ScrollBarButtonLeftTopBorderColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.LeftWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.TopColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.TopShadowColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.TopWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.RightColor = FXStyle.ColorForKey("ScrollBarButtonRightBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.RightShadowColor = FXStyle.ColorForKey("ScrollBarButtonRightBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.RightWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.BottomColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.BottomShadowColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.SecondButton.ButtonBorder.BottomWidth = 1;

            this.VerticalScrollbar.ScrollBarElement.ThumbElement.GripImage = null;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbFill.GradientStyle = GradientStyles.Solid;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbFill.BackColor = FXStyle.ColorForKey("ScrollBarThumbBackColor");
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.PaintUsingParentShape = false;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.BoxStyle = BorderBoxStyle.FourBorders;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.LeftColor = FXStyle.ColorForKey("ScrollBarThumbRightBorderColor");
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.LeftShadowColor = FXStyle.ColorForKey("ScrollBarThumbRightBorderColor");
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.LeftWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.TopColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.TopShadowColor = Color.Red;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.TopWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.RightColor = FXStyle.ColorForKey("ScrollBarThumbLeftTopBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.RightShadowColor = FXStyle.ColorForKey("ScrollBarThumbLeftTopBottomBorderColor");
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.RightWidth = 1;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.BottomColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.BottomShadowColor = Color.Yellow;
            this.VerticalScrollbar.ScrollBarElement.ThumbElement.ThumbBorder.BottomWidth = 1;

Please help to fix it. Thank you!

Hristo
Telerik team
 answered on 07 Dec 2015
3 answers
87 views
Hi guys,

I am trying to do a few style changes to the scrollbar. I've attatched an image of how it looks currently.

1) There is a border on the whole left hand side of the control. I can't find anywhere in the element editor. Please can someone let me know which property I need to change to hide this?

2) You will notice I have take away the arrows. I want the scrollbar to not have arrows. But the area in which the arrows sit is still visible, can I remove this extra space?

Many thanks,

J
George
Telerik team
 answered on 26 Mar 2014
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
Buttons, RadioButton, CheckBox, etc
DropDownList
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
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
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
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?