If someone could point me in the right direction I'd appreciate it.
I am exporting a grid using the GridViewSpreadExport. I stylize the cells using the grid's ViewCellFormatting event.
I expected WYSIWYG functionality. For the most part, everything exports as expected. However, it seems some of the cell formatting that I perform in the ViewCellFormatting event to format the Header cells isn't captured in the grid's exportation to Excel.Specifically, the Header cell textorientation and fliptext properties are ignored.
How might I incorporate that into the exportation??
Thank you for your time!
How do I copy the the current image to the Clipboard?
Clipboard.SetImage(radImageEditor1.?);
I have a pushbutton to save current image to disk. 2 problems
1. it takes at least 15 seconds for FileSaveDialog to open?
2. Cannot get SaveImage or SaveImageAs to work.
Code: Below:
private void butSavePreview_Click(object sender, EventArgs e)
{
string saveFName;
saveFName = Path.GetFileNameWithoutExtension(dgvFiles.CurrentRow.Cells[1].Value.ToString());
radSaveFileDialog1.FileName = saveFName;
radSaveFileDialog1.Filter = "JPG | *.jpg";
if (radSaveFileDialog1.ShowDialog() == DialogResult.OK)
{
saveFName = radSaveFileDialog1.FileName + ".jpg";
radImageEditor1.SaveImage(saveFName);
}
}
I collapse some groups of RadPropertyGrid programmatically, but it's don't work. Those groups collapse, but I can't expand it with the mouse. those appear as disabled.
#region RPG: CONFIGURACION DE GRUPOS----------------------ini
private void rpgMaquina_CustomGrouping(object sender, PropertyGridCustomGroupingEventArgs e)
{
switch (e.Item.Category)
{
case "General": e.GroupKey = 0; e.Handled = true; break;
case "Inventario": e.GroupKey = 1; e.Handled = true; break;
case "Pares de apriete": e.GroupKey = 2; e.Handled = true; break;
case "Accesorios": e.GroupKey = 3; e.Handled = true; break;
default:
break;
}
}
private void rpgMaquina_ItemFormatting(object sender, PropertyGridItemFormattingEventArgs e)
{
PropertyGridGroupItem groupItem = e.Item as PropertyGridGroupItem;
if (groupItem != null)
{
e.Item.Label = groupItem.GridItems[0].Category;
if (e.Item.Label == "Inventario" || e.Item.Label == "Accesorios")
{
groupItem.Collapse();
//groupItem.Enabled = true;
}
}
}
#endregion RPG: CONFIGURACION DE GRUPOS-------------------fin
Hi,
Actually, I have data as attached Data.png file. I have to create a bar chart for Pendency type grouped in Project wise, Level wise just like attached BarChartMultipleGroups.png file.
Please help me to achieve this.
Thank You.
I have a gridview with 3 columns and I want to make sure that all cells in the row have a value in them. If col0 is null and the user goes back and enterd data, the event does not detect the changes and just gets stuck in the col0 cell. As you can see, I tried a couple of different ways. Below is my code:
private void dgvCatagories_CellValidating(object sender, CellValidatingEventArgs e)
{
try
{
GridViewDataColumn column = e.Column as GridViewDataColumn;
// if (string.IsNullOrEmpty((string)e.Row.Cells["Col0"].Value) || ((string)e.Row.Cells["Col0"].Value).Trim() == string.Empty ||
// string.IsNullOrEmpty((string)e.Row.Cells["Col1"].Value) || ((string)e.Row.Cells["Col1"].Value).Trim() == string.Empty ||
// string.IsNullOrEmpty((string)e.Row.Cells["Col2"].Value) || ((string)e.Row.Cells["Col2"].Value).Trim() == string.Empty)
if (e.Row is GridViewDataRowInfo && column != null && column.Name == "Col0" ||
e.Row is GridViewDataRowInfo && column != null && column.Name == "Col1" ||
e.Row is GridViewDataRowInfo && column != null && column.Name == "Col2")
{
e.Cancel = true;
((GridViewDataRowInfo)e.Row).ErrorText = "Cell Can Not Be Blank";
}
else
{
((GridViewDataRowInfo)e.Row).ErrorText = string.Empty;
}
}
catch (Exception ex)
{
LogFile(ex.Message, ex.ToString(), "dgvCatagories_CellValidating", this.FindForm().Name);
}
}
Hi,
All examples, forums and online docs discuss calling GridViewSpreadExport's RunExport method on every iteration of a loop when exporting multiple RadGridViews.
This is costly as the Excel document is opened, written to and saved on every iteration.
Is there a way of avoiding having to call RunExport on every iteration?
Ideally, you'd want to setup multiple Excel sheets from RadgRidViews in memory and then issue the RunExport command outside of the loop.
Is there a mechanism to achieve this, either with GridViewSpreadExport / SpreadExportRenderer or other...?
Thanks
The setting does not work when the range is left at its default setting.
Setting does not work when only one default setting is modified.
version: 2019.2.618.40
How to line up english message in chat bubble
Hello, ChatBubble has problem.
ex)
(e.ItemElement as TextMessageItemElement).MainMessageElement.TextAlignment = ContentAlignment.MiddleLeft;
(e.ItemElement as TextMessageItemElement).MainMessageElement.UseCompatibleTextRendering = false;
When UseCompatibleTextRendering's value is false, english Line spacing fails.
But another language line spacing successes.
So, How to line spacing english? I want to solve it.
Thanks.
I have two ChartView, one displaying moving average indicators and the other displaying other technical indicators, which have the same timeline.
How can I using one RangeSelector to control the two ChartView at the same time.