Hristo Merdjanov
Team Member

FIX. RadGridView - cannot paste data after read-only cells

How to reproduce
public partial class Form1 : RadForm
{
public Form1()
{
InitializeComponent();

GridViewTextBoxColumn textBoxColumn = new GridViewTextBoxColumn();
textBoxColumn.Name = "Column";
textBoxColumn.HeaderText = "Column";
this.radGridView1.MasterTemplate.Columns.Add(textBoxColumn);

GridViewTextBoxColumn textBoxColumn2 = new GridViewTextBoxColumn();
textBoxColumn2.Name = "TextBoxColumn2";
textBoxColumn2.HeaderText = "ReadOnlyColumn";
this.radGridView1.MasterTemplate.Columns.Add(textBoxColumn2);

for (int i = 0; i < 10; i++)
{
object v = i * 2;
if (i % 3 == 0)
{
v = null;
}

this.radGridView1.Rows.Add(new object[] { i, v });
}

this.radGridView1.MultiSelect = true;
foreach (var row in this.radGridView1.Rows)
{
foreach (var cell in row.Cells)
{
GridViewCellInfo cellInfo = cell as GridViewCellInfo;
if (cellInfo != null && cellInfo.RowInfo.Index % 3 == 0 && cellInfo.ColumnInfo.Index == 1)
{
cellInfo.ReadOnly = true;
}
}
}
}

}

Workaround:
public class MyRadGridView : RadGridView
{
public override string ThemeClassName
{
get
{
return typeof(RadGridView).FullName;
}
}

protected override RadGridViewElement CreateGridViewElement()
{
return new MyRadGridViewElement();
}
}

internal class MyRadGridViewElement : RadGridViewElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(RadGridViewElement);
}
}

protected override MasterGridViewTemplate CreateTemplate()
{
return new MyMasterGridViewTemplate();
}
}

internal class MyMasterGridViewTemplate : MasterGridViewTemplate
{
protected override void PasteDataToRow(List<string> rowData, GridViewRowInfo row)
{
{
int colIndex = this.Owner.CurrentColumn.Index;
int j = 0;

while (j < rowData.Count && colIndex < this.CurrentView.ViewTemplate.ColumnCount)
{
GridViewColumn col = this.CurrentView.ViewTemplate.Columns[colIndex];
if (col.IsVisible && !col.ReadOnly && !row.Cells[colIndex].ReadOnly)
{

object value = rowData[j];

if (string.IsNullOrEmpty(rowData[j]))
{
value = null;
}
else if (this.CurrentView.ViewTemplate.Columns[colIndex].DataType == typeof(string))
{
GridViewTextBoxColumn textColumn = col as GridViewTextBoxColumn;

if (textColumn != null && textColumn.MaxLength > 0)
{
if (rowData[j].Length > textColumn.MaxLength)
{
value = rowData[j].Substring(0, textColumn.MaxLength);
}
}
}
else if (this.CurrentView.ViewTemplate.Columns[colIndex].DataType == typeof(DateTime))
{
try
{
value = DateTime.Parse(rowData[j], this.CurrentView.ViewTemplate.Columns[colIndex].FormatInfo);
}
catch { }
}
else if (this.CurrentView.ViewTemplate.Columns[colIndex].DataType == typeof(Color))
{
try
{
value = ColorTranslator.FromHtml(rowData[j]);
}
catch { }
}

if (this.ClipboardPasteMode == GridViewClipboardPasteMode.EnableWithNotifications)
{
CellValidatingEventArgs cellValidating = new CellValidatingEventArgs(row, col, value, row.Cells[colIndex].Value, null);
this.EventDispatcher.RaiseEvent<CellValidatingEventArgs>(EventDispatcher.CellValidating, this, cellValidating);

if (!cellValidating.Cancel)
{
row.Cells[colIndex].Value = value;

CellValidatedEventArgs cellValidated = new CellValidatedEventArgs(row, col, value);
this.EventDispatcher.RaiseEvent<CellValidatedEventArgs>(EventDispatcher.CellValidated, this, cellValidated);
}
}
else
{
row.Cells[colIndex].Value = value;
}

j++;
}

colIndex++;
}
}
}
}


Bug Report by Hristo Merdjanov Status: In Development Comments: 0 Category: RadGridView Scheduled for: R3 2017 Last update: 2017-06-28T08:27:13 by Ivan Petrov
0
Boryana Goncharenko

ADD. TPF - html-like Support for Right-To-Left Languages

Currently, html-like formatting does not work for right-to-left languages
Feature Request by Boryana Goncharenko Status: Approved Comments: 1 Category: TPF Scheduled for: Not Scheduled Last update: 2017-06-27T21:37:13 by Bekir Bekte
0
Hristo Merdjanov
Team Member

ADD. RadRichTextEditor - Missing localization strings for some parts of the UI

The following parts are with hard coded strings and cannot be localized:

- Insert Caption (InsertCaptionDialog): Combo boxes for label and separator
- Paragraph Properties (ParagraphPropertiesDialog): Units of spacing and indentation values (pt)
- Tab Stops Properties (TabStopsPropertiesDialog): The text of the tabStopsToBeClearedTextBloc
- Cross references: reference types Figure and Table
- TOC and TOF: Heading and Figure, Caption labels
- Document Ruler: Tooltips
- FormattingColorPicker: The "No Color" string
Feedback by Hristo Merdjanov Status: New Comments: 1 Category: None Scheduled for: Not Scheduled Last update: 2017-06-27T14:27:35 by Bekir Bekte
0
Desislava Yordanova
Team Member

FIX. RadMultiColumnComboBox - arrow image moves to the bottom a few pixels in WIndows8 theme after disable/enable operation

To reproduce: please refer to the attached sample project and refer to the screenshot. You will notice that initially, the arrow is a few pixels up. If you disable and then enable the RadMultiColumnComboBox again you will notice the difference.
Workaround:

private void radToggleButton1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
{
ImagePrimitive img = this.radMultiColumnComboBox1.MultiColumnComboBoxElement.ArrowButton.FindDescendant<ImagePrimitive>();
img.Margin = new Padding(0);
if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
{
this.radMultiColumnComboBox1.Enabled = true;
this.radMultiColumnComboBox1.MultiColumnComboBoxElement.ArrowButton.Padding = new Padding(0);
}
else
{
this.radMultiColumnComboBox1.Enabled = false;
}
}
Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 3 Category: RadMultiColumnComboBox Scheduled for: Not Scheduled Last update: 2017-06-27T11:27:21 by Desislava Yordanova
0
Desislava Yordanova
Team Member

FIX. RadGridView - NullReferenceException when copying an empty cell in GridViewSelectionMode.CellSelect

To reproduce: run the attached sample project:

1. Clear the value in one of the cells.
2. Select the empty cell and press Ctrl+C to copy the empty cell. You will encounter the error coming from the GetFormattedCellValue method.

Workaround: handle the RadGridView.Copying event

private void RadGridView1_Copying(object sender, GridViewClipboardEventArgs e)
{
if (this.radGridView1.SelectionMode == GridViewSelectionMode.FullRowSelect)
{
foreach (var row in this.radGridView1.SelectedRows)
{
foreach (var cell in row.Cells)
{
GridViewCellInfo cellInfo = cell as GridViewCellInfo;
if (cellInfo != null && cellInfo.Value == null)
{
cellInfo.Value = "";
}
}
}
}
else
{
foreach (var cell in this.radGridView1.SelectedCells)
{
if (cell.Value == null)
{
cell.Value = "";
}
}
}
}
Bug Report by Desislava Yordanova Status: In Development Comments: 0 Attachments: 2 Category: RadGridView Scheduled for: R3 2017 Last update: 2017-06-27T10:16:53 by Hristo Merdjanov
0
Svetlin Ralchev

FIX. RadGridView - when UseCompatibleTextRendering property is set to false, the data cells overlaps the row header cells when horizontal scrolling is performed.

When UseCompatibleTextRendering property is set to false, the data cells overlaps the row header cells when horizontal scrolling is performed.
Bug Report by Svetlin Ralchev Status: Approved Comments: 3 Attachments: 1 Category: RadGridView Scheduled for: Not Scheduled Last update: 2017-06-27T08:56:51 by Thomas Christian
0
Hristo Merdjanov
Team Member

FIX. RadPropertyGrid - missing error image for failed validation in the Windows8 theme

Bug Report by Hristo Merdjanov Status: In Development Comments: 0 Attachments: 1 Category: RadPropertyGrid Scheduled for: R3 2017 Last update: 2017-06-27T07:51:14 by Ralitsa Kumanova
0
Hristo Merdjanov
Team Member

ADD. RadRichTextEditor - implement support for content controls

Implement support for content controls (a.k.a. Structured document tags), which will allow inserting editing controls in the document:

- Rich Text
- Plain Text
- Check Box
- Combo Box
- Drop-down list
- Date picker
Feature Request by Hristo Merdjanov Status: Approved Comments: 2 Category: RadRichTextEditor Scheduled for: Not Scheduled Last update: 2017-06-26T14:22:48 by Tanya Dimitrova
0
Dimitar Karamfilov
Team Member

FIX. Element Hierarchy Editor - the controls are not anchored and are not resized with the form.

To reproduce:
- Open the Element Hierarchy Editor and resize it.

Bug Report by Dimitar Karamfilov Status: New Comments: 0 Category: None Scheduled for: Not Scheduled Last update: 2017-06-26T11:10:41 by Dimitar Karamfilov
0
Dimitar Karamfilov
Team Member

ADD. RadChartView - add axis that shows ticks at the data-points values.

Feature Request by Dimitar Karamfilov Status: New Comments: 0 Attachments: 1 Category: RadChartView Scheduled for: Not Scheduled Last update: 2017-06-26T07:34:01 by Dimitar Karamfilov
0
Displaying items 1 - 10 of 1017