Telerik Forums
UI for WinForms Forum
5 answers
578 views

I'm open to any idea besides using a ListView for this.  (I've thought of using a flow layout panel and RadButton as one alternative.)

In my project where we are picking items for customer orders a "License Plate" is a number that uniquely identifies the box that we are using to put the items that we pick for the order.  There are normally three license plates per order and there could be a few more added as we pick.  The user would like to see all of the license plates in a horizontal row (scrolling won't be a problem) and have the person click one of them to assign whatever quantity of an item to that box.  (That is as simple as a button or something that looks like a button with the license plate number for its text.)

So, if a ListView is a good idea here, I'm trying to use one in IconsView mode to take advantage of the horizontal orientation.  I did this so far...

lvLicensePlates.ViewType = ListViewType.IconsView;
lvLicensePlates.AllowArbitraryItemWidth = true;
lvLicensePlates.AllowArbitraryItemHeight = true;
lvLicensePlates.AllowEdit = false;
lvLicensePlates.AllowRemove = false;
lvLicensePlates.SelectLastAddedItem = false;
lvLicensePlates.ListViewElement.ViewElement.Orientation = Orientation.Horizontal;
lvLicensePlates.ListViewElement.ViewElement.ItemSpacing = 20;

 

I would like to give the items more of the RadButton appearance.  I started experimenting with VisualItemFormatting...

private void LvLicensePlates_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    e.VisualItem.BorderBoxStyle = BorderBoxStyle.SingleBorder;
    e.VisualItem.DrawBorder = true;
     
}

but that hasn't produced a border for me.

If you could first tell me if a different control would be a better choice and, if not, can you help me make the item look like a RadButton (or better, since I suspect that you have better ideas than I would).

 

Thank you,

Gary

 

Hristo
Telerik team
 answered on 10 Mar 2017
2 answers
150 views

Hi, 

we are using the TextBoxControl instead of the TextBox because of the performance. Now I need to add a button/Icon in my TextBoxControl. I have found a solution for the Textbox but could not find any solution for the TextBoxControl. 

 

How can i add a simple Button in my TextBoxControl ??

 

Sincerely,

Dominik

Dominik
Top achievements
Rank 1
 answered on 10 Mar 2017
3 answers
1.1K+ views

I'm using a RadRichTextEditor for WinControls (2017.1.117.40) in my WinForms application and i want to use the RTF text later on in a Stimulsoft Report.

First i import an RTF (created by Winword) from my local machine, it is displayed fine in the TextEditor and in a report designed with Stimulsoft. After i edit the text and try to display it in the report again, the report can't render it anymore as RTF.

I've attached the original text and the changed text as texxtfiles and you can see that there have been put some more tags into the file than in the original.

I'm not using any special propertysettings for the texteditor as far as i know.

So i need the structure as in the Original text, can you help me to figure out what is going wrong here?

Original text:

{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1043\deflangfe1043{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Riched20 6.3.9600}{\*\mmathPr\mnaryLim0\mdispDef1\mwrapIndent1440 }\viewkind4\uc1 
\pard\nowidctlpar\cf1\b\f0\fs20 TESTTEKST\b0\par
}

Changed text after adding "test2" in Texteditor:

{\rtf\ansi\ansicpg1252\uc1\deff0\deflang1033{\fonttbl{\f0 Verdana;}{\f1 Arial;}}
{\colortbl\red0\green0\blue0 ;}
{\*\defchp\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone}
{\*\defpap\sl276\slmult1\ql\sa180\ltrpar}{\stylesheet{\s0\sqformat\spriority0\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Normal;}{\*\ts2\tsrowd\spriority59\trbrdrt\brdrnone\trbrdrb\brdrnone\trbrdrl\brdrnone\trbrdrr\brdrnone\trbrdrh\brdrnone\trbrdrv\brdrnone\trgaph0\trpaddl75\trpaddr75\trpaddt0\trpaddb0\clpadft3\clpadt0\clpadfr3\clpadr0\clpadfl3\clpadl0\clpadfb3\clpadb0\tsvertalt\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Table Normal;}}\nouicompat\viewkind4\paperw12240\paperh15840\margl1425\margr1425\margt1425\margb1425\deftab720\sectd\pgwsxn12240\pghsxn15840\marglsxn1425\margrsxn1425\margtsxn1425\margbsxn1425\headery720\footery720\pard\s0\sl240\slmult1\ql\ltrpar{\ltrch\f1\fs20\i0\b\strike0\cf0\ulc0\ulnone TESTTEKST test2}{\ltrch\f1\fs20\i0\b0\strike0\cf0\ulc0\ulnone\par}}

Hristo
Telerik team
 answered on 10 Mar 2017
1 answer
111 views
We purchased a software project that had the 2009 controls. We have upgraded the project to use current version of the controls but still have an outdated look and feel. Looking for help and guidance on how to update our app's look and feel to the current Universal Windows Style app.
Dimitar
Telerik team
 answered on 10 Mar 2017
4 answers
374 views

Hi

 

I want to customise the available filter operators and change the default operator in my RadGridView

 

For example in a string column, I'd like to default to 'Starts With' instead of 'Contains' and want to remove the 'Ends With' operator.

 

Thanks

Tung

Hristo
Telerik team
 answered on 09 Mar 2017
2 answers
150 views

I have a Ribbon bar in Outlook view on which I want to change programmatically the font

I have managed to change the font on the bottom buttons with the following code

        outlookElement = TryCast(pvMain.ViewElement, RadPageViewOutlookElement)
        outlookElement.Font = MyPreference.Font

 

However the font of the title does not change (see attached image)

How cant I change the title font as well ?

thanks

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 09 Mar 2017
2 answers
249 views

Hello guys/girls, how are you?

I hope you can help me.

 

I need to use RadGridView to insert / update / delete data from MySql. VB.NET

I've used this code :

-------------------------------------------------------------------------------------------------

statustestera = Me.RadGridView1.SelectedRows.Item(0).ToString
            statuspantograf = Me.RadGridView1.SelectedRows.Item(1).ToString
            statusdispecer = Me.RadGridView1.SelectedRows.Item(2).ToString
            statusproizvodnja = Me.RadGridView1.SelectedRows.Item(3).ToString
            statusdokumentacija = Me.RadGridView1.SelectedRows.Item(4).ToString

            comm.Connection = cn
            comm.CommandText = "INSERT INTO TBL_Priprema_GROB(StatusTeseta, StatusPantograf, StatusDispecer, StatusProizvodnja, StatusDokumentacija) VALUES('" & statustestera & "','" & statuspantograf & "''" & statusdispecer & "','" & statusproizvodnja & "',' " & statusdokumentacija & "')"
            comm.ExecuteNonQuery()

 

------------------------------------------------

but it returns with the Index can not be negative or less..... error. 

 

Can you please help 

 

 

Hristo
Telerik team
 answered on 07 Mar 2017
1 answer
290 views
I was wondering if there is any way to capture a click on MapPin and associate an event handler with that. As far as I could tell, the only element that has events is a RadMap. The MapPin class has a HitTest() method that takes parameters PointG, PointL, and IMapViewport, but even if I were to iterated through all the pins on a map click to see if any of them pass the HitTest(), it's not clear what parameters should be passed in. I feel like there is probably a better way to do it. Can anyone please provide guidance on this?
Hristo
Telerik team
 answered on 07 Mar 2017
2 answers
112 views

I have a requirement which uses a popup launched from a grid which resides in a tool window. Default state of the tool window is auto hide.
Now, when the tool window expands and the grid is shown, the end user can click a grid command button which launches a lookup dialog. The dialog returns the selected value with an event which is handled by the eventhandler from the tool window grid.

Here's the problem: when the dialog is shown, the tool window closes. I want the window to remain expanded while the dialog is shown.
Is there a way to keep it expanded _without_ changing the tool window state (e.g. to docked)?

Any thoughts on this?

 

Raoul
Top achievements
Rank 1
 answered on 07 Mar 2017
15 answers
712 views
Hi

I am using radgridview (windows) export to excel functionality and I would like to keep the same currency format e.g ({0:€#,#0;(€#,#0);-}).

Is there is any option available there to do that?

Please reply urgently

Thanks
Hristo
Telerik team
 answered on 07 Mar 2017
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?