Telerik Forums
UI for WinForms Forum
1 answer
217 views

Telerik v2013 "UI for Winforms"

.Net 3.5

Visual Studio 2008

We have a .Net desktop application built using Visual Studio with Telerik UI for WinForms integrated.  We are using the Chartview feature to show user some charts.  However they are not displaying correctly and we cannot identify why.

When we create a chart using the radChartView control, the labels for the bars of the chart sometimes extend outside of the chart frame area (e.g. see fig1).  We want the bar labels to always being contained within the chart frame and never extend outside of this.

To demonstrate better what we require, we have made a mockup using MSChart control to show what we are aiming for (see fig2).

Please advise how we can create what we require using radChartView control?

Dimitar
Telerik team
 answered on 17 Apr 2015
2 answers
620 views

Hi guys, 

I have a RadListView, its ViewType is ListView. I use a custom item of SimpleListViewVisualItem like below.

The problem is that when Item.Text is too long and overflow, ListView has no horizontal scroll to see the full text.

 Is there any way to fix it?

 

public class UnitListVisualItem : SimpleListViewVisualItem
    {
        private LightVisualElement element1;
        private LightVisualElement element2;
        private StackLayoutPanel layout;
 
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
 
            this.layout = new StackLayoutPanel();
            this.layout.EqualChildrenWidth = true;
            this.layout.Margin = new Padding(30, 20, 0, 0);
 
            this.element1 = new LightVisualElement();
            element1.TextAlignment = ContentAlignment.MiddleLeft;
            element1.MinSize = new Size(160, 0);
            element1.NotifyParentOnMouseInput = true;
            element1.ShouldHandleMouseInput = false;
            this.layout.Children.Add(this.element1);
 
            this.element2 = new LightVisualElement();
            element2.TextAlignment = ContentAlignment.MiddleLeft;
            element2.MinSize = new Size(160, 0);
            element2.NotifyParentOnMouseInput = true;
            element2.ShouldHandleMouseInput = false;
            this.layout.Children.Add(this.element2);
 
            this.Children.Add(this.layout);
        }
 
        private bool IsNotZero(ListViewDataItem item, string field)
        {
            return item[field] != null && Convert.ToInt32(item[field]) != 0;
        }
 
        protected override void SynchronizeProperties()
        {
            base.SynchronizeProperties();
            this.AutoSize = true;
            this.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
 
            RadElement element = this.FindAncestor<RadListViewElement>();
 
            if (element == null)
            {
                return;
            }
 
            this.Text = "<html><span style=\"color:#141718;font-size:12.5pt;\"> " + this.Data["Name"] + "</span>";
 
            this.element1.Text = "<html><span style=\"color:#010102;font-size:8.5pt;font-family:Segoe UI Semibold;\">" +
                "Mã đơn vị:<span style=\"color:#13224D;font-family:Segoe UI;\">" + this.Data["MaDV"] + "</span>" +
                "<br>Trạng thái:" + (this.IsNotZero(this.Data, "Status") ? "<span style=\"color:#13224D;font-family:Segoe UI;\">" + this.Data["StatusName"] : "<span style=\"color:#D71B0E;\">" + this.Data["StatusName"]) + "</span>" + "</span>";
 
            this.element2.Text = "<html><span style=\"color:#010102;font-size:8.5pt;font-family:Segoe UI Semibold;\">" +
                "Hiệu lực từ   :<span style=\"color:#13224D;font-family:Segoe UI;\">"
                + (this.Data["ValidFrom"] == DBNull.Value ? "" : Convert.ToDateTime(this.Data["ValidFrom"]).ToString("dd/MM/yyyy")) + "</span>" +
                "<br>Hiệu lực đến:<span style=\"color:#13224D;font-family:Segoe UI;\">"
                + (this.Data["ValidTo"] == DBNull.Value ? "" : Convert.ToDateTime(this.Data["ValidTo"]).ToString("dd/MM/yyyy")) + "</span></span>";
 
            this.TextAlignment = ContentAlignment.TopLeft;
        }
 
        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(SimpleListViewVisualItem);
            }
        }
    }

D.Snake
Top achievements
Rank 1
 answered on 17 Apr 2015
11 answers
247 views

Hello,

 

I already export my radGridView to PDF with the following code:

  

Telerik.WinControls.UI.Export.ExportToPDF exportPDF = new Telerik.WinControls.UI.Export.ExportToPDF(radGridView);

               

exportPDF.PdfExportSettings.Title = "Title";

exportPDF.SummariesExportOption = Telerik.WinControls.UI.Export.SummariesOption.ExportAll;

exportPDF.ExportVisualSettings = true;
exportPDF.TableBorderThickness = 10;

exportPDF.PdfExportSettings.PageWidth = 600;

exportPDF.PdfExportSettings.PageHeight = 950;

exportPDF.FitToPageWidth = true;

  

but no matter how I set the TableBorderThickness property, there is no difference in the PDF…

 

1. I want to be able to hide the border around my table on every page
2. I want to show the whole Grid ( border around every cell ),

How can I implement these 2 cases?

Regards,


Stefan 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2015
2 answers
223 views

Hi,

I have a RadListView (ViewType = DetailView) that has a single column of data.

I'd like to make this column take up 100% of the width of the RadListView. How would I do that?

The design properties for the column only seem to allow a fixed pixel width (not percentage).

 Thanks,

 -Lou

Lou
Top achievements
Rank 1
 answered on 16 Apr 2015
1 answer
127 views

I am programatically adding two appointments to a rad scheduler, one with start DateTime in past and one with start DateTime on current date. The reminder only shows the appointment on current date. I also want to reminders for all appointments in the past as well. How can I achieve this.

The business scenario is when a user starts the application it should remind them of all appointments in the past from now immediately and the appointments on today 15 minutes before start.

Code below

Appointment appointment1 = new Appointment(DateTime.Now.AddMinutes(15).AddSeconds(5), new TimeSpan(1, 0, 0));
appointment1.Summary = "Appointment Today";
appointment1.Description = "Appointment Details";
appointment1.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment1);

Appointment appointment2 = new Appointment(DateTime.Now.AddDays(-1), new TimeSpan(1, 0, 0));
appointment2.Summary = "Appointment 1 day in past";
appointment2.Description = "Appointment Details";
appointment2.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment2);

radSchedulerReminder1.StartReminder();

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
1 answer
148 views

Hi,

I am using raddock control to host dock windows that as a child have a form with a docked gridview, as per picure attached.

 

My aim is to have the dockwindow width equal to the gridview hosted inside the form. I can achieve this the first time the dock window is created, but if the user changes the width of a column in the gridview I cannot figure out how to programmatically change the parent form's width to be equal to the gridview width, and subsequently the dockwindow width to be equal to the hosting the gridview form width.

The second picture attached displays the desired effect, the form having the same width as the gridview, and also the dockwindow hosting the has a similar width.

I would appreciate your input,

 

Regards,

 

George

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
3 answers
141 views

Hi,

     is it possible to PIN columns like GridView?

I would like to pin the Total columns that i have moved in first position 

Thanks

 

Regards

 

Manuele 

Stefan
Telerik team
 answered on 16 Apr 2015
3 answers
1.2K+ views

How can I create a button inside a column for some row and not the other.

 

I tried to use the command line but this will add a button to every row

 

here is what I have done

 

            GridViewCommandColumn commandColumn2 = new GridViewCommandColumn();
            commandColumn2.Name = "UpdateInfo";
            commandColumn2.UseDefaultText = true;
            commandColumn2.DefaultText = "View More Info";
            commandColumn2.FieldName = "UpdateInfo";
            commandColumn2.HeaderText = "";
            radGridView1.MasterTemplate.Columns.Add(commandColumn2);
            radGridView1.CommandCellClick += new CommandCellClickEventHandler(radGridView1_CommandCellClick);

 

How can I only show the button for some rows and not the others

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2015
8 answers
833 views
Hi, my name is Steven from a software company. We are developing a project to the government using Telerik Window Component.
We are facing an slow performance issues in the client PC with the RadForm. 

1) When I tried double click the .exe file to load the first page (We use RadForm as first page) of the window application. The Form only contained 2 RadTextbox and 2 RadButton, but it took 10 seconds to be appeared after double clicked on the .exe. The form doesn't have any connection to the database.

2) When I tried to click to open another form (RadForm), it took about 11 seconds to complete loading the form (This form contained more telerik controls).
 
Does it caused the slowness with more than 20 Rad Controls in a page?

Appreaciate if anyone could help me on this issues.

Thanks.
Hristo
Telerik team
 answered on 15 Apr 2015
1 answer
199 views

Hello,

Can anyone please resolve my little issue? I have a CommandBarStripElement on my rad form (please see arrow in attached image). I have a little dropdown that displays name of elements placed on CommandBarStripElement. I want to remove that drop down completely. I had done it in the past by setting one of its property but lost now. Please anyone help to remove it.

 

Thanks in advance

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2015
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?