Telerik Forums
UI for WinForms Forum
1 answer
151 views

I created custom shape

    public class LineShape : ElementShape
    {
        public override GraphicsPath CreatePath(Rectangle bounds)
        {
            var path = new GraphicsPath();
            path.AddLine(bounds.X, bounds.Y + 1.0f, bounds.X + bounds.Width, bounds.Y + bounds.Height);
            return path;
        }
    }

When I add a ScatterSeries, then assigned Shape = LineShape. But these points are not drawn on the chart!!!

However, if I add an event

        private void LegendElement_VisualItemCreating(object sender, LegendItemElementCreatingEventArgs e)
        {
            e.ItemElement = new LegendItemElement(e.LegendItem);
            if (!(e.LegendItem.Element is ScatterSeries seria)) return;
            e.ItemElement.MarkerElement.Shape = seria.Shape;
        }

then LineShape drawn in the legend

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Apr 2020
2 answers
148 views

HI,

I have set the data source in my grid view. When I add the next data source, I want the new data source add, not the existing data source to be cleared.

Append with previous. it's possible?

waiting for your favorable response.

Thanks

Shanti 😎
Top achievements
Rank 2
Veteran
 answered on 15 Apr 2020
1 answer
182 views

Hello folks.  I've been dealing with this for several years now and cannot crack this nut so hopefully I can properly explain the issue.

1) Create a new Telerik VB Windows Forms Application

2) Click OK to select Telerik VB Windows Forms Application

3) Select 'Word-Inspired' from the "Create New Project Wizard"

4) Open MainForm in the Designer

5) Add VisualStudio2012LightTheme

6) Select MainForm in the Designer and change the ThemeName property to "VisualStudio2012Light"

7) Click 'Apply current form's theme to controls'

Everything looks good so far!

Run the Ap...there's a quick compile and our simple one form ap launches and looks great!!!

Upper-Left-Normal.png shows the upper left corner.  It's perfect.  I opened this small image in photoshop so I could put a contrasting color around the button group so you can see where it is more clearly.  This is shown in Upper-Left-Normal-Enhanced.png

Same for Upper-Right except the Control Box has the same background as the menu bar so instead I highlighted the Close button.  These are Upper-Right-Normal.png and Upper-Right-Normal-Enhanged.png

Now...this is where the Magic Happens...MAXIMIZE the form.

You can clearly see the top several pixels of the form are getting chopped off - and what makes things even more untidy are if you are running on two monitors when this form is MAX size the "sliver of missing pixels" on the right are actually there...but they are on the 2nd monitor having bled over!  Max should never cross monitors...it should fill just the active monitor minus any space taken up by Window's status bar.

You can see this in the screen shots:

 

I have not tried this with all of the themes but I have tried with several and every one I've tried does this.

Any thoughts, suggestions, help would be VERY helpful!!

 

Kindest regards...stay home!

-Curtis

 

 

 

 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Apr 2020
5 answers
1.2K+ views

Hi, I have a RadGridView where I want to add a custom filter operator to the alternatives that is already existing.

If a "-" is between two strings (like "03-15"), would like it to look something like this:

           

 

I have all the filter logic, but I can't figure how to add a new filter operator. Is it possible? Then, how to do it?

If it is not possible, then I would want to make a custom filtering row that has only the custom filtering method, how should I then create a filter row that has only the filter functionality that I want?

If I could use the filter row as I wanted without the existing filter logic, then I could use the text in the filter text box to make a custom filter, or try to build a composite filter with many BeginsWith that covers the desired range.

So what I need is a custom filter operator (would be the best in my mind), or a way to customize the filter row to do only the operation I need.

Regards,
Joar

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Apr 2020
10 answers
1.8K+ views
Hi,
Prob a simple question
Is there an option for deleting selected rows via code
Something like "Grid.SelectedRows.Delete"

If not Can you show me how plz.

Thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Apr 2020
3 answers
115 views

Hello,

Is it possible to implement a summary row which would work as such :

Displays sums for every GridViewDecimalColumn independently from their Name attribute.

Thanks in advance

 

Nadya | Tech Support Engineer
Telerik team
 answered on 10 Apr 2020
3 answers
429 views

Hello!

I need to capture when column-resizing with a mouse has COMPLETED.  I expected this would be done in ColumnWidthChanged but for reasons unknown to me that event fires WHILE the user is resizing...exactly like how I would expect ColumnWidthChanging  to work.

 

It's like the resize is happening "Live" instead of waiting for the user to complete their resize THEN firing. 

Any suggestions would be very much appreciated!

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Apr 2020
3 answers
241 views

I have several forms with RadLayoutControl that looks fine in the Designer, but then running the application, they go completely wild.

I recently enabled HDPI support, all my usercontrols without LayoutControl work fine, but LayoutControl seems to be different.

Pic1 is from Designer, Pic2 from the running application, and I created a minimal reproducable example but I'm unable to attach it here.

Yes, I put Visual Studio in the 96dpi Mode, before using the Designer.

I tested on several computers, but everywhere the same awkward result.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Apr 2020
1 answer
96 views

Hi,
I'm using RadRichTextBoxRibbonUI to handle a richtext box.

By default the control creates a drop down list with all the available fonts of the system. I would like to restrict my user and provide him/her with specific ones.

I wold like that the fonts are not show in the drop down and not load them in the document, for instance if the user paste some text with other font the editor will not recognize the font and paste it with one of the defaults.

How do I do that?

 

Thanks!

Dimitar
Telerik team
 answered on 09 Apr 2020
2 answers
171 views

Hi,

I am trying out 2019 R2 to see if it works ok before upgrading from 2017 R1.

I have noticed a problem on a RadForm when setting the formstyle to none then maximizing the form, the top and left are -8. Any object put at the top of the form is too high and too far to the left. Is there a reason for this change like a shadow on the form or something I'm missing

It worked as expected in 2017 R1.

Kind rgeards,

Matt.

Matt
Top achievements
Rank 2
 answered on 09 Apr 2020
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
CollapsiblePanel
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?