Hello,
I have followed the tutorials and I was able to add a CustomCell made of a RadColorBox, this is working perfectly fine as long as the number of columns in the ListBox does not cause the horizontal scroll bar to appear. When this happens, and the user scrolls to show the other columns, the RadColorBox disappears initially and, by debugging what's happening, I see that it's "changing" the cell looping between all the columns in the rows.
This is the starting state
This is what happens when I scroll right untill the first column goes out of view then back in starting position
This is what happens if i keep scrolling left and right, the ColorBox is in the last column
If I keep scrolling left and right
Please note that this "scrolling" ColorBox is possible only because I have commented a line in the custom control
public override bool IsCompatible(ListViewDetailColumn data, object context)
{
//if (data.Name != "Colore")
//{
// return false;
//}
return base.IsCompatible(data, context);
}If I uncomment the name check, the ColorBox disappears until I have scrolled left and right enough times to allow it to go back to the first column, by debugging the data.Name value I see that it's "moving" from one column to another
This is the Creating event and I am adding the custom cell only if the cell is "Colore", exactly like in the examples, can anyone help me fix this strange behaviour?
private void listEventi_CellCreating(object sender, Telerik.WinControls.UI.ListViewCellElementCreatingEventArgs e)
{
DetailListViewDataCellElement cell = e.CellElement as DetailListViewDataCellElement;
if (cell != null && cell.Data.Name == "Colore")
{
var newCell = new CustomDetailListViewDataCellElement(cell.RowElement, e.CellElement.Data);
newCell.FormParent = this;
e.CellElement = newCell;
}
}Thank you in advance for any suggestion

I have a Pivot Grid, that has a data set that has two fields, In those fields, it's possible that records in that collection could have empty string value. And if I set one field to be my column group and the other to be my row group and one of those fields as my aggregate count field, everything looks fine, and as expected.
However, as soon as I filter the ROW GROUP other than the EMPTY value, it drops the COLUMN groups "EMPTY" string column, as well, as if I filter the COLUMN GROUP on a non-empty value, it removes the ROW GROUP's empty string row. I am not sure if this is by design or what but, this is causing an issue for our customers as they cannot figure out why their numbers in this pivot grid are not the same in other reports (non-pivot). NOTE, if I filter in either the GROUP or COLUMN fields for the "EMPTY" string value, all the EMPTY string values still show in the COLUMN/ROW groups.
As a solution to this problem, I made sure that these "EMPTY" string fields has at least one empty space in them... Attached is my sample project. Once you run the form, just filter either the ROW or COLUMN group on anything other than the EMPTY string value.
Thanks

I think there is a little bug in column header with gridview when sorting a grouped column and ShowGroupedColumns = true.
Changing sorting direction only works first time, then you need to click on grouped tag to change sorting direction. See attached gif

I have attached the example project used in the gif to test this.

[Refer attached for sample project]
Question: How to add Combo Box in a RadGridView Cell?
Requirements:
Sample below using DataGridView:
//DataGridView
dataGridView1.Columns.Add("Item", "Item");
dataGridView1.Columns.Add("Value", "Value");
dataGridView1.Columns.Add("Type", "Type");
dataGridView1.Columns.Add("Options", "Options");
list = new List<string[]>();
list.Add(new string[] { "Result", "DropDown", "Pass,Failed" });
list.Add(new string[] { "UserId", "Text", "" });
index = 0;
foreach (string[] s in list)
{
dataGridView1.Rows.Add(s[0], "", s[1], s[2]);
switch (s[1])
{
case "DropDown":
DataGridViewComboBoxCell cmb = new DataGridViewComboBoxCell();
var selection = s[2].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
cmb.DataSource = selection;
this.dataGridView1.Rows[index].Cells[1] = cmb;
break;
case "Text":
this.dataGridView1.Rows[index].Cells[1].Value = "Text Field";
break;
}
index++;
}

I am developing log viewer using richtexteditor.
I do input the function whenever adding text on richtexteditor, it shows lastest part on there and cursor is located bottom on the control.
How to do it on richtexteditor.
And if you have more convienient choice to develop log viewer. let me know.
Hi,
with custom taggers is it possibile to manage insentive custom grammar?
thank you


Hi,
I am using a RadGridView to display user values related to each others in multiple ways.
I wish to periodically scan all cells to check the values and then flag them with a red or green cell border.
I keep all the cells status in a Dictionary<point, status> with point being the cell coordinates.
However, Idon't find a way to have all cells with a reference in the dictionary permanently showing the right border depending on its status.
I am using the cell_formatting event, but the border color disappear when cell is not current.
Here is some sample code
private void gvLignesFacture_CellFormatting(object sender, CellFormattingEventArgs e)
{
// On décore la cellule selon son status
Point cellCoordinates = new(e.CellElement.RowIndex, e.CellElement.ColumnIndex);
if (DictOfGvCellStatusByCoordinates.TryGetValue(cellCoordinates, out var lookStatus))
{
switch (lookStatus)
{
case CtrlLook.Default:
e.CellElement.Font = GlobalVars.smallRegularFont;
e.CellElement.BorderColor = Color.Black;
break;
case CtrlLook.Valid:
e.CellElement.Font = GlobalVars.smallBoldFont;
e.CellElement.BorderColor = Color.Green;
break;
case CtrlLook.Incorrect:
e.CellElement.Font = GlobalVars.smallRegularFont;
e.CellElement.BorderColor = Color.Red;
break;
}
}
}
How to do this right ?
Many thanks for your answer
Patrick

First, thanks for the awesome stuff, getting it going was easy.
However, I'm having a few issues and can't seem to figure out a way around them. I'm trying to make a JSON tagger.
Here is how I'm defining things:
Private Shared ReadOnly Keywords As String() = New String() {""""}
Private Shared ReadOnly Operators As String() = New String() {"{", "}", "[", "]", ":", ","}Here is an example of the output
The problems I see are:
The second double quote isn't colored like the first one.
The colon isn't colored
The comma after the double quote isn't colored
The closing brace and comma aren't colored
Also, is there a way to highlight the text between characters? I'd like to highlight the keys and values, and differently from each other if possible.
I'm sure I'm doing it wrong, but haven't been able to figure it out.
Thanks!

I'm trying to insert text at the start of a line in the radSyntaxEditor.
I haven't found a way to do it, and was attempting to use the following code
Dim cp As CaretPosition = editor.SyntaxEditorElement.CaretPosition
cp.MoveToLineStart()However, this doesn't appear to move to the start of the current line.
Ultimately, I'd rather not actually move the cursor, I'd like to insert without doing that. Is that possible?
