Telerik Forums
UI for WinForms Forum
21 answers
716 views
Does anyone know how to get rid of the box around the children in a hierarchy? There seems to be default size that is set regardless of how many children there are. I have autoresize checked to true. It makes the child records take up more room than they should and the box around the children is annoying.

Susan
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 May 2019
1 answer
125 views

Hello,

I'm contacting you because I would like help. I created a CustomEditor that inherits BaseGridEditor. I also created a CustomElement that inherits from LightVisualElement. In this element, I have a DockLayoutPanel which contains on the left a RadDropDownListElement, on the right a RadButtonElement and the rest of the space contains a RadMaskedEditBoxEditorElement. The DropDownListElement contains 2 items.

The problem is that when I edit the cell, my CustomElement appears but the DropDownListElement is not resized.

If I replace the Dock panel with a StackLayoutElement it's ok but the stacklayoutpanel's width is divided into 3 equal parts.

How to use DockLayoutPanel and autosize?

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 May 2019
3 answers
186 views
Hi,

  I have an issue with RTL Exporting. Radgrid is in Right To Left format..When i export it it goes back to Left to Right Format. Is there anyway by which we can export/print it in RTL style itself..Please Reply.

Thanks
Dimitar
Telerik team
 answered on 14 May 2019
3 answers
223 views

Hi,

I'm currently new to Telerik, which my company used in the past. One of my first task is to upgrade and copy a project by manually rewriting the files to avoid publishing issues.  I came across an error which I can't seem to find the solution.  It appears that Pdf class is no longer under Telerik.Windows.  I see that there's a Telerik.Pdf now but I can't seem to figure out what to use to make my project error-free.  Can anyone help me with this?

 

Visual Studio Error at the beginning of my form:
using Telerik.Windows.Pdf.Documents.Fixed.Model.Navigation;



Severity: Error, Code: CS0234, Description: The type or namespace name 'Pdf' does not exist in the namespace 'Telerik.Windows' (are you missing an assembly reference?), Project: Label Printing PVC, File:C:\Users\Lily\Documents\Visual Studio 2017\Projects\Label Printing PVC\Label Printing PVC\APrintLabelSystemProdGroupNew.cs, Line 10, Suppression State: Active


Tanya
Telerik team
 answered on 13 May 2019
2 answers
263 views

I'm trying to alter a datetime column in my radgridview object.

I need it to be shown as followed:

<Year  Quarter of year>

For example the dateTime value of" '28/5/2012' shold be shown as: '2012  Q2'.

I undetstand that i need to changed it with a custmize FormatProvider and also to edit the values of the cells in radgridView1_CellFormating.

I  also declared the custmize FormatProvider.

But how do I connect that formatProvider to that specific dateTime column ?

Thanks!

avishay
Top achievements
Rank 1
 answered on 13 May 2019
23 answers
1.0K+ views
I'm trying to add a button in the Titlebar, I would like to give it the same aspect than the other buttons but I'm unable to do it, see:

http://i.stack.imgur.com/cH5Zw.png

Notice that my new button has a shiner color than the others and also the size protrudes out the yellowed border.

This is the code that I'm using:
----------------------------------------------------------------------------------------------------------
Imports Telerik.WinControls.UI

Public Class RadForm_TestForm : Inherits RadForm

Public Sub New()

' This call is required by the designer.
InitializeComponent()

' Set the RadForm design.
With Me

.ThemeName = "VisualStudio2012Dark" ' The visual theme.
.FormElement.Border.ForeColor = Color.Gold ' Set the borders color.
.FormElement.Border.Width = 1I ' Set the borders width.
.FormElement.TitleBar.BorderPrimitive.ForeColor = Color.Red
.FormElement.TitleBar.ForeColor = Color.LightGray ' Set the TitleBar text color.
.FormElement.TitleBar.MinimizeButton.Enabled = False

End With

' Create a RadButtonElement.
Dim SystrayButton As New RadButtonElement()
With SystrayButton ' Set the RadForm design.

.Text = "."
.ShowBorder = False
.AutoSize = False

.Size = Me.FormElement.TitleBar.MinimizeButton.Size
' .ButtonFillElement.BackColor = Me.FormElement.TitleBar.MinimizeButton.BackColor

End With

' Add the Button in the TitleBar.
Me.FormElement.TitleBar.Children(2).Children(0).Children.Insert(0, SystrayButton)

End Sub

End Class
----------------------------------------------------------------------------------------------------------
Notice that in the code above this line is disabled:

.ButtonFillElement.BackColor = Me.FormElement.TitleBar.MinimizeButton.BackColor

Because if I change the color in that way, if I put the mouse over the button it does not change the color when it is focused so it replaces the focused state.












I'm trying to add a button in the Titlebar, I would like to
give it the same aspect than the other buttons but I'm unable to do it,
see:



Notice that my new button has a shiner color than the others and also the size protrudes out the yellowed border.

This is the code that I'm using:

Imports Telerik.WinControls.UI

Public Class RadForm_TestForm : Inherits RadForm

Public Sub New()

' This call is required by the designer.
InitializeComponent()

' Set the RadForm design.
With Me

.ThemeName = "VisualStudio2012Dark" ' The visual theme.
.FormElement.Border.ForeColor = Color.Gold ' Set the borders color.
.FormElement.Border.Width = 1I ' Set the borders width.
.FormElement.TitleBar.BorderPrimitive.ForeColor = Color.Red
.FormElement.TitleBar.ForeColor = Color.LightGray ' Set the TitleBar text color.
.FormElement.TitleBar.MinimizeButton.Enabled = False

End With

' Create a RadButtonElement.
Dim SystrayButton As New RadButtonElement()
With SystrayButton ' Set the RadForm design.

.Text = "."
.ShowBorder = False
.AutoSize = False

.Size = Me.FormElement.TitleBar.MinimizeButton.Size
' .ButtonFillElement.BackColor = Me.FormElement.TitleBar.MinimizeButton.BackColor

End With

' Add the Button in the TitleBar.
Me.FormElement.TitleBar.Children(2).Children(0).Children.Insert(0, SystrayButton)

End Sub

End Class

Notice that in the code above this line is disabled:

.ButtonFillElement.BackColor = Me.FormElement.TitleBar.MinimizeButton.BackColor

Because if I change the color in that way, if I put the mouse over the button it does not change the color when it is focused.

Maybe a solution could be applying the same theme of my RadForm on the RadButtonElement?

I've read this: http://www.telerik.com/forums/apply-theme-to-radbuttonelement

...but I really don't understand how to do it, I don't have any 'DefaultStyleBuilder' and I can't find info in telerik about what means that.


PS: Here you can read this question in other webpage: http://stackoverflow.com/questions/25635610/telerik-how-to-properly-add-a-radbuttonelement-in-a-radform-titlebar/25799876?noredirect=1#comment40391390_25799876

I need help to solve this... thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 May 2019
1 answer
262 views

Convert radGridView column after binding to a Hyperlink?

 

How can I do this?  When I converted to a radGridView the same type conversion gave errors on compile.

 

With DataGridView control I was able to access a cell and change it to a hyperlink

using very similar code to this:

 

01.void dataGridView1_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
02.{
03.    foreach (DataGridViewRow r in dataGridView1.Rows)
04.    {
05.        if (System.Uri.IsWellFormedUriString(r.Cells["Contact"].Value.ToString(), UriKind.Absolute))
06.        {
07.            r.Cells["Contact"] = new DataGridViewLinkCell();
08.            // Note that if I want a different link colour for example it must go here
09.            DataGridViewLinkCell c = r.Cells["Contact"] as DataGridViewLinkCell;
10.            c.LinkColor = Color.Green;
11.        }
12.    }
13.}
Dimitar
Telerik team
 answered on 13 May 2019
0 answers
96 views

Hello everyone,

When I design GridViewDecimal Column, I don't want to use automatic data filling. How can I turn it off? Who can help me? Thank you very much.

Specifically as follows: picture_gridview

hong
Top achievements
Rank 1
 asked on 13 May 2019
2 answers
577 views

Hello,

I cannot modify textalignment for a radlabel in designer time. Whichever kind of textalignment I change, it is always fixed in TopLeft. And I cannot change it back any more.

PS. I'm using the latest version of Telerik library. And I've tested in Visual Studio 2017 and Visual Studio 2019.

Thank you by advance.

Kun
Top achievements
Rank 2
 answered on 10 May 2019
5 answers
426 views

Hi,

I am evaluating your WinForms control suite to see if I could use it for a project I'm working on. I'm trying to create a custom editor in a GridView that would allow me to have a searchable ComboBox where the users can add/rename items right from the editor. First I tried to add an element while in edit mode based on an forum thread I saw (I added a TextBox in addition to the combobox) but I cannot get it to allow focus on the textbox in addition to the ComboBox. Is there a better way to achieve having a ComboBox AND TextBox together in the same editor? Or do you have a better idea of how I could achieve the user story of allowing the user to add/rename items from the ComboBox right from the grid without having another form? From what I'm seeing it looks like the GridBaseEditor just allows one EditorElement not two. Any help you could provide would be appreciated.

Thank you for your time.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 May 2019
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?