Telerik Forums
UI for WinForms Forum
3 answers
170 views
radGridView1.Rows[number].PinPosition = PinnedRowPosition.Top;

When i run that line the row disappears, 
I have Alot of properties off on this grid and i'm not sure which of them is the cause of this.
Need your help, what can remove/hide the row?
Dinko | Tech Support Engineer
Telerik team
 answered on 12 May 2023
0 answers
210 views

Hello everyone,

I'm running into a peculiar issue with VS Community v17.0.4 2019 and the Telerik Extension.  When I attempt to launch the Upgrade Wizard (or most of the other options):

 

I get the following error to pop up:

 

Here is the full stack trace from that dialog as well:

Failed to execute command.

Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "NuGet.VisualStudio.IVsNuGetProjectUpdateEvents" but found 0 after applying applicable constraints.
   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
   at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
   at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()
   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
   at Telerik.VSX.NuGet.NuGetPackageService..ctor()
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapUIComponentsBase..ctor(Project dteProject)
   at Telerik.WinControls.VSX.Helpers.ProjectWrapFactory.<>c.<.cctor>b__5_0(Project p)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapFactoryBase`1.GetForProject(Project project)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapFactoryBase`1.GetForFirstSelectedProject(IServiceProvider serviceProvider)
   at Telerik.WinControls.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.GetDplConfigurationTypeSelector()
   at Telerik.WinControls.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartPdfProcessingConfigurationWizard()
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

 

I removed the extension & re-installed it, but the issue still persists.  Has anyone else seen this error before?

Greg
Top achievements
Rank 1
 asked on 11 May 2023
1 answer
157 views

I've found the AutoSize function for all the columns in a spreadsheet.

And it's NEARLY perfect: it's just too aggressive.

So after auto-sizing some columns, they look like this:

when the columns should look like:

It's only a small difference, but it's the difference between being able to see everything, and not.

Is there a way to make this function a bit more generous? Maybe add a little space ?

Aleks
Telerik team
 answered on 11 May 2023
1 answer
225 views

Hi,

We have a RadDock with multiple open documents (of type DocumentWindow), like the attached "DocumentsLayout" image.

These documents belong to a specific parent (what we call the "MainFolder"). Once the "MainFolder" is closed, we have a process that closes all opened documents and saves some metadata, including which documents were opened (currently we only save the names of those documents). We want to be able to restore the docking layout and restore the location of those previously opened documents, but we are not sure how to.

Currently, once we get the list of documents that we want to reopen, we restore them with:

public void RestoreDocuments(RadDock radDock, IEnumerable<DocumentWindow> documents)
{
  foreach (DocumentWindow document in documents)
  {
    radDock.AddDocument(document);
  }
}
But of course the docking layout is lost, and all documents are added to the default DocumentTabStrip (even floating ones were added to the main one).

What is the best way to achieve this? We also care about the order they were originally located within the tab strips (i.e. in the image, Document 2 on the left and Document 1 on the right)

Note: We are using version 2018_3_911, but we can upgrade if necessary.

Thank you for your help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 May 2023
1 answer
192 views

Hello,

When i put the simplified layout on the ribbon bar to On, the radRichTextEditor who is associated stay stays in its place instead of sticking to the ribbon. That's a lot of wasted space. How do I do this? i don't find the property ...

i found an exemple here : Nouvelle barre de ruban simplifiée moderne dans Telerik UI pour WinForms

That is exactilly what i want

Thank you (and sorry for my english !)

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 May 2023
3 answers
403 views

I have a WinForm with multiple controls that are bound to an management object. Once of the controls is a RadCheckedDropDownList that is bound to a single object property containing a bitwise value, something like this:

2, 'None'
4, 'Mornings'
8, 'Afternoon'
16, 'Evenings'
32, 'Anytime'

Using bitwise values I plan to store, say, 24 in the field if the user chooses Afternoons and Evenings. What I cannot figure out is how to bind this to the object property. if there a direct way to do this or will it need to be handled in the UI. Can I bind it as directly as I can, say, a string or in value that goes to a single property? Do you have sample code for such an approach?

Thanks

Carl

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 09 May 2023
1 answer
166 views

Hi, I am working on a program that uses queries that are hard coded into the program. Within the program, I have pages (radpageview) and then grids on the pages. Then each grid is programmed to load in data from the queries. 

I am running into trouble because my grids are based on the first grid... I have this hard coded into the SQL Query and it will look at a specific cell value to then run the query with that in the where statement. 

I need a cell value that is in the template, but I am having no luck. 

As you can see below, I can get the cells from my main grid... but not from the template.

Example to explain...

I set this: selectedOrder = grdCustPOListing.CurrentRow.Cells["Order Num"].Value.ToString();

So that selectedOrder can now be used in my query: 

"Select RMAH.RMANum as [RMA], RMAH.RMADate as [RMA Date], RMAD.RMALine as [RMA Line], RMAD.RefInvoiceLine as [Invoice], " +
                    "RMAD.OrderNum as [Order], RMAD.OrderLine as [Order Line], RMAD.ReturnReasonCode as [Reason], RMAD.Note, RMAD.PartNum as [Part], RMAD.LineDesc as [Description],  RMAD.ReturnQty as [Quantity] " +
                    "from erp.RMAHead RMAH with (nolock) " +
                    "inner join erp.RMADtl RMAD with(nolock) on RMAH.Company = RMAD.Company and RMAH.RMANum = RMAD.RMANum " +
                    "inner join erp.Customer C with(nolock) on RMAH.Company = C.Company and RMAH.CustNum = C.CustNum " +
                    "where RMAH.OpenRMA = 1 and RMAD.OrderNum like '%" + selectedOrder + "%' ";
Dinko | Tech Support Engineer
Telerik team
 answered on 09 May 2023
1 answer
154 views

Background:

  • Given a spreadsheet template, to generate a new spreadsheet by filling the information and barcode.
  • E.g. the screenshot (template) below, the barcode to be inserted at the cell location.

What I have done:

  • I manage to locate the target cell index (by searching the keyword $PART_NAME_LABEL$).

Question:

  • How to insert the barcode (image) at the target cell index location?
  • Any other suggestions for barcode generation? (Instead of inserting the barcode image, e.g. using barcode font)

I have referred to the sample in this page but it doesn't work.

https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/shapes-and-images

 

XlsxFormatProvider formatProvider = new XlsxFormatProvider();
            Workbook workbook = formatProvider.Import(File.ReadAllBytes(@"C:\temp\temp.xlsx"));

            var worksheet = workbook.Sheets[0] as Worksheet;

            FindOptions f = new FindOptions();
            f.FindWhat = "$PART_NAME_LABEL$";

            IEnumerable<FindResult> result = worksheet.FindAll(f);

            foreach(var i in result)
            {
                worksheet.Cells[i.FoundCell.CellIndex].SetValue("");
                //Add barcode here
                RadBarcode radBarcode1 = new RadBarcode();
                Telerik.WinControls.UI.Barcode.Symbology.Code39Extended code39Extended1 = new Telerik.WinControls.UI.Barcode.Symbology.Code39Extended();
                radBarcode1.Symbology = code39Extended1;
                radBarcode1.Value = "123456";
                radBarcode1.LoadElementTree();

                var ms = new MemoryStream();
                Image barcode = radBarcode1.ExportToImage();
                barcode.Save(ms, ImageFormat.Png);

                FloatingImage image = new FloatingImage(worksheet, i.FoundCell.CellIndex, 35, 10);
                image.ImageSource = new Telerik.Windows.Documents.Media.ImageSource(ms, "png");
            }

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 May 2023
2 answers
136 views

 

Hi!
It is a very fast tool to convert a RadGridView to PDF.
My problem is that I have to print a huge footer referring to some laws. About 1800 characters.
But it only shows me less than 900 characters.
Any solution?
Thank you

 

 

 

Gariel
Top achievements
Rank 1
Iron
 answered on 06 May 2023
4 answers
193 views

I'm having an interesting issue with the VS Designer and Telerik forms.  My forms are shrinking!  Sure, I can set the size in code behind, but I shouldn't have to.  This is a problem with all my Telerik Winforms projects.

Create a new Telerik Winforms project.  Expand the original form and add a grid.  Anchor the grid.  Save and close the form.  When the form is reopened, the grid is the correct size, but the window shrinks.

It appears the designer fails to set the Size property.

Is it just this machine?  

Please advise.

VS2022, Telerik Winforms 2023.1.117

Dave
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 May 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?