Telerik Forums
UI for WinForms Forum
2 answers
224 views

I need to show the user some XML, but formatted nicely (identing, colors etc).

Can I use RichTextEditor for this? If so how (vb.net please!).

I don't need to edit the XML now, but I will need to in future (hence not using a Browser-type control)

Thanks

 

Ian
Top achievements
Rank 2
Bronze
Bronze
Iron
 answered on 07 Mar 2023
2 answers
411 views

I have a project where the user wants a multi tab control on a WinForm - no problem.

On the first tab however, they want too many controls to fit on the screen, Therefore they want the first tab's RadPageViewPage to scroll up and down. They do not want a sub tab. The problem is that there are so many controls that if they were separate tab they would fill four of them. I realize that scrolling is not the point of a tab control but this is what they want. Still, there are limits to the size of a Form and the size of the RadPageViewPage control.

Is this something that can realistically be done or is this just asking for too much?

Thanks

Carl

 

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 07 Mar 2023
1 answer
651 views

Hi,

I'm trying to display the check box in the header of a GridViewCheckBoxColumn and have it centered but it is still not aligned with the rest of the rows. 

I set the column property HeaderCheckBoxAlignment = ContentAlignment.MiddleCenter but still there is a gap. Please see the image attached.

Thank you,

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2023
1 answer
141 views
I have a custom class of TokenizedTextBlockElement that is displaying 3 different color 'styles' for token - green, yellow and red (backgrounds are #E3EDE1, #FCF8E3, #F2DEDE respectively), so the default RemoveButton's image is not visible enough.

I want to change the "X" image (RemoveButton) and it's states (default,  MouseOver, MouseDown, Disabled). It can be either by creating 3 different classes in Telerik's VisualStyleBuilder, or inside c# project's code but they need to be #1A3B17, #665A1F, #661F1F. How do I fix this issue?

In attachment I am presenting my current design issue (ignore the red exclamation point icon - it is a temporary icon to be replaced with more appropriate icons).
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Mar 2023
1 answer
234 views

Hi Telerik support team,

I've performance issues with sorting in a radGridView. Below you find a very simple example (grid with 2 text columns) and nothing specials. The dataset (deserialized from a json file) contains 7560 rows, which is not much. 

My own conclusion is 'it depends on the data'. In my dataset the column PhaseName is sorting ok. ProjectName is very slow. When I group the columns I see that ProjectName has not much groups (so a lot of duplicates) and PhaseName has a lot of groups (so, not much duplicates).

I tried to fasten it up with custom sorting but I got the same result. Can you help me with this issue??

(by the way: grouping also takes a lot of time)

Code:


    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();

            radGridView1.Columns.Add(new GridViewTextBoxColumn("ProjectName") { ReadOnly = true });
            radGridView1.Columns.Add(new GridViewTextBoxColumn("PhaseName") { ReadOnly = true });

            LoadData();
        }

        private void LoadData()
        {
            var json = File.ReadAllText(@"c:\Daniel\content.json");

            var list = JsonConvert.DeserializeObject<List<ProdTemp>>(json);
            radGridView1.DataSource = list;
        }

        internal class ProdTemp
        {
            public string ProjectName { get; set; }
            public string PhaseName { get; set; }
        }
    }

 

Regards,

Daniel Kaya

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Mar 2023
1 answer
152 views

Hello,

I am trying to export a radPivotGrid into excel as per the documentation

 

 private void radButton1_Click(object sender, EventArgs e)
        {
            SaveFileDialog sf = new SaveFileDialog();
            sf.Filter = "EXCEL | .xls";
            if (sf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // Telerik.WinControls.UI.Export.ExportToExcelML htmlexport = new Telerik.WinControls.UI.Export.ExportToExcelML(radPivotGrid_StockPositionPivot);
                //  htmlexport.RunExport(sf.FileName);


                PivotGridSpreadExport spreadExport = new PivotGridSpreadExport(radPivotGrid_StockPositionPivot);
                spreadExport.RunExport(@"..\..\exported-file.xlsx", new SpreadExportRenderer());
            }
        }

 

the red marked position is throwing an exception, and code suggestion is asking to create a new class to implement SpreadExortRenderer I am not sure how it can be done, any help will be appreciated. TIA

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Mar 2023
1 answer
130 views

Please see the picture attached - I 'd like to display only the green options,

thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Mar 2023
1 answer
122 views

Dear sir/madam,

I used your solution for adding a checkbox in grouprows of a grid for UI Winforms:

winforms-sdk/GridView/GridCheckAllGroupRows at master · telerik/winforms-sdk · GitHub

Only specific grouprows need a checkbox, not all grouprows, which I handle in the CreateCell event. So far so good, seems to work perfect.

But.... when I start scrolling in the grid, because not all grouprows are visible in one screen, and the grouprows that have a checkbox leave the screen because of scrolling down, and then scrolling up again, the checkbox in the grouprow is gone, and grouprows that did not have the checkbox have now a checkbox?

Strange, I cannot figure out what is going wrong.

Hopefully  I succeeded in describing the situation clearly.
Help would be appreciated.

Kind regards.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Mar 2023
0 answers
109 views

Hi,

I have a radgridview with fullrowselect enabled. When i select a cell, the row is selected correctly, but the selected cell changes padding or width slightly which seems to affect the entire column.

It's just a minor visual annoyance, but is there a way to prevent this?

Thanks,

Philip

Philip
Top achievements
Rank 1
 asked on 03 Mar 2023
1 answer
177 views

Hello!

My company is using RadGridView for an application where users can view and organize/edit SQL data. The grid is set to allow paging and up to 50 rows per page. Because of the size of some of the tables our users work with, the pages can number in the hundreds, which raises an issue when using the grid's built-in sorting capabilities. 

By default, the grid seems to sort all the data in the table as opposed to just the visible rows on screen. This results in a portion of data being displaying that is completely different from what is supposed to be on that page. What I'm looking to do is to have the grid sort only the child rows visible on the page.

I assume going the custom sort rout is necessary here? I've tried a bunch of different approaches to varying degrees of success, but nothing's gotten me quite there. The grid is data bound, which working around has been maybe the biggest hurdle for me so far. Ideally I'd like to be able to reorganize the rows on screen without having to rebind the grid, though I'm not sure how feasible that it. Regardless, any help is appreciated!

Best,

Rich

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