Telerik Forums
UI for WinForms Forum
11 answers
280 views

Hi all

I need custom position checkbox the same in picture. All Checkbox at Left.

[-]  >A

[-]    >B

[-]         >C

 

Dimitar
Telerik team
 answered on 30 May 2018
2 answers
254 views

Hello,

I have been having trouble determining where I can locate and remove the dashed border on RadButtons.  I believe it is the focus border, but I am not sure.

I have seen examples of setting the Got/Lost focus events to remove the ButtonElement border once focused, however this removes the highlight border as well as the dashed border which I do not want.

Although I don't like the way it looks it has been tolerable, but now that I have created buttons with a custom shape I need to figure this out.

The dashed border still appears to be square, even though the button itself is not.  I have attached an image that shows what I mean.

Can you please help me remove the dashed borders altogether?  If not, I would at least like them to have the same shape as the button itself.

Thanks for your help.

Mike
Top achievements
Rank 1
 answered on 29 May 2018
3 answers
1.6K+ views
Hi,

I have a grid, with 3 columns. 1 column with amount, one with nothing and one with total.
When i put and X in the column with nothing, I want the value of the total being changed into the value of the amount column. I have tried several events, but I dont quite understand how to do it. Should I use the cellformatting event? Thats the one that brings me closest to the desired solution

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2018
1 answer
294 views

Hello,

is it possible to Set the Font size of Messages and adjust the height and spacing of the bubbles so i can have more Messages in a given Window size ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 May 2018
7 answers
124 views

How do I combine adding shapes programmatically, and also binding them? I have a hierarchical data model and adding shapes pretty much like this, in pseudocode. How then do I bind the data? Currently I have no need for connectors, just shapes.

for each Type1 in model
    raddiagram.AddShape( new Type1Shape)
 
for each Type2 item in model
   raddiagram.AddShape( new Type2Shape)
   for each Type3 in item
      raddiagram.AddShape( new Type3Shape)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 May 2018
3 answers
193 views

What's the easiest way to get a custom shape based on a rectangle, to draw a model object?

For example, if this is a dummy model object

class model
{
    public string text { get; set; }
    public int x { get; set; }
    public int y { get; set; }
    public int width { get; set; }
    public int height { get; set; }
}

 

I want to display these objects using a custom shape that is just a white rectangle with a black border, programmatically. Please give a short sample.

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 May 2018
4 answers
442 views

Hi, is it possible to customize the size and content of the print preview window?

 

thanks

David
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 25 May 2018
1 answer
144 views

The docs around diagrams are confusing to me.

How do I combine using custom shapes and binding custom objects? It only shows how to programmatically add custom shapes.

How does the shape type names (e.g. "rectangle") relate to the shape (e.g. RoundRect)?

When using the custom shape editor, if I want to modify default shapes, it's strange I need to add the shape to the diagram first to edit the properties. Then I see it in my diagram on my form.

Does the Property Builder combine creating diagrams and creating shapes? What's the point of creating diagrams here?

Once I've created a custom shape in the Property Builder (called say, "CustomShape") how do I use it? Using "customshape" instead of "rectangle" doesn't work.This page https://docs.telerik.com/devtools/winforms/diagram/custom-shapes is very lacking. Yes I've read the "Tools" section too.

 

Thanks for any clarification.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 May 2018
0 answers
248 views

Hi ,

I have a grid view with base 64 image from api. Now I am binding the base 64 image by the way:

private void Gridview_CreateCell(object sender, GridViewCreateCellEventArgs e)
        {
            if (e.Column.Index == 0 && e.Row.RowInfo is GridViewDataRowInfo)
            {
                e.CellElement = new CustomGridImageCellElement(e.Column, e.Row);
            }
        }

CustomGridImageCellElement.cs

 public class CustomGridImageCellElement : GridDataCellElement
    {
        ImagePrimitive _imagePrimitive;
        public CustomGridImageCellElement(GridViewColumn column, GridRowElement row)
            : base(column, row)
        {
        }


        public override void Initialize(GridViewColumn column, GridRowElement row)
        {
            //if (_imagePrimitive == null)
            //{
            _imagePrimitive = new ImagePrimitive();
            _imagePrimitive.Margin = new Padding(3);
            this.Children.Add(_imagePrimitive);
            this.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
            //}         
            base.Initialize(column, row);
        }

 protected override void SetContentCore(object value)
        {

     if (this.Value != null && this.Value.ToString() != string.Empty
                && (this.Value.ToString().StartsWith("http") || this.Value.ToString().StartsWith("data:image/")) && _imagePrimitive.Image == null)
            {
                var imageData = this.Value.ToString();
                if (!imageData.StartsWith("http"))
                {
                    byte[] imageBytes = Convert.FromBase64String(imageData.Replace("data:image/JPEG;base64,", ""));
                    // Convert byte[] to Image
                    using (var ms = new MemoryStream(imageBytes, 0, imageBytes.Length))
                    {
                        _imagePrimitive.Image = System.Drawing.Image.FromStream(ms, true);
                    }
                }

 

It can display image now., but my problem is when scrolling up and down I see it run the custom cell again and it makes SetContentCore run and display error and slowly. How can I avoid it ?

Bao
Top achievements
Rank 1
 asked on 24 May 2018
1 answer
224 views

hi~~~

 I need your help~

I want GanttViewTextViewElement export to excel file include hierarchy

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