Telerik Forums
UI for WinForms Forum
1 answer
5 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
8 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
6 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
Telerik team
 answered on 01 Jun 2021
1 answer
10 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
25 views

Hello,

I'm using VS 2019 (Image 0)

Since the last update I'm getting this error trying to update projects: (image 1)

Failed to execute command.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0\ProjectManagement\Upgrade\ScenarioDefinition.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition.Deserialize(String fileName)
   at Telerik.VSX.ProjectConfiguration.ProjectConfigurationTypeSelectorBase.GetScenario(ProjectManagementScenarioPath path)
   at Telerik.WinControls.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.ProjectUpgrade(IPropertyDataDictionary additionalPreWizardData)
   at Telerik.WinControls.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartUpgradeWizard()
   at Telerik.WinControls.VSPackage.CommandExecutor.Execute(UInt32 commandId)
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

 

 

I have tried to remove and reinstall from Telerik control panel, it didn't work.

I also tried removing and reinstalling the extension within visual studio. it didn't work. 

 

I have found that the path c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0 (image 2)

does not contain the folder mentioned in the error description: 

c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0\ProjectManagement 

 

I just noted that I have another path with all the files: (image 3)

C:\Users\jonovoa\AppData\Local\Microsoft\VisualStudio\16.0_8573c414\Extensions\p2gdkolo.2so\ProjectManagement\Upgrade

 

Finally:

Visual studio throws a couple of warnings due to UNRESPONSIVE EXTENSIONS, with the following offenders:

"Progress Telerik  UI for Winforms Extension version 2021.2.505.1" (image 4)

"Progess Telerik WInforms Converter version 2021.2.505.1" (image 5)

 

My installed version is: R2 2021 (2021.2.511.0) (image 6)

 

Please help me to solve this.

Thanks,

Jorge

Vesko
Telerik team
 answered on 01 Jun 2021
1 answer
8 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
18 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
1 answer
8 views

This library is missing in the latest release.

It is essential to rebuild the spreadsheet, pdfviewer, diagram and richtext

Any ideas where I can get it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2021
1 answer
5 views

hi,

how to set a callout size to autosize to fit its content where it holds a radlabel control with wraptext mode once it is used as a tooltip?

thx in advance...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2021
11 answers
580 views
Hi,

I use this telerik for quite sometime now. My question is about the radgrid. We use radgrid quite intensively.

Im trying to delete data using dataadapter and call refresh function of the grid.

dataset.tables(0).row(0).delete
dataadapter.update(dataset)
grid.refresh

The grid didnt refresh and the data is still there. I checked the database, it deleted.

I thought my coding is working then i tried using microsoft grid and I can the desired result. Please help. Is this bug?

Another case: when i try to update and grid is updated.

What happen?
Kapil
Top achievements
Rank 1
Iron
 updated answer on 29 May 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
Calendar, DateTimePicker, TimePicker and Clock
ChartView
ComboBox and ListBox (obsolete as of Q2 2010)
Buttons, RadioButton, CheckBox, etc
Chart (obsolete as of Q1 2013)
DropDownList
ListView
PageView
Form
MultiColumn ComboBox
TextBox
Menu
PropertyGrid
RichTextEditor
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
Carousel
ListControl
Panorama
PdfViewer and PdfViewerNavigator
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
AutoCompleteBox
VirtualGrid
Label
Panel
ContextMenu
Visual Studio Extensions
Documentation
TitleBar
SplitContainer
DesktopAlert
Rotator
TrackBar
ProgressBar
SpinEditor
Map
StatusStrip
MessageBox
ShapedForm
CheckedDropDownList
CheckedListBox
LayoutControl
CAB Enabling Kit
CollapsiblePanel
Conversational UI, Chat
Spreadsheet
Wizard
ScrollablePanel
WaitingBar
BrowseEditor
DateTimePicker
GroupBox
TextBoxControl
Tools - VSB, Control Spy, Shape Editor
ImageEditor
TabbedForm
Gauges (RadialGauge, LinearGauge, BulletGraph)
FileDialogs
ScrollBar
DataEntry
ApplicationMenu
ColorDialog
RangeSelector
DataFilter
CardView
SyntaxEditor
BindingNavigator
PopupEditor
Barcode
ColorBox
Callout
CalculatorDropDown
DataLayout
ValidationProvider
VirtualKeyboard
WebCam
BreadCrumb
FontDropDownList
PictureBox
RibbonForm
TimePicker
ToastNotificationManager
Styling
Accessibility
ButtonTextBox
Licensing
Localization
Rating
Security
Separator
SparkLine
TimeSpanPicker
+? more