Hi Team,
I'm facing this error "Value cannot be null. Parameter name: value" when i import the "docx" to richtextbox. I refer this Link for sample code. I can read below code for some file but some are not.
Here is sample Code
private void button1_Click(object sender, EventArgs e){ RadDocument document = new RadDocument(); IDocumentFormatProvider provider = new DocxFormatProvider(); OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Filter = "Documents|*.docx"; openDialog.Multiselect = false; DialogResult dialogResult = openDialog.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { using (Stream stream = openDialog.OpenFile()) { document = provider.Import(stream); radRichTextBox1.Document = document; } } }
I do not know this is the file issue or not. I'm using V2011.3.11.1219 WinForms. I attached the file that can not read from code. You need to change the extension to docx.
Regards,

Hi Telerik,
In RadGridView, it was possible to use
cell.PointToScreen(cell.BoundingRectangle.Location)
to obtain the current screen position of a cell. What is the equivalent approach in RadVirtualGrid to obtain a cell's top/left from screen's point of view ?
Thank you,
Saj.



Hi,
I have a GridViewCommandColumn with buttons that are not always visible (using e.CellElement.Visibility = ElementVisibility.Hidden). When they are not visible the border lines around the cell disappear (see image 1).
I tried to fix this using EnableCustomDrawing=True and subscribing to the CellPaint event and draw the border manually, but this does not seem to work. In fact the CellPaint event seem to happen BEFORE the buttons is drawn. I came to this conclusion by drawing a black border around all cells, and got the result in image 2.
How can I fix this missing border problem?
/Per
With High DPI displays increasingly appearing in corporate environments, it would be nice if the Telerik Controls would render correctly in DPI aware applications.
Controls that are direct replacements for WinForms Standard controls such as Textbox, Tree, Checkbox, Label etc. should in their default configuration render identically to the Microsoft .net standard controls in .Net 4.6.1.
Controls that draw content such as ReportViewer, ChartView, Print Preview etc. should behave as expected. That is, by default, their content should render consistently relative to the size of the control in the same way regardless of the DPI settings.
Graphical elements in the controls should scale according to the control and provide different resolution graphics to support at least the standard settings of Windows 10 (125,150,175,200%).
Regards
Erwin

In the "Demo Application - UI for WinForms Q1 2016 SP1" there is an example of the RadGridView with Row Details.
I'm trying to reproduce this in the OpenEdge programming platform (so need to to make some minor changes) but I don't get it to work!
The latest problem is that it looks like 'DetailsColumn' is not a valid property of the RadGridView (or there is an error in the docs).
The adjusted code is:
method private void RadGridViewDetails_Load( input sender as System.Object, input e as System.EventArgs ):
// TODO: This line of code loads data into the 'nwindDataSet.Employees' table. You can move, or remove it, as needed.
/* this.employeesTableAdapter.Fill(this.northwindDataSet.Employees); */
this-object:radGridView1:ReadOnly = true.
this-object:radGridView1:AllowColumnReorder = false.
this-object:radGridView1:AllowColumnResize = false.
this-object:radGridView1:AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode:Fill.
this-object:radGridView1:AutoExpandGroups = true.
this-object:radGridView1:TableElement:RowHeight = 40.
this-object:radGridView1:GroupDescriptors:Add(new Telerik.WinControls.UI.GridGroupByExpression("City GroupBy City")).
/* this-object:radGridView1:Groups[1][0]:IsCurrent = true. */
this-object:radGridView1:Columns["Photo"]:VisibleInColumnChooser = false.
this-object:radGridView1:Columns["Photo"]:IsVisible = false.
this-object:radGridView1:Columns["Notes"]:WrapText = true.
this-object:radGridView1:Columns["LastName"]:SortOrder = Telerik.WinControls.UI.RadSortOrder:Descending.
this-object:radGridView1:DetailsColumn = this-object:radGridView1:Columns["Notes"].
return.
end method.
The error I get is: Could not locate element 'DetailsColumn' in class Telerik.WinControls.UI.RadGridView
I'm I doeing something wrong here??
Also you notice that I commented this-object:radGridView1:Groups[1][0]:IsCurrent = true.
That's because this is not allowed in OpenEdge? What does this statement mean? Maybe I can transform that so it is allowed in OpenEdge.
What is not clear to me in the example is what code is responsible for adding that DetailsRow?
So what property creates that (default hidden) row that is displayed when I click on a row in the RadGridView
Thanks
Didier

Just researching this component to see if it can do what I want.
I have slightly modified the 'First look' example to see if I can modify it to suit.
From reading the documentation, I should be able to force the connector to attach to a shape on one side , but I cannot get it to work.
As a simple test I tried to add a connection between a member to a Node
Private Sub PopulateWithData() Dim dataXml As XElement = XElement.Load("Organization.xml") For Each element As XElement In dataXml.Elements("Node") Dim node As OrgContainerShape = Me.CreateNode(element, Nothing) node.BaseColor = Me.groupColor(0) Me.RadDiagram1.AddShape(node) currentLayoutSettings.Roots.Add(node) Me.GetSubNodes(element, node, 2) Next'------- Add a new connection as a test ------------------------------- Dim connection As New RadDiagramConnection() connection.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline Dim parentNode = Me.RadDiagram1.Shapes(0) Dim destNode = Me.RadDiagram1.Shapes(7) connection.Source = parentNode connection.Target = destNode connection.SourceConnectorPosition = "Left" connection.TargetConnectorPosition = "Auto" Me.RadDiagram1.AddConnection(connection) End Sub
But it always connects to the bottom of the shape.
What am I doing wrong? ( I have checked and the shape does have a Left connector)
Many thanks
Rob

Hello everyone,
I tried to use the RadDropdownlist in my our project based on Winform, but when i changed the SelectedIndex there is an issue happened, it changed the TextAlignment to center automatically?
Although i tried many solutions to fix it but i cannot, so please help me to solve this issue :(
Bellow are my code, it happened on two bold lines.
var ddl = control as RadDropDownList;if (ddl != null){ if (!string.IsNullOrWhiteSpace(value)) { var selectedItem = ddl.Items.FirstOrDefault(x => x.Value != null && x.Value.ToString() == value); if (selectedItem != null) { ddl.SelectedItem = selectedItem; } } else { ddl.SelectedIndex = -1; ddl.Text = $"Select {childField.FieldName}"; }}else{ var maskedBox = control as MarsMaskedEditBox; if (maskedBox != null) { maskedBox.Value = value; } else { control.Text = value; }}