Telerik Forums
UI for WinForms Forum
2 answers
197 views

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!

 

 

James
Top achievements
Rank 1
 answered on 01 Dec 2020
3 answers
543 views

How do I copy the the current image to the Clipboard?

 

Clipboard.SetImage(radImageEditor1.?);

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Dec 2020
4 answers
124 views

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);
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Dec 2020
4 answers
531 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Dec 2020
1 answer
222 views

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.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Nov 2020
1 answer
541 views

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);
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Nov 2020
1 answer
374 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Nov 2020
3 answers
67 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Nov 2020
2 answers
79 views

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.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Nov 2020
1 answer
123 views

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.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Nov 2020
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?