Telerik Forums
UI for WinForms Forum
2 answers
194 views
I have a Telerik UI for WinForms application that builds and runs fine when targeting the x86 platform. As soon as I change the target platform to x64 the same application will build without issue, but the application will throw an exception when running in Debug mode, stopping on the ThemeResolutionService with a type initialization error. My application is using the 2020.2.616.40 version of the controls and .NET Framework 4.6.1. All application themes are set to "ControlDefault", so this should not be an issue.
Jay
Top achievements
Rank 1
 answered on 28 Aug 2020
9 answers
110 views

Hi Admin,

 

I would like to know same spacing between each diagram in below pic

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Aug 2020
2 answers
137 views

Hi

I have a self referencing grid (using something like .Relations.AddSelfReference(.MasterTemplate, "ID", "IDParent")) and using .BestFitColumns() to automatically adjust columns width. 

The ID column that contains (the column showing the hierarchy) is not adjusting for all the levels. 

I needed to set the MinWidth property of the column to try to set a better width.

Is there something you can do?

Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Aug 2020
1 answer
161 views
Hi, how can I hide the column of row headers in a VirtualGrid?
Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
1 answer
272 views
Can the behaviour of column header cell be changed to the following one?
When there is no space to display the whole header text, the text shall be wrapped so that it spreads over 2 (or more) lines.

(Initially now the text is cut off and 3 dots are added at the end.)
Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
1 answer
158 views

Can the behaviour of column header cell be changed to the following one?

When there is no space to display the whole header text, the text shall be wrapped so that it spreads over 2 (or more) lines.

 

(Initially now the text is cut off and 3 dots are added at the end.)

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
3 answers
313 views

Hi.

I have a RadGridView object named rgvLinkList that contains a GridViewCommandColumn. I use a table that is read from an Access database as the data source (but I don't show all the columns in the database in the grid, I hide some). Then I add a command column to the grid, and take the button text in each row from another column (one of the hidden columns) in the grid.

My problem is: I want to add a filter to the command column, I tried to do something similar to the one described at the address below but failed.
https://www.telerik.com/forums/filtering-on-a-command-column#ZuNrDBneqEmAi9qmv8ZXtQ

The method I use for setting data source, adding command column and hiding some columns:

public void fillRgvWithLinks(RadGridView source)
        {
            string msg = "";
            try
            {
                int i = 0;
                source.DataSource = IOC.linksData.getAllLinks(out msg);
                source.Columns[i++].HeaderText = "Sıra No";             // 0
                source.Columns[i++].HeaderText = "Ana Grup";            // 1
                source.Columns[i++].HeaderText = "Alt Grup";            // 2
                source.Columns[i++].HeaderText = "Sürüm";               // 3 hide this
                source.Columns[i++].HeaderText = "BaÅŸlık";              // 4
                source.Columns[i++].HeaderText = "Adres";               // 5 hide this
                source.Columns[i++].HeaderText = "DoÄŸrulama Url";       // 6 hide this
                source.Columns[i++].HeaderText = "Açıklama";            // 7 hide this
                source.Columns[i++].HeaderText = "Anahtar Kelimeler";   // 8 hide this
                source.Columns[i++].HeaderText = "Komutlar";            // 9 hide this
                source.Columns.Add(AddCommandColumnToRgv());
                foreach (var item in source.Columns)
                {
                    if (item.Index == 0 || item.Index == 1 || item.Index == 2 || item.Index == 10) { continue; }
                    item.IsVisible = false;
                }
            }
            catch (Exception ex)
            {
                msg = ex.Message.ToString();
            }
        }

 

Add column method:

public static CustomCommandColumn AddCommandColumnToRgv()
        {
            CustomCommandColumn CommandColumn = new CustomCommandColumn();
            CommandColumn.Name = "LinkButon";
            CommandColumn.HeaderText = "Linke Git";
            CommandColumn.UseDefaultText = false;
            CommandColumn.FormatInfo = new System.Globalization.CultureInfo("tr-TR");
            return CommandColumn;
        }

 

CustomCommandColumn class:

public class CustomCommandColumn : GridViewCommandColumn
    {
        public CustomCommandColumn(): base()
        {
        }
 
        public CustomCommandColumn(string name): base(name)
        {
        }
 
        public override bool AllowFiltering
        {
            get
            {
                return true;
            }
        }
    }

CellFormatting event of my RadGridView : 

private void rgvLinkList_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.Row is GridViewDataRowInfo) {
                GridCommandCellElement commandCell = e.CellElement as GridCommandCellElement;
                if(commandCell != null)
                {
                    commandCell.CommandButton.Text = e.Row.Cells[4].Value.ToString();
                }
             
            }
        }

 

CellBeginEditevent of my RadGridView, The descs array here consists of text values (text above buttons) read from a column in the database (Similar to Emanuel Varga's example) :

private void rgvLinkList_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
        {
            string msg = "";
            try
            {
                if (rgvLinkList.Columns[e.ColumnIndex].Name != "LinkButon")
                {
                    return;
                }
 
                var editor = rgvLinkList.ActiveEditor as RadDropDownListEditor;
                var dropDownElement = editor.EditorElement as RadDropDownListEditorElement;
                string[] descs = IOC.linksData.getDescriptions(out msg);
                dropDownElement.DataSource = descs;
 
            }
            catch (Exception ex)
            {
                msg = ex.Message.ToString();
            }
        }

 

And EditorRequired event of my RadGridView  (Again, similar to the example of Emanuel Varga) :

private void rgvLinkList_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            var editManager = sender as GridViewEditManager;
            if (editManager == null || rgvLinkList.CurrentColumn.Name != "LinkButon")
            {
                return;
            }
 
            e.Editor = new RadDropDownListEditor();
            e.EditorType = typeof(RadDropDownListEditor);
        }

 

I was able to add a filter to the column after all, but when I type something in the filter text box nothing happens. I wonder what is missing or wrong?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Aug 2020
5 answers
1.4K+ views

Hi Team,
         We are using the windows application (vb.net). In our project, we need to hide one of the header text columns (Price) in the RadGridView dynamically. We are setting the condition to hide and show the HeaderText. If the value is "0" the Headertext (Price) should be hidden. If the value is 1 it should be visible. Can you please help with it. Screenshot mentioned below for your reference.

 

Screen Shot link

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Aug 2020
1 answer
966 views

I have a RadGridView with several columns: 1st is a checkbox, 2,3,4 contain some strings.

If I want to select a checkbox and I click on the first column, the CellClick event is fired but there's something I don't understand.

When the first CellClick event is fired, the Checkbox does not get activated. When I click again on the checkbox, only then it is activated but for some reason it goes out of sync with my code. When the UI shows it is activated, the code says that nothing is selected and viceversa.

How should I properly do a selection of multiple checkboxes which trigger from the first click?

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Aug 2020
2 answers
1.6K+ views

While I have been a heavy user of the Asp.net/Ajax suite of Telerik controls, I have never actually deployed any winforms based apps before.  I took an existing legacy production application, stripped it of Crystal Reports, added a RadGridView control along with a couple of RadButtons.  Everything works marvelously in a development mode. When it comes time to publish the application it appears to be impossible to publish it and install the resulting installation.

I have used all the suggestions I have found, such as resetting the "Application Files" on the publish page.  Everything seems to be properly configured yet the application remains un-installable once published.  I get "the manifest may not be valid or the file could not be opened errors".  The "invalid child element 'SignedInfo' is found.  I have dug into the installation folder and see the relevant files are in place.

Now I hesitate to point fingers to Telerik however the second I rollback to my pre-Telerik state I can publish the same app, using the identical settings, and properly install the application.  This suggests, to me, that I am somehow failing to include something.  Can anyone please assist or point me to help?

Am I missing some magic?

The error log generated is along the following:

 

 

PLATFORM VERSION INFO
Windows : 10.0.19041.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.4200.0 built by: NET48REL1LAST_C
clr.dll : 4.8.4200.0 built by: NET48REL1LAST_C
dfdll.dll : 4.8.4200.0 built by: NET48REL1LAST_C
dfshim.dll : 10.0.19041.1 (WinBuild.160101.0800)

SOURCES
Deployment url : file://ipc-8930d/InstallSite/Internment/Interment.application
Deployment Provider url : file://ipc-8930d/InstallSite/Internment/Interment.application

IDENTITIES
Deployment Identity : Interment.application, Version=2.0.0.0, Culture=en-US, PublicKeyToken=e691ae88eb0bb1c9, processorArchitecture=x86

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \\ipc-8930d\InstallSite\Internment\Interment.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file://ipc-8930d/InstallSite/Internment/Application%20Files/Interment_2_0_0_0/Interment.exe.manifest: the manifest may not be valid or the file could not be opened.
+ The element 'assembly' in namespace 'urn:schemas-microsoft-com:asm.v1' has invalid child element 'SignedInfo' in namespace 'http://www.w3.org/2000/09/xmldsig#'. List of possible elements expected: 'dependency' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'dependency' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'file' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'file, configuration, deployment, entryPoint, trustInfo, licensing, migration' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'clrClass' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'clrClass' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'clrSurrogate' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'clrSurrogate' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'comInterfaceExternalProxyStub' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'comInterfaceExternalProxyStub, KeyInfo' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'Signature' in namespace 'http://www.w3.org/2000/09/xmldsig#' as well as any element in namespace 'urn:schemas-microsoft-com:asm.v3' as well as 'publisherIdentity' in namespace 'urn:schemas-micr....

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [8/22/2020 7:47:24 PM] : Activation of \\ipc-8930d\InstallSite\Internment\Interment.application has started.
* [8/22/2020 7:47:24 PM] : Processing of deployment manifest has successfully completed.
* [8/22/2020 7:47:24 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [8/22/2020 7:47:24 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file://ipc-8930d/InstallSite/Internment/Application%20Files/Interment_2_0_0_0/Interment.exe.manifest: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Xml.Schema.XmlSchemaValidationException
- The element 'assembly' in namespace 'urn:schemas-microsoft-com:asm.v1' has invalid child element 'SignedInfo' in namespace 'http://www.w3.org/2000/09/xmldsig#'. List of possible elements expected: 'dependency' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'dependency' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'file' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'file, configuration, deployment, entryPoint, trustInfo, licensing, migration' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'clrClass' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'clrClass' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'clrSurrogate' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'clrSurrogate' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'comInterfaceExternalProxyStub' in namespace 'urn:schemas-microsoft-com:asm.v1' as well as 'comInterfaceExternalProxyStub, KeyInfo' in namespace 'urn:schemas-microsoft-com:asm.v2' as well as 'Signature' in namespace 'http://www.w3.org/2000/09/xmldsig#' as well as any element in namespace 'urn:schemas-microsoft-com:asm.v3' as well as 'publisherIdentity' in namespace 'urn:schemas-micr....
- Source: System.Xml
- Stack trace:
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.ValidateElementContext(XmlQualifiedName elementName, Boolean& invalidElementInContext)
at System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, String namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String xsiSchemaLocation, String xsiNoNamespaceSchemaLocation)
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.Read()
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Aug 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
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?