Telerik Forums
UI for WinForms Forum
1 answer
273 views
Hello community!!!

I searched for this here but I didn't find something that could help me. I am trying to change the "BackColor" of selected "RadPageViewNavigationViewItem". For example the green one with the text "Subscriptions". Let's say I would like to make it red. How can I do that programmatically?



Thank you for your precious time!!!
Maria
Telerik team
 answered on 13 Sep 2022
1 answer
724 views

Hello,

I have a form with a splitcontainer with 2 splitpanel:
- splitpanelFilter
- splitpanelMain

/* SplitContainerMain */
        /*  */
        THIS-OBJECT:SplitContainerMain:AutoScroll = TRUE.
        THIS-OBJECT:SplitContainerMain:Controls:Add(THIS-OBJECT:splitPanelFilter).
        THIS-OBJECT:SplitContainerMain:Controls:Add(THIS-OBJECT:splitPanelMain).
        THIS-OBJECT:SplitContainerMain:Dock = System.Windows.Forms.DockStyle:Fill.
        THIS-OBJECT:SplitContainerMain:Location = NEW System.Drawing.Point(0, 0).
        THIS-OBJECT:SplitContainerMain:Name = "SplitContainerMain".
        THIS-OBJECT:SplitContainerMain:Orientation = System.Windows.Forms.Orientation:Horizontal.
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:SplitContainerMain:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:SplitContainerMain:Size = NEW System.Drawing.Size(644, 480).
        THIS-OBJECT:SplitContainerMain:SplitterWidth = 2.
        THIS-OBJECT:SplitContainerMain:TabIndex = 1.
        THIS-OBJECT:SplitContainerMain:TabStop = FALSE.
        THIS-OBJECT:SplitContainerMain:ThemeName = "Crystal".
        /*  */
        /* splitPanelFilter */
        /*  */
        THIS-OBJECT:splitPanelFilter:Controls:Add(THIS-OBJECT:BtnFilterDown).
        THIS-OBJECT:splitPanelFilter:Controls:Add(THIS-OBJECT:BtnFilterDefault).
        THIS-OBJECT:splitPanelFilter:Dock = System.Windows.Forms.DockStyle:Top.
        THIS-OBJECT:splitPanelFilter:Location = NEW System.Drawing.Point(0, 0).
        THIS-OBJECT:splitPanelFilter:Name = "splitPanelFilter".
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:splitPanelFilter:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:splitPanelFilter:Size = NEW System.Drawing.Size(644, 28).
        THIS-OBJECT:splitPanelFilter:SizeInfo:AutoSizeScale = NEW System.Drawing.SizeF(Progress.Util.CastUtil:ToSingle(0), Progress.Util.CastUtil:ToSingle(-0.4393305)).
        THIS-OBJECT:splitPanelFilter:SizeInfo:SplitterCorrection = NEW System.Drawing.Size(0, -192).
        THIS-OBJECT:splitPanelFilter:TabIndex = 0.
        THIS-OBJECT:splitPanelFilter:TabStop = FALSE.
        THIS-OBJECT:splitPanelFilter:ThemeName = "Crystal".
/*  */
/* BtnFilterDefault */
        /*  */
        THIS-OBJECT:BtnFilterDefault:Image = CAST(resources:GetObject("BtnFilterDefault.Image"), System.Drawing.Image).
        THIS-OBJECT:BtnFilterDefault:Location = NEW System.Drawing.Point(3, 3).
        THIS-OBJECT:BtnFilterDefault:Name = "BtnFilterDefault".
        THIS-OBJECT:BtnFilterDefault:Size = NEW System.Drawing.Size(73, 22).
        THIS-OBJECT:BtnFilterDefault:TabIndex = 0.
        THIS-OBJECT:BtnFilterDefault:Text = "Filtres".
        THIS-OBJECT:BtnFilterDefault:TextAlignment = System.Drawing.ContentAlignment:MiddleRight.
        THIS-OBJECT:BtnFilterDefault:ThemeName = "Crystal".
        THIS-OBJECT:BtnFilterDefault:Click:Subscribe(THIS-OBJECT:BtnFilterDefault_Click).
        /*  */
        /* splitPanelMain */
        /*  */
        THIS-OBJECT:splitPanelMain:Location = NEW System.Drawing.Point(0, 31).
        THIS-OBJECT:splitPanelMain:Name = "splitPanelMain".
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:splitPanelMain:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:splitPanelMain:Size = NEW System.Drawing.Size(644, 450).
        THIS-OBJECT:splitPanelMain:SizeInfo:AutoSizeScale = NEW System.Drawing.SizeF(Progress.Util.CastUtil:ToSingle(0), Progress.Util.CastUtil:ToSingle(0.4393305)).
        THIS-OBJECT:splitPanelMain:SizeInfo:SplitterCorrection = NEW System.Drawing.Size(0, 192).
        THIS-OBJECT:splitPanelMain:TabIndex = 1.
        THIS-OBJECT:splitPanelMain:TabStop = FALSE.
        THIS-OBJECT:splitPanelMain:ThemeName = "Crystal".


I want to dynamically manage the size of the Split Panels on the click of a button.
I have a variable iHeight= 30.
If I click I increase the height of the SplitPanelFilter by (28 + iHeigth) and I decrease the height of the SplitPanelMain (450 - iHeigth)
And conversely when I click again on the button ==> default position

I use this command
THIS-OBJECT:SplitPanelMain:Height= 450 - iTaille.
THIS-OBJECT:SplitPanelFilter:Height= 28 + iTaille.
but nothing ....
Are you a solution ??

Thank you

Laurent TROMBINO

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2022
1 answer
189 views

Hello community!!!

Is there any way we can change the BackColors of bar behind icon? To something custom.



Thank you for your time!!!

PS: There is no TaskDialog tag into Tags field!!!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2022
1 answer
1.0K+ views

Hey all!

I have a radGridView where i need to capture the mouse-over so i can assign a "MouseOver" background color at runtime. 

Some of my rows are default and will use the default "MouseOver" color and some of my rows are "custom" with a custom background color applied using ViewRowFormatting and so i would like a Custom "MouseOver" color.  At this time even the DEFAULT mouse-over color...does NOT apply to rows that have their background handled in ViewRowFormatting (I do not know why this is.)

So that's it :)

How do i capture pre-mouse-over painting and apply a different color?  Or maybe this would happen at the theme level with a replacement theme element?  I dont know i'm just rambling at this point :(

If anyone has done this type of customization please let me know and thanks all!

Cheers!  Curtis.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2022
0 answers
389 views

Currently, I am facing an issue when exporting the pdf report from the winform report viewer, the preview is fine, but when I try to use the export pdf button and then select folder as desktop, the entire app will be closed without any exception, the app just closed itself. If I select a different folder, it works fine. For the same PDF I use the PdfViewer to test, the same issue. I suspect some shared components failed around PDF export.  The version is 2022.2.622

Faulting application name: CustomDecoder.exe, version: 1.0.0.0, time stamp: 0x631d7036
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2be1e
Exception code: 0xc0000417
Fault offset: 0x0008af3e
Faulting process id: 0x4a20
Faulting application start time: 0x01d8c65568c81b08
Faulting application path: C:\dev\Telerik\winforms-sdk\PdfViewer\CustomDecoder\CustomDecoderCS\CustomDecoder\bin\Debug\CustomDecoder.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR100.dll
Report Id: 2571b31a-1468-4eb5-b7f3-c51355fa69d4
Faulting package full name: 
Faulting package-relative application ID: 

 

Sydneyandy
Top achievements
Rank 1
 asked on 12 Sep 2022
1 answer
125 views

Dear all,

does anyone know how to change the BackColor ofthe RadDataEntry ValidationPanel.

I have tried various ways like setting it up at design time in Visual Studio,

or just before showing it at run time

                dataEntry.ValidationPanel.BackColor = Color.PapayaWhip;
                dataEntry.ShowValidationPanel = true;

and also via some event such as

  private void rdeDynamicInput_Initialized(object sender, EventArgs e)
    {
        ValidationPanel vpanel = (sender as RadDataEntry).ValidationPanel;
        if(vpanel != null) vpanel.BackColor = Color.PapayaWhip;
    }

Thanks for your answer

 
 
Maria
Telerik team
 answered on 09 Sep 2022
1 answer
165 views

Hello, 

 

I'd like to know if it is possible to insert rotated text into TableCell (like in the attached image - orange part of table).

I read many forums about this problem, found only one solution - https://www.telerik.com/forums/rotate-text-in-table-cell

The problem is, this custom class is implemented for Telerik.Windows libraries, I'm using Telerik.Winforms.

 

Thanks,

Martin.

Dimitar
Telerik team
 answered on 09 Sep 2022
2 answers
291 views

Is it possible to add a Combo Box or a MultiColumnComboBox to a Task Dialog?

If so, how would I do that?

Maria
Telerik team
 answered on 09 Sep 2022
1 answer
168 views

So I want the user to choose a time with an interval of 15 mins, I disabled key presses because their is no proper way to handle it to round up to the nearest 15 mins.

Anyways my issue is that I tried using this setup so that the user can easily pick 15 mins interval

      this.ReturnTimePicker.Step = 15;
      this.ReturnTimePicker.TimeTables = Telerik.WinControls.UI.TimeTables.HoursAndMinutesInOneTable;

The result looks like this

So ok, probably a bug or 15 mins is not supported because of how many the choices would be.

So now I decided just to use the 2 tables instead of 1.


  this.ReturnTimePicker.Step = 15;
  this.ReturnTimePicker.TimeTables = Telerik.WinControls.UI.TimeTables.HoursAndMinutesInTwoTables;

The result is

It technically works and it's great but as you can see the Minutes is hidden, I need to drag the popup so it opens up properly.

I don't want my users to do that every time, so I want the control to be already expanded fully

Any fixes or alternatives on this issues? 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2022
1 answer
133 views

Hi ,

I need to create RadContextMenuManager programmatically in a "base" RadForm ( wich is inherited by other Forms Classes).

I don't want to add it with the designer.

It's possible?

If i add a property RadContextMenuManager, i cannot see this.RadContextMenu .

Alessandro

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2022
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?