Telerik Forums
UI for WinForms Forum
1 answer
155 views
hi, i have a problem when exporting a Telerik radgrid to an Excel File and it opens at the sime time, in full hd screens all the forms make small (like if resolution change), in other pcs with no full hd res the problem is not present.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jun 2021
1 answer
105 views

Greetings.

Is it possible to change the Radchart Series LabelMode programmatically ?

Unlike some properties such as ShowLabels, LabelMode isn't listed in the series properties.

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jun 2021
1 answer
91 views

Hi !

excuse my speed message, it's end of job day.

i'm using designer to find the good solution before make it by codehind.

i've got a relation from 2 class (P(parent) C(child) by idP)

i want group parent by "programme" , hide group possibilities and panel.

Result wanted :

PROG 1

> P1-AA

>> a

>>aa

>> aaa

>P1-BB ....

but i've got a bad result see attachment.

 

i've got 2 class for sample source:



 List<PClass> P = new List<PClass> { new PClass() {programme="PROG 1" , idP = 1, LibP = "P1-AA" },
                                                new PClass() {programme="PROG 1", idP = 2, LibP = "P1-BB" },
                                                new PClass() {programme="PROG 2", idP = 3, LibP = "P2-CC" },
                                                new PClass() {programme="PROG 2", idP = 4, LibP = "P2-DD" },
                                                new PClass() {programme="PROG 2", idP = 5, LibP = "P2-EE" }
                                              };



            List<Cclass> C = new List<Cclass> { new Cclass() { idC = 1, idP = 1, LibC = "a" },
                                                new Cclass() { idC = 2, idP = 1, LibC = "aa" },
                                                new Cclass() { idC = 3, idP = 1, LibC = "aaa" },
                                                new Cclass() { idC = 4, idP = 2, LibC = "p1-b" },
                                                new Cclass() { idC = 5, idP = 2, LibC = "p1-bb" },
                                                new Cclass() { idC = 6, idP = 3, LibC = "p2-c" },
                                                new Cclass() { idC = 7, idP = 4, LibC = "p2-d" },
                                                new Cclass() { idC = 8, idP = 4, LibC = "p2-dd" },
                                                new Cclass() { idC = 9, idP = 4, LibC = "p2-ddd" },
                                                new Cclass() { idC = 10, idP = 5, LibC = "p2-e" },
                                                new Cclass() { idC = 11, idP = 5, LibC = "p2-ee" }
                                                };

rg.DataSource = P;
gridViewTemplate1.DataSource = C;

Thanks for your help.

Nadya | Tech Support Engineer
Telerik team
 answered on 03 Jun 2021
1 answer
350 views

My problem is that when assigning 3 or more shortcuts it comes out "None" even though I have referenced how to initialize the shortcut for RadMenu

This is my code and result image

Thank for reading


            

this.FSaveAs.Name = "FSaveAs"; this.FSaveAs.Text = "Save As"; this.FSaveAs.Click += new System.EventHandler(this.FSaveAs_Click); this.FSaveAs.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.Shift, Keys.S));

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2021
1 answer
154 views

All,

I am looking for Rad Control that is Windows ListView horizontal like attached Pic.

 

It is a windows ListView in List mode but items show up sorted, with checkbox and in a horizontal manor. 

I have tried the RadListView but it only allows a column to go horizontal or verticle.  No wrap around once 

control is filled like you see in the attached pic.

 

I really want to use a rad control liking the themes, but in this case the win listview control works well, but not able to use the rad theme on it.

 

Thanks....

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2021
1 answer
641 views

I have a panel class ExRadPanel, that inherits from RadPanel. I try to apply to it a copy of the style that is used for PropertyGridHelpElement in RadPropertyGrid. Below is my test code, but it doesn't work properly. Some style is attached to FillPrimitive inside ExRadPanel, but the visual effect is not like I expect.

 Is that possible to make modify a theme in runtime to make a copy of the required style setting with proper settings? 

private static void FixTheme(Theme theme)
{
    // try to add registration
    var sg = theme.FindStyleGroup(typeof(RadPropertyGrid).FullName);
    sg.Registrations.Add(new MyStyleRegistration
    {
        RegistrationType = "ElementTypeControlType",
        ElementType      = "Telerik.WinControls.RootRadElement",
        ControlType      = typeof(ExRadPanel).FullName
    });
    sg.Registrations.Add(new MyStyleRegistration
    {
        RegistrationType = "ElementTypeControlType",
        ElementType      = typeof(RadPanelElement).FullName,
        ControlType      = typeof(ExRadPanel).FullName
    });

    var copy = sg.PropertySettingGroups.ToArray();
    foreach (var settingGroup in copy)
    {
        if (settingGroup.Selector is null)
            continue;
        if (settingGroup.Selector.Value != nameof(PropertyGridHelpElement))
            continue;
        {
            // trying this ... 
            var newSg = new PropertySettingGroup
            {
                Selector = new ElementSelector(settingGroup.Selector.Type, nameof(RadPanelElement)),
                BasedOn  = settingGroup.BasedOn
            };
            newSg.Repositories.AddRange(settingGroup.Repositories);
            newSg.PropertySettings.AddRange(settingGroup.PropertySettings);
            sg.PropertySettingGroups.Add(newSg);
        }
        {
            // ... and this    
            var newIi = new PropertySettingGroup
            {
                Selector = new ElementSelector(ElementSelectorTypes.TypeSelector, typeof(FillPrimitive).FullName),
                BasedOn  = settingGroup.BasedOn
            };
            newIi.Repositories.AddRange(settingGroup.Repositories);
            newIi.PropertySettings.AddRange(settingGroup.PropertySettings);
            sg.PropertySettingGroups.Add(newIi);
        }
    }
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2021
1 answer
430 views
I have this code and i want to load convert to method to load image async Is there any way to do that
 public class MyTypeConverter : TypeConverter
    {
        public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
        {
            if (destinationType.Equals(typeof(Image)))
                return true;

            return base.CanConvertTo(context, destinationType);
        }

        public override object ConvertTo(ITypeDescriptorContext context,
            System.Globalization.CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType.Equals(typeof(Image)))
            {
                WebRequest request = System.Net.WebRequest.Create(value + "");

                using (var response = request.GetResponse())
                {
                    using (var stream = response.GetResponseStream())
                    {
                        return Bitmap.FromStream(stream);
                    }
                }
            }
            return base.ConvertTo(context, culture, value, destinationType);
        }
    }

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Jun 2021
1 answer
60 views

Dear sirs,

I hope this email finds you well and healthy.

I am developing an application using Telerik WinUI and my question is: What tool made the side bar used in Progress Telerik UI for WinForms Interface in the demo application, i just like the way it works i mean, all the forms are available and are opening in the same window, without having to open each form individually.

 

Thank you very much for your kind help and assistance,

Hani Mansour

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2021
1 answer
117 views
I have a range bar chart which is changed by 90 degree orientation . I wanted to streamline the thickness of the line as you can see in 5/17/2021 the lines are of different thickness and in 5/19/2021 it is lengthier . Attached is the image of the same . Kindly do the needful
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2021
3 answers
743 views

Hi,

We have problem identifying objects on Telerik grids, from UI automation tool. Quite many screens in our application are using Telerik grids. We now are trying UI automation using Ranorex. Most parts are going good, except Telerik grid! Basically, objects inside the grid are not identified as they should.

Found similar discussion at https://www.telerik.com/forums/635401-gridview and we made change as per suggestion, by introducing "EnableCodedUITests = true". However, no good lunch, it worked only partially.

For ex, from the screen below, would like to access value of 'Status' from first row.

Expectation would be, Row0/1(based on indexing logic), column 'Status' and text/value "Arrived". However, it doesn't work so! Ranorex thinks, its something to discuss with Telerik. They asked to test it using 'inspect.exe' tool from win10 sdk. We tried and got same result. Below is the screenshot of result form inspect.exe

Row number is OK, but not column name is identified.. also, Value/Text is empty.

If inspect.exe cannot detect, heard no other automation tool in market can!

By the way, it works well with win.net grids.

Here is the sample of inspection on win.net grid... Column name and cell values are identified very well.

How can this be fixed for Telerik grid?!

Thanks in advance,

Vijay

Dimitar
Telerik team
 answered on 31 May 2021
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
+? 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?