Telerik Forums
UI for WinForms Forum
1 answer
284 views

Hello, I got this error when I've tried to show a RadSvgImage  in a GridViewImageColumn

 

message: Converter can't convert

stack trace:

  at Telerik.WinControls.UI.RadDataConverter.ThrowFormatException(Exception ex, String message)
   at Telerik.WinControls.UI.RadDataConverter.ChangeType(Object value, Type targetType, IFormatProvider formatInfo)
   at Telerik.WinControls.UI.RadDataConverter.ParseCore(Object value, Type targetType, Type sourceType, TypeConverter dataTypeConverter, IDataConversionInfoProvider dataColumn, Boolean checkFormattedNullValue, CultureInfo cultureInfo)
   at Telerik.WinControls.UI.RadDataConverter.Parse(IDataConversionInfoProvider converstionInfoProvider, Object value, CultureInfo cultureInfo)
   at Telerik.WinControls.UI.GridViewRowCollection.Add(Object[] values)

 

Code


Dim colIdiomaOriginalSvg As New GridViewImageColumn("IdiomaOriginalFoto")


     If gradeParesIdiomasRecursos.Columns.Count = 0 Then
            gradeParesIdiomasRecursos.MasterTemplate.Columns.Add(colIdiomaOriginalSvg)            
     End If

Dim fotoDtpSvg As RadSvgImage = RadSvgImage.FromXml(xmlSvgImage)
gradeParesIdiomasRecursos.Rows.Add(fotoDtpSvg)
Thanks in advange
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Nov 2021
0 answers
94 views

Hello, when using the Telerik RadWordsProcessing Library as in This Link to copy the contents of a document into another one, the contents of the target document don't have the same format as those of the source document.

I could use the clone functionality as it keeps the source formatting, but the problem with that method is that it overrides the contents that are currently in the target document, and I need to do this thing over and over again and then save it. If I try to export using the clone method and then append using a file stream, I get an error saying "Unable to truncate data that previously existed in a file opened in Append mode."

Basically what I'm doing is copying the contents of a template, replacing the data in it with some data I got in an excel spreadsheet and then I need to save every version of the original template that I replaced with data.

I could try the Mail-Merge function since that has the functionality that I'm doing basically, but I already have the doc template preexisting, don't know how to create it with Telerik. 

Arben
Top achievements
Rank 1
 updated question on 29 Oct 2021
1 answer
358 views

I am using using TitleBar on windows form which is having minimize, maximize and close buttons but while I click on the maximize button the button image needs to be changed, attaching the the title bar maximize button image refer image TitleBarMaximize.PNG

I want to change the maximize button images

1. When the window is in maximized state show like in the image ExcelMaximized.PNG and

2. When the window is in resize state show like  in the image ExcelResize.PNG

Currently the application is showing having only one button image as like in TitleBarMaximize.PNG in both resize state and maximized state.

How do I change the button image in title bar according to the above. 

Any Immediate help will be much appreciated. 

Thanks

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Oct 2021
2 answers
164 views

Dear Telerik Team,

We have a scaling problem on a 4K monitor when using RadPivotGrid and calling the RunExport method over the PivotGridSpreadExport instance.

We created the small solution in Visual Studio 2019 which is enough to successfully recreate the issue. Please note that during the development of the solution, the automatic scaling option in Visual Studio was off.

After starting the solution on a 4K monitor and calling the RunExport method over the PivotGridSpreadExport instance, the scaling was automatically performed over the whole solution (all forms and all their components were scaled, see the attached screenshots). At the moment of starting the solution, Scale and Layout option (under Display Settings on Windows) was set to 150% (Recommended). The same invalid result was when we set that option to 175%. Also, we tried to start the solution with every possible value for the AutoScaleMode property (Font, Dpi, None, Inherit) for all existing forms in the solution. The result was the same every time.
We think that the RunExport method makes a problem - the scaling is valid when we skip that call (see the attached screenshots), under the same conditions.

The mentioned solution with the required files can be found on the following link:

https://webshare.bexelconsulting.com/public/bexel/607-jenwspc47/Telerik%20-%20PivotGridSpreadExport.RunExport%20-%20Scaling%20Problem.zip

Could you please take a look at the solution and investigate the described issue?

Should you have any further questions about the described issue, feel free to contact us.

Thank you in advance for your help.

Bexel Consulting
Top achievements
Rank 1
Iron
Iron
 answered on 29 Oct 2021
1 answer
195 views
I'm wondering whether it is possible to apply a filter expression created by a Winforms RadFilterDialog on a specific object programmatically.
It should return a bool value depending the filter is true or false for the object and execute different code depending on the result.  The idea is to implement a simple rule engine.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Oct 2021
1 answer
184 views

Hi

I have found this Show Summary Values for Collapsed Groups in RadGridView | Telerik UI for WinForms

It kinda work but when you have a lot of rows and 3 levels of sub-groups, you just don't see much because of all the space that is lost.

Do you have anything that would display the aggregate values directly on the grouped row?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Oct 2021
2 answers
95 views

I have set the resource colour using "Me.RadScheduler1.Resources(0).Color = Color.Green" but after I click SAVE, the resource colour disappears and becomes grey. Can you let me know what I need to do?

Thanks and best regards,

Dominic

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Oct 2021
1 answer
2.5K+ views

Good afternoon!

 

I have a class object that has several properties. I have a RadGridView that I've created columns in with field names that match the class properties. When I assign the list of class objects as the datasource to the gridview, everything fills in correctly except the list of strings.  Everything shows up great except the combo boxes that have field names that corresponds with List<string> properties in the class object. The list of strings displays as "System.Collections.Generic.List". Each row is a distinct object with a different list of strings. How do i populate the combo boxes in the with the data in the class object's properties that are List<string>?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Oct 2021
1 answer
163 views

I'm trying to understand and add a RadScheduler to my winforms app that has resources available.  I'm having issues trying to get the resources working.

First item, are the below tables being create correctly (Oracle DB backend using entity framework)?

CREATE TABLE APP_APT_SCHED
(
AAS_ID  RAW(16) default SYS_GUID(),
AAS_START  TIMESTAMP(0),
AAS_END   TIMESTAMP(0),
AAS_SUMMARY  NVARCHAR2(1000),
AAS_DESC  NVARCHAR2(1000),
AAS_LOC  NVARCHAR2(1000),
AAS_VISIBLE  NUMBER(1),
AAS_ALL_DAY  NUMBER(1),
AAS_ALLOW_DEL  NUMBER(1),
AAS_ALLOW_EDIT  NUMBER(1),
AAS_BACKGRND  NUMBER(10),
AAS_STATUS  NUMBER(10),
AAS_RECUR  NVARCHAR2(2000),
AAS_RECUR_ID  NVARCHAR2(2000),
AAS_EXCEPT  NVARCHAR2(2000),
AAS_REMINDER  NUMBER(10),
CONSTRAINT PK_APP_APT_SCHED PRIMARY KEY (AAS_ID)
);

CREATE TABLE APP_APT_SCHED_RES
(
ASR_ID  RAW(16) default SYS_GUID(),
ASR_RESOURCE  NVARCHAR2(100),
ASR_VISIBLE  NUMBER(1),
CONSTRAINT PK_APP_APT_SCHED_RES PRIMARY KEY (ASR_ID)
);

CREATE TABLE APP_APT_SCHED_RSCMAP
(
ASM_ID  NUMBER(38),
ASM_AAS_ID  RAW(16),
ASM_ASR_ID  RAW(16),
CONSTRAINT PK_APP_APT_SCHED_RSCMAP PRIMARY KEY (ASM_ID),
CONSTRAINT FK_ASM_AAS FOREIGN KEY (ASM_AAS_ID) REFERENCES APP_APT_SCHED (AAS_ID),
CONSTRAINT FK_ASM_ASR FOREIGN KEY (ASM_ASR_ID) REFERENCES APP_APT_SCHED_RES (ASR_ID)
);
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Oct 2021
1 answer
215 views

Hi ,

 

I add Shape page. In page , can I add shape similar like pic. If I choose the triangle shape and shareholder can change triangle shape? How to write it . Please let me know. If that way can't do, how to do other way. I want to change shape because user want to change any of shapes.

 

 

Thanks,

Moe

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Oct 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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?