Telerik Forums
UI for WinForms Forum
3 answers
106 views

Hi All, 

i create new winform and add radRibbonBar, but whenever open the form, it automatically added a another, please see attach file.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 2016
3 answers
254 views

When the datasource is set for a gridview with sorting applied, the first row in the Rows collection is selected rather than the first row in the ChildRows collection. This causes the gridview to scroll to the position of the first row in the datasource rather than the first displayed row in the gridview.

 

 Steps to reproduce:

Set the datasource for the gridview

Sort the gridview

Set the datasource for the gridview again

The first row in the datasource will be selected and scrolled to, rather than the first displayed row.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 2016
3 answers
325 views
Hi,

How can i add text or control in a specific date or day cell?

Thanks,
Angus
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jan 2016
2 answers
83 views

I have a grid populated from a base class. The base class has a enum property to identify what type of derived object it is. When the user adds a new row and changes that enum value, I need to replace the object with the associated derived type. Example:

public enum ObjectType
{
    Base,
    ChildA,
    ChildB
}
 
public class Base
{
    public ObjectType Type { get; set; }
}
 
public class ChildA : Base { }
 
public class ChildB : Base { }

The grid will initially create a new row with a DataBoundObject of Type 'Base'.

When the the user changes the 'ObjectType' column to 'ObjectType.ChildA' I need to replace the row's DataBoundObject with a new instance of 'ChildA'.

The grid's DataSource is set to a BindingSource; who's DataSource is set to BindingList<Base>.

I tried to replace the object in the BindingList. Then set the BindingSource.DataSource to the updated BindingList. And then call BindingSource.ResetBindings(false) to updated the GridView. But I receive a NullReferenceException.

How can I replace the Row's DataBoundObject with a derived object?

Paul
Top achievements
Rank 1
 answered on 06 Jan 2016
4 answers
849 views
Hi Telerik team,


For the pie chart, I saw that Telerik tools that have smart labels(refer to the attachment with the red color box), there are few features like draw connecting line and labels border, sync labels border color and line color. But I can't find it in the property of visual studio for chartView, please advise. Is it need to write back end coding instead of using property to use those features?
Apart from that, the label(refer to left red color box of attachment) show in my pie chart is by percentage(%) but the label show in Telerik is in character for each categories, may I know how to set it?


Best regards,
Nicholas
John
Top achievements
Rank 1
 answered on 06 Jan 2016
2 answers
146 views
Hello,

When I add a RadButtonElement to my alert, it causes the ContentImage to be cut off at the top of the button element, despite the button being on the other side of the alert. See the attached images as an example.

Is there a BringToFront event (or something along those lines) for ContentImage?

Thanks!
Ryan
Top achievements
Rank 1
 answered on 06 Jan 2016
2 answers
174 views

I have a form that loads an existing pdf into a radPdfViewer. The user then has the option to move this file to a new location, with a new file name and then delete the original file.

I am able to load and view the original pdf. I am also able to export this file to a new location with a new file name. The problem occurs when I attempt to delete the original file. I am receiving the error message "The process cannot access the file ... because it is being used by another process."  Obviously I am not disposing of something properly, but I am unsure of the correct steps to take.  Any help would be appreciated.

I am using Visual Studio 2015 and the following code:

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        RadPdfViewer1.LoadDocument(OriginalFileName)
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim exportProvider As New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider
        Dim NewFile As RadFixedDocument = exportProvider.Import(System.IO.File.OpenRead(OriginalFileName))
        Dim out As System.IO.Stream = System.IO.File.OpenWrite(NewFileName)

        exportProvider.Export(NewFile, out)
        out.Flush()
        out.Dispose()
        out.Close()
        NewFile = Nothing
        exportProvider = Nothing
        RadPdfViewer1.UnloadDocument()
        System.IO.File.Delete(OriginalFileName)            ----> this is the line that gives the error
    End Sub

sandra
Top achievements
Rank 1
 answered on 04 Jan 2016
12 answers
200 views
In my project I need change checkboxes for button in CheckedDropDownList  or add buttons in DropDownList. It's possible?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jan 2016
1 answer
98 views
Using Visual Studio 2013 Update 4
Telerik Winforms version: 2015.2.728.40
Hristo
Telerik team
 answered on 04 Jan 2016
3 answers
200 views

Hi.

How can i change the distance between a CategoricalAxis and its label ?

( my chartview have two horizontalAxis. the top one have this gap problem )

CategoricalAxis gregorianAxis = new CategoricalAxis();
gregorianAxis.LabelFitMode = AxisLabelFitMode.Rotate;
gregorianAxis.LabelRotationAngle = 60;
gregorianAxis.ClipLabels = false;
gregorianAxis.VerticalLocation = AxisVerticalLocation.Top;
mySerie.HorizontalAxis = gregorianAxis;

Hristo
Telerik team
 answered on 04 Jan 2016
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
AI Coding Assistant
+? 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?