Telerik Forums
UI for WinForms Forum
2 answers
137 views

hi

why does the column width not fit automatically when adding or deleting a row ?

when loading, it works.

 

 

       private void DgvTaskRunningLoad() {
            using (this.dgvTaskRunning.DeferRefresh()) {
                dgvTaskRunning.DataSource = Sql.Dashboard_listTaskRunning();

                // layout
                dgvTaskRunning.ShowGroupPanel = false;
                dgvTaskRunning.ReadOnly = true;
                dgvTaskRunning.ShowRowHeaderColumn = false;
                dgvTaskRunning.AutoScroll = true;
                dgvTaskRunning.MasterTemplate.AutoGenerateColumns = true;
                dgvTaskRunning.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
                dgvTaskRunning.BestFitColumns(BestFitColumnMode.AllCells);

                // grid
                dgvTaskRunning.Padding = new Padding(10);

                // cell
                dgvTaskRunning.TableElement.CellSpacing = 3;

                // column
                foreach (var col in dgvTaskRunning.Columns) {
                    col.IsVisible = false;
                }

                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.subject].HeaderText = @"Task";
                dgvTaskRunning.Columns[ColumnTitle.GridOverviewTimestamp.dashboardUser].HeaderText = $@"User";
                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.reference].HeaderText = $@"Reference";
                dgvTaskRunning.Columns[ColumnTitle.GridCostAccount.costAccount].HeaderText = $@"CostAccount";
                dgvTaskRunning.Columns[ColumnTitle.GridTaskTimestamp.timestampStart].HeaderText = $@"Start";
                dgvTaskRunning.Columns[ColumnTitle.GridOverviewTimestamp.hoursWorked].HeaderText = $@"hours worked";
                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.description].HeaderText = $@"Description";

                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.reference].TextAlignment = ContentAlignment.MiddleCenter;
                dgvTaskRunning.Columns[ColumnTitle.GridCostAccount.costAccount].TextAlignment = ContentAlignment.MiddleCenter;
                dgvTaskRunning.Columns[ColumnTitle.GridOverviewTimestamp.hoursWorked].TextAlignment = ContentAlignment.MiddleCenter;

                // visibility
                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.subject].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridOverviewTimestamp.dashboardUser].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.reference].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridCostAccount.costAccount].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridTaskTimestamp.timestampStart].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridOverviewTimestamp.hoursWorked].IsVisible = true;
                dgvTaskRunning.Columns[ColumnTitle.GridTasklistMail.description].IsVisible = true;

                // filtering
                dgvTaskRunning.EnableFiltering = true;
                dgvTaskRunning.ShowFilteringRow = false;
                dgvTaskRunning.ShowHeaderCellButtons = true;
            }
        }

Andre
Top achievements
Rank 1
 answered on 17 Apr 2018
1 answer
135 views

     I'm trying to download Telerik_UI_For_WinForms_2016_3_913_Dev.msi but I'm not able to find it on my Account Downloads. Where can I get to the previous version installers to download them?

 

Brandon
Telerik team
 answered on 17 Apr 2018
4 answers
370 views

Is there anyway to rotate the polar chart so that it starts with 0 at the top of the graph instead of 0 being at the right? 

Cheers

Dan

Daniel
Top achievements
Rank 1
 answered on 17 Apr 2018
1 answer
260 views

Hello!

I have a ListControl which can contain a lot of DescriptionTextListDataItem (even millions).

Every item could be customized with a different Icon or color.

Obviusly if I try to create all these items all together the process hangs forever.

What I'm trying to do is to show the first 100 elements and, when the user scroll to the end of the list, the next 100 elements are dinamically inserted into the list.

First question: is this reasonable or there's already a baked in way to do such a thing?

I've seen that there is a ScrollEventType.Last that could be useful to understand when the user scrolled down to the end, but... the "Scroll" event on the ListControl is never fired.

Is this an issue or am I missing something?

Thank you!

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2018
1 answer
105 views

Dear supporters,

I have 2 problems that when i click to the disabled field (textbox) , I have to press tab key twice to get to the first enable field. How can I press one time at the disable field (textbox )and the Cursor move to the first enable field?

Secondly, how can I move to the next enable field when click to disabled field ( textbox ), I dont want the Cursor move to the first enable field.

Thanks & Regards

Carlsen

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2018
1 answer
68 views
i donot have decimal column how to use thousand separator for specific column.
Dimitar
Telerik team
 answered on 17 Apr 2018
1 answer
237 views

i'm using the theme controldefaut . In ribbonbar and office 2007 app menu there is a blue rounded button in start menu. On mouse over it change color to orange.

Is it color or image change? 

I like to make it red when i click a button.

Thanks for help

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2018
2 answers
170 views

I am working on the Bug Tracker sample and am getting this error when I try to run the program;

System.ArgumentOutOfRangeException: 'Index was out of range.

Must be a non-negative and less than size of the collection.

Parameter name index'

Below is the offending code. I am not seeing what is wrong with this;

private void ReadOnlyControls(bool readOnly)
{
    titleTextBox.ReadOnly = readOnly;
    idSpinEditor.ReadOnly = readOnly;
    descriptionTextBox.ReadOnly = readOnly;
    stepsToReproduceTextBox.ReadOnly = readOnly;
    idSpinEditor.ShowUpDownButtons = !readOnly;
 
    dateDateTimePicker.DateTimePickerElement.TextBoxElement.TextBoxItem.ReadOnly = readOnly;
    RadDateTimePickerArrowButtonElement arrowButton = dateDateTimePicker.DateTimePickerElement.Children[1].Children[1] as RadDateTimePickerArrowButtonElement;
    arrowButton.Visibility = readOnly ? ElementVisibility.Collapsed : ElementVisibility.Visible;
 
    priorityDropDownList.DropDownListElement.ArrowButton.Visibility = readOnly ? ElementVisibility.Collapsed : ElementVisibility.Visible;
    priorityDropDownList.DropDownListElement.TextBox.TextBoxItem.ReadOnly = readOnly;
 
    statusDropDownList.DropDownListElement.ArrowButton.Visibility = readOnly ? ElementVisibility.Collapsed : ElementVisibility.Visible;
    statusDropDownList.DropDownListElement.TextBox.TextBoxItem.ReadOnly = readOnly;
 
    ownerDropDownList.DropDownListElement.ArrowButton.Visibility = readOnly ? ElementVisibility.Collapsed : ElementVisibility.Visible;
    ownerDropDownList.DropDownListElement.TextBox.TextBoxItem.ReadOnly = readOnly;
}
Brian
Top achievements
Rank 1
Iron
Iron
 answered on 16 Apr 2018
1 answer
544 views

Each time you use RichTextEditor, RichTextEditor is slow to load for the first time, and the second time is very fast.

We have Splash Screen, how to speed up the first loading of RichTextEditor.

How to speed up the first loading speed of Spreadsheet.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2018
2 answers
171 views

I apologize if this is not the correct area, I did not see one for this.

With that said, I am working on the Bug Tracker example you have posted, and am trying to compile it and step thru what it does. I opened the ZIP file and extracted the contents. Went to compile the C# portion of the project and I get two errors.
The type name 'InnerItem' does not exist in the type of 'RadQuickAccessToolBar' and method 'GetInnerItem' accepting a first argument of type 'RadQuickAccessToolBar' could not be found (are you missing a directive or an assembly reference?)

This is the offending code section.

private void CustomizeRibbon()
{
    radRibbonBar1.RibbonBarElement.ApplicationMenuRightColumnWidth = 0;
    radRibbonBar1.OptionsButton.Visibility = ElementVisibility.Collapsed;
    RibbonBar.ExitButton.Visibility = ElementVisibility.Collapsed;
    RadQuickAccessToolBar.InnerItem item = RibbonBar.RibbonBarElement.QuickAccessToolBar.GetInnerItem();
    item.Visibility = ElementVisibility.Collapsed;
    radRibbonBar1.StartButtonImage = Resources.bug_logo;
}

I tried to update to the current WinControls.UI and that made it worse. Is this an older control thing?

 


Hristo
Telerik team
 answered on 13 Apr 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
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?