Telerik Forums
UI for WinForms Forum
3 answers
1.8K+ 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
337 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
161 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
276 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
494 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
203 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
303 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
267 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
2 answers
158 views

I create a radChartView with three bar series and a legend and show it on the form.
Then I change runtime programatically the appearance of the two series (I make them invisible: IsVisible = false), but the legend remains the same.

For comparison - in the MSChart such stupidity is not observed

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 May 2018
1 answer
142 views

I have found a few bugs with the Radtreeview during my recent development.  I have submitted them as tickets and have received suggestions or agreement that it was an issue.  I was wondering if these tickets and resolutions that are suggested and my work arounds that I came up with are posted for others to see or just stay under my tickets and no one else gets to learn from them?

 

Seems like tickets should be shared where resolutions are found for issues.  Not sure if there is a way for the user to make a ticket to share and just make things anonymous or what.  Shame if others are having the same issues as me and don't get to learn from others.  I know I hardly find good solutions in the forums but sure there are good answers out there in other people's tickets.

Thanks

Patrick

 

Dimitar
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?