Telerik Forums
UI for WinForms Forum
1 answer
153 views

Hi , I am using GridviewRelation to show the tree, but my data need to be shown like this:

Id          ParentId

1                2

2                4

1                6

It means, sometimes we have the one child belong to many parents. It displays the below error, how can i fix it ?

Row with id '30' already appears in the hierarchy with parent id '27'. Each row in a self-reference hierarchy can appear only once in the hierarchy

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2018
2 answers
1.0K+ views

hello everyone.i am trying create a half donut chart in my project.it has small area to dock as fill.

my problem is when i create a half donut rad chartview that view become so small.

it is look like this picture 1.There is many empty white area being and view size of charview is too much small.

but i want to make it view like at picture 2.

is that possible to create a half donut charview with bigger view size?if it is , how i can do that?I have already try change margin padding as 1px.

(this code: chart_PrimUretimi.Margin = new System.Windows.Forms.Padding(1); ) that doesn't help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2018
1 answer
128 views

Morning,

I'm trying to embed a form that has a RadDock into my main application RadDock.  The idea is that an end user would search for a project and the project would be loaded into the main forms RadDock (rdkMain). This would allow for more than one project to be shown at any given time.  The project form could have multiple vendors which each would be loaded into the project RadDock(rdkProject).  I understand that windows will only allow for a single form to be set to IsMdiContainer.  Is there any way of doing this?

 

Thanks,

 

James

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2018
2 answers
300 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
811 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.4K+ 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
150 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
254 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
450 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
663 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
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?