Telerik Forums
UI for WinForms Forum
8 answers
581 views
The text I'm displaying in the GridView is often much too long to fit in columns.

How do I display flyover- or ToolTip text as I move the mouse over the grid?

I don't see a HitTest property.

There are a lot of events, like
"ToolTipTextNeeded", "MouseMove", "CursorChanged" but I don't know how to use the "e" argument from those events to retrieve the cell content the cursor is over.

I'm sure there is a most efficient way of doing this.

Finn
Hristo
Telerik team
 answered on 20 Mar 2015
4 answers
241 views
I need a help for listview drag n drop opretion. where  listview1 hold the images and i want to drag images from listview1 to listview2 and then when i click any button i want all paths of Images which is in the listview2. and also i want to set the image size on listview2. Please help me.
Ajay Kumar
Top achievements
Rank 1
 answered on 19 Mar 2015
1 answer
221 views

Hello,

Telerik v2013 "UI for Winforms"
.Net 3.5
Visual Studio 2008

We have a .Net desktop application built using Visual Studio with Telerik UI for WinForms integrated.  We are using the Chartview feature to show user some charts.  However they are not displaying correctly and we cannot identify why.

We have set label mode to Top, it shows the label correctly for positive values but, it should display the bar lables at bottom side in case of negative values. We used radChartView control and belowbarSeries properties.

barSeries.ShowLabels = true;
barSeries.LabelMode = BarLabelModes.Top;

Fig1 attached shows our current chart with the incorrect label positioning
Fig2 attached shows how we would like the chart to display (a mockup).

Please help to explain how we can achieve this in the chart?

Thanks
Hristo
Telerik team
 answered on 19 Mar 2015
3 answers
118 views
Hi;

I have a problem when I want a selected node and Group / Ungroup the tree holding the selected node. Here's an example to understand the case:
public Form1()
{
    InitializeComponent();
 
    DataTable table = new DataTable();
    table.Columns.Add("ID", typeof(int));
    table.Columns.Add("ID_PADRE", typeof(int));
    table.Columns.Add("Codigo", typeof(string));
    table.Columns.Add("TEXTO_NODO", typeof(string));
    table.Columns.Add("TIPO", typeof(string));
    table.Rows.Add(1, null, "COD 1", "Descripción 1","C");
    table.Rows.Add(2, null, "COD 2", "Descripción 2","E");
    table.Rows.Add(3, null, "COD 3", "Descripción 3", "A");
    table.Rows.Add(4, null, "COD 4", "Descripción 4", "S");
    table.Rows.Add(5, null, "COD 5", "Descripción 5", "R");
    table.Rows.Add(6, 1, "COD 6", "Descripción 6","S");
    table.Rows.Add(7, 2, "COD 7", "Descripción 7","R");
    table.Rows.Add(8, 3, "COD 8", "Descripción 8","R");
    table.Rows.Add(9, 4, "COD 9", "Descripción 9","S");
    table.Rows.Add(10, 5, "COD 10", "Descripción 10","C");
    table.Rows.Add(11, 1, "COD 11", "Descripción 11","R");
    table.Rows.Add(12, 2, "COD 12", "Descripción 12","S");
    table.Rows.Add(13, 3, "COD 13", "Descripción 13","A");
    table.Rows.Add(14, 4, "COD 14", "Descripción 14","E");
    table.Rows.Add(15, 5, "COD 15", "Descripción 15","R");
    table.Rows.Add(16, 6, "COD 16", "Descripción 16","S");
    table.Rows.Add(17, 7, "COD 17", "Descripción 17","E");
    table.Rows.Add(18, 8, "COD 18", "Descripción 18","R");
    table.Rows.Add(19, 9, "COD 19", "Descripción 19","C");
    table.Rows.Add(20, 10, "COD 20", "Descripción 20","A");
    table.Rows.Add(21, 20, "COD 21", "Descripción 21","S");
     
    this.radTreeView1.DataSource = table;
    this.radTreeView1.DisplayMember = "TEXTO_NODO";
    this.radTreeView1.ChildMember = "ID";
    this.radTreeView1.ParentMember = "ID_PADRE";
    this.radTreeView1.ExpandAll();
 
    this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "ID_PADRE", "ID");
    this.radGridView1.DataSource = table;
     
}
private void ungroup()
{
    RadTreeNode oNode = this.radTreeView1.SelectedNode;
 
    this.radTreeView1.ChildMember = "";
    this.radTreeView1.ParentMember = "";
 
    this.radTreeView1.SelectedNode = oNode;
}
private void group()
{
    RadTreeNode oNode = this.radTreeView1.SelectedNode;
 
    this.radTreeView1.ChildMember = "ID";
    this.radTreeView1.ParentMember = "ID_PADRE";
    this.radTreeView1.ExpandAll();
 
    this.radTreeView1.SelectedNode = oNode;
}
private void label1_Click(object sender, EventArgs e)
{
    this.ungroup();
}
 
private void label2_Click(object sender, EventArgs e)
{
    this.group();
}

If I have a selected node when calling the method to group / ungroup not maintained after I selected group / ungroup. I tried with what appears in the code but can not.

Thanks for the help.

Regards!
Hristo
Telerik team
 answered on 19 Mar 2015
4 answers
130 views
How to do that would automatically change the size of the column height, depending on the amount of text in it?
Hristo
Telerik team
 answered on 18 Mar 2015
3 answers
107 views
Hi, how would I hide the icon on the RadColorDialog (upper left corner)? 

Thanks,

-Lou
Ralitsa
Telerik team
 answered on 18 Mar 2015
1 answer
129 views
I am using a grid with bound rows and a summary row.  I would like to also format one of the bound rows to look like a summary row.
Is there a simple way to do this?

I've tried setting the cell element ThemeRole to "GridSummaryCellElement" in the CellFormatting event, but it didn't work
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Mar 2015
6 answers
428 views
Hey all,

I have run into an issue using AggregateExpressions with GridViewSummaryItems.

If I use the following method and Sum(Foo2) is 0, I will obviously get a Divide by Zero exception.  Is there anyway handle this when using AggregateExpressions or will I have to use the CustomSummaryItem method as described here?

Dim summaryItem As New GridViewSummaryItem()
summaryItem.Name = "Foo"
summaryItem.AggregateExpression = "(Sum(Foo) / Sum(Foo2)"

Too clarify, I have already got the desired output (percentage of the sums of two other columns in my grid) using the CustomSummaryItem, but I would rather use AggregateExpressions if possible as it's cleaner and requires less code.

Thanks!
Hristo
Telerik team
 answered on 18 Mar 2015
1 answer
373 views
i used a rad grid view in win form app.i changed text alignment to center in normal mode with cell formatting.but when i clicked on cell to edit that ,alignment is left.how can change that to center to?
Ralitsa
Telerik team
 answered on 17 Mar 2015
2 answers
121 views
I have a scenario where I have a toolwindow docked on the left hand side of the document. I have a splitcontainer loaded just to the right of this. At runtime I am dynamically creating a new toolwindow and wish to position the new window at the top of the split containter, not the top of the document. I am using the following code to load the new toolwindow:

                ToolWindow windowPT = new ToolWindow();

                windowPT.Text = "PhoneTrak Dashboard";
                windowPT.Name = "twPhoneTrak";
                windowPT.DockState = DockState.Docked;

                rdMain.DockWindow(windowPT, DockPosition.Top);

Please see attached images for current placement vs. desired placement.

Thanks in advance!
Boneshaker
Top achievements
Rank 1
 answered on 17 Mar 2015
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?