Telerik Forums
UI for WinForms Forum
1 answer
119 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
140 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.6K+ 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
212 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
542 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
136 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
131 views
How can I auto height header of Grid?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Mar 2016
3 answers
364 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
3 answers
317 views

Hi

Is it possible to use the data within a datatable as the mail merge fields within a richtecteditor? So the column headings within the datatable will show in the 'Insert merge field' drop down and the rows will be the results. 

I have tried (which was a long shot):

Form.RadRichTextEditor.Document.MailMergeDataSource.ItemsSource = DataSet1.Tables("table").AsEnumerable.ToList   (doesn't work)

If its not possible could someone please suggest a best method? The data comes from a SQL view, which fills a datatable which then displays in the radgridview (which is awesome). Preferably in VB.net please.

 

Many thanks

Dimitar
Telerik team
 answered on 07 Mar 2016
1 answer
153 views

Hi,

I've noticed that a number of properties appear to be changeable in the Visual Studio 2013 designer, but the changes don't actually get persisted to the code-behind for the designer, so they don't actually "stick". For example, I changed the value of the RadDropDownButtonElement.Children(DropDownEditorLayoutPanel).Children(ActionButtonElement).TextWrap from false to true for a button in our ribbon bar, in the Visual Studio designer. It looked like it worked (ie the button appearance updated in the designer to show the text as being wrapped), but when I ran the program the text didn't wrap. I went back and looked at the code and there was no setting for that value in the code-behind for the designer. When I closed and re-opened the designer window, the text had reverted to not being wrapped and the property value had been reset to false. This seems like a bug to me. Is there something I'm missing?

 

Thank you,

Emily

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
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?