Telerik Forums
UI for WinForms Forum
6 answers
122 views
If you copy a hyperlink from Outlook (or any Office app I expect) and paste it into a RichTextEditor box then try to modify the text... the control will crash.

To duplicate this bug:

1. Create a hyperlink in Outlook to \\server\folder1\folder2\folder3\somefile.txt

2. Copy the hyperlink and paste it into a RichTextEditor box.

3. Place your caret after the \ before somefile.txt

4. Press backspace until the control crashes (takes less than 20)

The control will start to act very weird with overlapping text before it finally crashes with the following error:

-----------------
Index was out of range. Must be non-negative and less than the seize of the collection.

at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.WinControls.RichTextEditor.UI.TextBlock.DrawRunGDI(Run run, RunLayoutInfo runInfo, Single fontSizeScale, PointF location, NativeTextRenderer renderer)
   at Telerik.WinControls.RichTextEditor.UI.TextBlock.DrawGdi(Single angle, Graphics nativeGraphics, Single fontSizeScale)
   at Telerik.WinControls.RichTextEditor.UI.TextBlock.PaintElement(IGraphics graphics, Single angle, SizeF scale)
...
-----------------

I've tried setting AutoInsertHyperlinks to false but it still crashes.  Any ideas?

Thanks!
Michael
Top achievements
Rank 1
 answered on 27 Feb 2015
3 answers
211 views
I have a radChartView and also a radGridView. I want to put Chart View on new row of Grid View. How can I perform this ?
here is my Chart View sample data code :
var series = new LineSeries {LegendTitle = "تعداد امانت بر اساس ماه", BorderWidth = 2};
        series.DataPoints.Add(new CategoricalDataPoint(10, "Jan"));
        series.DataPoints.Add(new CategoricalDataPoint(30, "Feb"));
        series.DataPoints.Add(new CategoricalDataPoint(22, "Mar"));
        series.DataPoints.Add(new CategoricalDataPoint(15, "Apr"));
        series.DataPoints.Add(new CategoricalDataPoint(40, "May"));
        series.DataPoints.Add(new CategoricalDataPoint(80, "Jun"));
        series.DataPoints.Add(new CategoricalDataPoint(10, "Jul"));
        series.DataPoints.Add(new CategoricalDataPoint(30, "Aug"));
        series.DataPoints.Add(new CategoricalDataPoint(22, "Sep"));
        series.DataPoints.Add(new CategoricalDataPoint(15, "Oct"));
        series.DataPoints.Add(new CategoricalDataPoint(40, "Nov"));
        series.DataPoints.Add(new CategoricalDataPoint(80, "Dec"));
        this.radChartView1.ShowSmartLabels = true;
        radChartView1.ShowLegend = true;
        this.radChartView1.Series.Add(series);

I try this code but a row was added without any value :
this.radGridView1.Rows.Add("Sample", radChartView1);
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Feb 2015
3 answers
116 views
hi,

i am trying to inherit the RadGridView control and create a predefined list of columns.

if i create the columns in the constructor of the control and using it in a form (winform app), the visual studio designer will add the same columns a second time from the InitializeComponent() method.

what is the suggested way to do this?

thank you,
alez
Stefan
Telerik team
 answered on 27 Feb 2015
2 answers
115 views
Why deleted my post? I need the help! Please! How to change background color item, where value = 1?
Stas
Top achievements
Rank 1
 answered on 27 Feb 2015
7 answers
448 views
I am vs 2010 user and vb developer. I have seen Telerik Rad Controls and how they perform and can only say that this is an amazing developer's tool! My problem though, is the fact that I already have 90% of my vb application in vs2010 designed using winform controls and was wondering whether there was an easy way to convert the already existing controls and forms to telerik?

Thanks,
Fawzieh
Stefan
Telerik team
 answered on 27 Feb 2015
6 answers
607 views
I want to disable the floating feature, but i want to remain the docking feature when using the radDock. How can i do that?
Ramon Chan
Top achievements
Rank 1
 answered on 27 Feb 2015
1 answer
115 views
Hello

I use the RadRichTextBox component (version 2014.1.402.40)

When I try to load a specific html source, I get an IndexOutOfRangeException exception.

It's works with other source, but one specific source create this problem.


My simple code :

var mail = File.ReadAllText(@"Mailtest2.html");
var htmlProvider = new HtmlFormatProvider();
radRichTextBox1.Document = htmlProvider.Import(mail); // ERROR / IndexOutOfRangeException

The HTML Source :

<html><head></head>
<body style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;'>
Bonjour,
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<table border=0 style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;font-weight:bolder;'>
<tr>
<td rowspan=4 style="width:80px;"></td>
<td colspan=2></td>
</tr>
<tr>
<td>
<br></td>
<td>
<br></td>
</tr>
<tr>
<td colspan=2></td>
</tr>
</table>
<br><br><br><br>
</body>
</html>


Thank you very much for your help and sorry for my bad english
Dimitar
Telerik team
 answered on 26 Feb 2015
1 answer
101 views
     Hi, how can i iterate to the items in AutoCompleteBox with Checkbox? I would like to get the email with checked.  Thanks in advance.

im using this code in to add checkbox in AutoCompleteBox.


public class MyTokenizedTextBlockElement : TokenizedTextBlockElement
    {
        private RadCheckBoxElement checkBox;

        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(TokenizedTextBlockElement);
            }
        }

        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            int index = this.Children.IndexOf(this.RemoveButton);
            this.checkBox = new RadCheckBoxElement();
            this.checkBox.StretchVertically = true;
            this.checkBox.StretchHorizontally = false;
            this.checkBox.Checked = true;
            this.Children.Insert(index, this.checkBox);
        }
    }  








Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Feb 2015
1 answer
95 views
Hi , 

I use radgridview and use the templates in this grid, also i use the printpreview to print this radgridview
but the printing does not print the expanded rows in the templates.

Please let me know how to print this grid.

Please see the attached file>

Thank you
Stefan
Telerik team
 answered on 26 Feb 2015
1 answer
274 views
Hi. i am quite new to telerik controls. i have a hierarchical datagrid where i am using a dataset to bind the grid that has two data table. Orders and OrderProducts.  Order is parent grid and OrderProduct is child grid. Filter work well on child grid but it works on only child rows.

I want to show only those orders in the grid where OrderProducts.productstatus = 'something'. Currently i am using code as below.

            ds.Tables.Add(orders);
            ds.Tables.Add(dtProducts);
            dgOrders.DataSource = ds.Tables[0];
            GridViewTemplate template = new GridViewTemplate();
            template.DataSource = ds.Tables[1];
            dgOrders.MasterTemplate.Templates.Add(template);
            GridViewRelation relation = new GridViewRelation(dgOrders.MasterTemplate);
            relation.ChildTemplate = template;
            relation.RelationName = "OrderProducts";
            relation.ParentColumnNames.Add("OrderNumber");
            relation.ChildColumnNames.Add("OrderNumber");
            dgOrders.Relations.Add(relation);

Any help is really appriciated.
Dimitar
Telerik team
 answered on 26 Feb 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)
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?