Telerik Forums
UI for WinForms Forum
2 answers
289 views

Is there a way to remove tabstops on some column's cells and not others?

Many of the users will only be using a keyboard and the form I'm building has a gridview with only 2 columns out of 12 that only need to tabbed through.

 

 

Gone2TheDogs
Top achievements
Rank 2
Iron
Veteran
 answered on 16 Feb 2018
1 answer
794 views
Hi this is my first time posting here in telerik. I have a drop down list and planning to do disable selectedindexchange event before I bound it's datasource. I tried this  code:  this.comboBox1.SelectedIndexChanged -= new EventHandler(comboBox1_SelectedIndexChanged); but it gives me "No overload for 'comboBox1_SelectedIndexChanged matches delegate system.eventhandler. 
Dimitar
Telerik team
 answered on 16 Feb 2018
15 answers
1.3K+ views
Hi,

I have a GridView where I'm adding a grouping, and then summarizing some values for each group.  I'm trying to get the grouping / summary rows to ONLY show at the bottom of each group.  It seems that by default when adding a group that a group row always shows up at the top of each group.  Here is a snippet of my code:

GridGroupByExpression groupExprCol1 = new GridGroupByExpression("col_1 Group By  col_1");
grid1.GroupDescriptors.Add(groupExprCol1);
GridViewSummaryItem
sumItemValue = new GridViewSummaryItem("value", "{0,12:#,0;(#,0)}"
    GridAggregateFunction.Sum);
GridViewSummaryRowItem sumGroupCol1 = 
new GridViewSummaryRowItem();
sumGroupCol1.Add(sumItemValue);  
grid1.MasterTemplate.SummaryRowsBottom.Add(sumGroupCol1);

The end result that I'm trying to achieve would look similar to this:

Col 1 Col 2 Value
AA Yes 1
AA No 2
AA No 2
AA Yes 5
Total AA:   10
BB No 3
BB No 2
Total BB:   5
CC Yes 4
Total CC:   4

So basically I'm trying to avoid displaying a group header row at the top of each group, and just show a summary row at that bottom of each group.  Any help would be greatly appreciated.  Thanks.
Dimitar
Telerik team
 answered on 16 Feb 2018
2 answers
138 views

Either this is a bug or I'm doing something really, really silly!  My money's on the 2nd option :)

I have a grid with a GridViewImageColumn that I have to set .IsVisible = False.

No matter what I do, it flips back to 'True'

What am I doing wrong? 

 

BTW - This happens both at-runtime (dynamically setting the IsVisible property for this column = False does nothing) AND it happens at design time:  You can load up the grid, select the Columns property, select the GridViewImageColumn and try changing IsVisible from True to False.  Doesn't work :(

 

Any help would be very much appreciated!

-Curtis

 

Dimitar
Telerik team
 answered on 16 Feb 2018
2 answers
236 views
Sometimes when we set the text of the RadRibbonForm it gets cut off and has "..." added to the end. It's not consistent though, that's what it making it hard to diagnose. It also doesn't seem to matter how many characters long the text is - the last 10-15 pixels of the text gets replaced with "...".

Is there any property that can be set to change this behavior so that all of the text always shows on the title bar?
Marc
Top achievements
Rank 1
Veteran
 answered on 16 Feb 2018
3 answers
438 views

Hi,

I'm working with a RadGridView and add a Template on it with :

GridViewRelation relation = new GridViewRelation(gridView.MasterTemplate, template);

Then I'm trying to customize the view of my gridview because I would like delete all borders on my Template.

I'm trying to do that but it's not enough to delete all borders. What I could do more ?

private void gridView_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
GridDetailViewCellElement childCell = e.CellElement as GridDetailViewCellElement;
GridGroupExpanderCellElement expanderCell = e.CellElement as GridGroupExpanderCellElement;
if (e.CellElement.ViewTemplate.Parent != null)
{
e.CellElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
e.CellElement.BorderWidth = 0;
e.CellElement.Padding = new Padding(0);
}
else if (childCell != null)
{
childCell.BorderBoxStyle = BorderBoxStyle.SingleBorder;
childCell.BorderWidth = 0;
childCell.Padding = new Padding(0);
 
childCell.PageViewElement.Header.Visibility = ElementVisibility.Collapsed;
childCell.GridViewElement.DrawBorder = false;
childCell.GridViewElement.GroupPanelElement.DrawBorder = false;
RadPageViewStripElement stripElement = childCell.PageViewElement as RadPageViewStripElement;
if (stripElement != null)
{
stripElement.DrawBorder = false;
stripElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
stripElement.BorderWidth = 0;
foreach (RadPageViewItem item in stripElement.Items)
{
item.MaxSize = new Size(0, 1);
item.Visibility = ElementVisibility.Hidden;
}
}
}

Thanks for your help,

Simon

Dimitar
Telerik team
 answered on 15 Feb 2018
16 answers
631 views
I am using a RadLabel to show the status and results of a process that builds the data for a GridView.  Click a button to start that process and the text set to "Please wait while your list is being built..." then I do a refresh() on that control.  At the end of that process the text is set to "Row Count: xxx".

Even though I have the label set to autosize, the full text ("Please wait while....") is cut off at the length of whatever the text was at the beginning of the process.  My current workaround is to make this autosize = false and pad the text with enough trailing blanks so that it is always longer than "Please wait while your list is being built...".

I replaced that RadLabel with a Microsoft Label and that works fine.

Is that a bug with that RadLabel?
Jeff
Top achievements
Rank 1
 answered on 14 Feb 2018
2 answers
79 views

Fluent with RadRibbonBar : Down Arrow to Items always visible event if no item in list

 

Included a screen shot, mouse over nor mouse click on the down arrow shows anything (normal cause it's empty)

 

Here's my designer's part that was generated:

//
// radRibbonBar2
//
this.radRibbonBar2.ApplicationMenuAnimantionType = Telerik.WinControls.UI.FadeAnimationType.None;
this.radRibbonBar2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254)))));
this.radRibbonBar2.CommandTabs.AddRange(new Telerik.WinControls.RadItem[] {
this.radRibbonBarCommandTab2,
this.ribbonTab2,
this.ribbonTab1});
this.radRibbonBar2.ExitButton.Text = "Exit";
this.radRibbonBar2.Location = new System.Drawing.Point(0, 0);
this.radRibbonBar2.Name = "radRibbonBar2";
this.radRibbonBar2.OptionsButton.Text = "Options";
this.radRibbonBar2.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
this.radRibbonBar2.Size = new System.Drawing.Size(1096, 171);
this.radRibbonBar2.StartButtonImage = global::MorneauShepell.Parametrization.Windows.Forms.Properties.Resources.ArielWhite;
this.radRibbonBar2.TabIndex = 2;
this.radRibbonBar2.Text = "ArielVal";
this.radRibbonBar2.ThemeName = "Fluent";
((Telerik.WinControls.UI.RadRibbonBarElement)(this.radRibbonBar2.GetChildAt(0))).Text = "ArielVal";
sebastien
Top achievements
Rank 1
 answered on 14 Feb 2018
7 answers
351 views
Hello,
Thanks for your great product,

I would like to set my custom theme to the application at design time. But the problem is, when I set my theme to the form, after adding a control like RadButton to this form, theme class name property of new button is empty and I have to set it manually. Is there any way to solve my problem in order to setting controls theme automatically from their parent?

Best Regards
sebastien
Top achievements
Rank 1
 answered on 14 Feb 2018
1 answer
123 views
Has anyone implemented undo and/or redo for this control?
Dimitar
Telerik team
 answered on 14 Feb 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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?