Telerik Forums
UI for WinForms Forum
5 answers
616 views

Hi, 

I have a Property Grid. One of the Items states a read-only description. The describes what the object was created for. I.e. say it's a report, it will say something as: "This report was created in order to show sales history, comments and manufacturing information to assist sales reps in their quotes." The length is way to big for the height or width of the cell. So I am trying to make this particular property to be wrapped, or show an ellipses so that the user can expand the field and read the whole Description. I could also work with a tooltip but I would need the tooltip to be sized and scrollable in case the description is too long. 

This property is read-only. 

Regards, 

 

Carlitos

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Mar 2016
5 answers
276 views

I am trying to implement an Excel-like enter key behavior where pressing enter moves to the next cell only within the selected cells. I am handling KeyDown and everything works fine using Grid.CurrentColumn to move the CurrentCell between columns. However as soon as my selection is more than one row and I need to wrap to the next row, setting Grid.CurrentColumn kills the SelectedCells collection. I tried every manner of selecting a current cell that I could find, but nothing helps. Most are worse. Using GridNavigator kills the selection for any move, and setting the IsCurrent property of the row kills the selection even if the row hasn't changed.

 

All of the documentation I can find explicitly states that the current cell and the selected cells are supposed to be independent. Am I missing something?

 

I have MultiSelect on and SelectionMode = CellSelect, and I am using VirtualMode for the data.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Mar 2016
1 answer
126 views

WinForms / VB.net / .NET 4.0 / Visual Studio 2010

I have a gridview which is using ColumnGroupsView to group certain fields, which is all working fine.

However, there is an issue when exporting using the SpreadExport function. If my grid is:

Group 1

---Column 1

---Column 2

---Column 3

Group 2

---Column 4

---Column 5

Group 3

---Column 6

---Column 7

 

When exported, the row with the group names in, has the first 3 cells merged for "Group 1", the next 2 cells merged for "Group 2" and the next 2 cells merged for "Group 3" as you would expect, and each has the relevent columns underneath it.

If you hide a column 3 using the gridview though, then export, the group headers still have the same number of cells merged, which means that under "Group 1" you now see Column 1, Column 2, Column 4. Under "Group 2" you now have Column 5, Column 6. Under "Group 3" you have Column 7 and a blank column.

How can I fix this?

Thanks

Dimitar
Telerik team
 answered on 09 Mar 2016
3 answers
146 views

Hi there

i've currently got a working gauge. it uses negative a positive numbers

but at the moment when it uses a positive number it it highlights from -200 to 10

is the way to set the needle to 0 point (in the middle) and have it go from either side of that 0? and also show the number 0?

i have attached a drawing of what i mean

regards
Jeremy

Dimitar
Telerik team
 answered on 09 Mar 2016
5 answers
1.7K+ views
Hello,
Is there a way to change checkbox size? I want to make it bigger for touch screen devices.
OD
Top achievements
Rank 1
 answered on 09 Mar 2016
9 answers
229 views
I am trying to maintain a single Theme file and would like to define multiple styles for a single control, for example a button.  If I want a purple button in one location and a red one in another, I'd like to be able to define this through a theme file rather than editing the individual elements.  i cant seem to figure out a way of accommodating this.
Emily
Top achievements
Rank 1
 answered on 08 Mar 2016
12 answers
562 views
Hello.  I am evaluating the Q1 2008 SP1 version of the RadGrid.

After updating the datatsource of the grid, I have been trying to deselect the current row so that it is not highlighted.  I seem to have tried every suggestion on this forum, but to no avail.  Here is what I have tried (in VB):

RadGridView1.CurrentRow.IsCurrent = False
RadGridView1.CurrentRow = Nothing
RadGridView1.MasterGridViewInfo.CurrentRow = Nothing
RadGridView1.GridElement.Update(True)

These don't work.  How can I deselect a row?

Thanks,
David
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Mar 2016
3 answers
141 views

Hi. I am having a problem with converting the RadChart that we used earlier to ChartView. I am using this code to generate the LineSeries with DataTable.

radChart1.Axes.Clear();
 
           radChart1.BackColor = Color.White;
           radChart1.ShowPanZoom = true;
           Telerik.WinControls.UI.LineSeries ls = new Telerik.WinControls.UI.LineSeries();
           radChart1.Series.Add(ls);
           ls.DataSource = dt;
           ls.ShowLabels = true;
           ls.ValueMember = "Value";
           ls.CategoryMember = "Label";
           ls.CombineMode = Telerik.Charting.ChartSeriesCombineMode.None;
 
           foreach (DataColumn dc in dt.Columns)
           {
               if (dc.ColumnName == "LSL" || dc.ColumnName == "USL" || dc.ColumnName == "LWL" || dc.ColumnName == "UWL")
               {
                   DataTable LSLDt = dt.Copy();
                   LSLDt.Columns.Remove("Value");
 
                   Telerik.WinControls.UI.LineSeries LSLSeries = new Telerik.WinControls.UI.LineSeries();
 
                   radChart1.Series.Add(LSLSeries);
                   LSLSeries.DataSource = dt;
                   LSLSeries.ShowLabels = false;
                   LSLSeries.ValueMember = dc.ColumnName;
                   LSLSeries.Name = dc.ColumnName;
                   LSLSeries.CategoryMember = "Label";
                   LSLSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.None;
 
                   if (dc.ColumnName.Contains("SL"))
                   {
                       LSLSeries.BackColor = Color.Red;
                   }
                   else if (dc.ColumnName.Contains("WL"))
                   {
                       LSLSeries.BackColor = Color.Yellow;
                   }
               }
           }
 
           //  radChart1.ShowSmartLabels = true;
           radChart1.Axes.Get<Telerik.WinControls.UI.CategoricalAxis>(0).PlotMode = Telerik.Charting.AxisPlotMode.OnTicksPadded;
           radChart1.Axes.Get<Telerik.WinControls.UI.CategoricalAxis>(0).LabelFitMode = Telerik.Charting.AxisLabelFitMode.Rotate;
           radChart1.Axes.Get<Telerik.WinControls.UI.CategoricalAxis>(0).LabelRotationAngle = 270;
           radChart1.Axes.Get<Telerik.WinControls.UI.CategoricalAxis>(0).ShowLabels = true;
           radChart1.Axes.Get<Telerik.WinControls.UI.LinearAxis>(1).ShowLabels = true;

But I need to show every single detail without grouping the labels. I have attached the way it used to look with RadChart and the new ChartView.

One of my other problems is that, when there is only one category and one Y value, I want to show a dot. But when I give the DataTable(which has 5 rows, all the values and labels are the same) as a source to LineSeries, nothing is shown. It is also attached as a file below. I'd appreciate it if you can help me with these issues.

Hristo
Telerik team
 answered on 08 Mar 2016
1 answer
148 views
How can I auto height header of Grid?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Mar 2016
3 answers
389 views

I'm using 2016 Q1 (Jan) and am dynamically adding RadLabels to a user control. I have converted from .NET Label to RadLabel.

The user control fills a SplitPanel and is currently out of focus when the form first opens.

The form is always visible and is loaded before the RadLabels are dynamically added.

When dynamically adding the RadLabels they are each added to the user control, their text is set and then they are all adjusted and aligned to match the length of the RadLabel with the longest text. Well, that's how it used to work with the normal .NET Label...

Each RadLabel is set correctly but none ever resize to fit their text and instead are always 100 wide even though some should be over 200.

I've tried implementing the AutoSize to false, set text, AutoSize to true workaround but it never works. No combination of AutoSize makes any difference.

I cannot apply these changes in other place due to the nature of the code (plugins, etc.) so they must take effect here.

Is there a way to get the calculated size of the RadLabels and use that width? Is there a way to get the RadLabel to behave as expected?

 

This snippet takes place after the RadLabels have all been added to the user control and I need to get the longest width.

01.Int32 loWidth = 0;
02. 
03.foreach (RadLabel lpLabel in loLabels)
04.{
05.    lpLabel.AutoSize = false;
06.    lpLabel.TextWrap = false;
07.    lpLabel.Text = this.getText();
08.    lpLabel.TextAlignment = ContentAlignment.MiddleRight;
09.    lpLabel.AutoSize = true;
10. 
11.    if (lpLabel.Width > loWidth)
12.    {
13.        loWidth = lpLabel.Width;
14.    }
15.}

Hristo
Telerik team
 answered on 07 Mar 2016
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?