Telerik Forums
UI for WinForms Forum
1 answer
170 views

first picture is basic ui

second picture is telerik ui

 

 

How to make it look like the first picture for telerik ui??????

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Apr 2022
0 answers
307 views
When importing a CSV file (or any file for that matter) how can I make every field a Text field rather than the import process trying to determine the data type and setting it. This is specifically causing me issues when importing fields with values like 9/10 which aren't dates.
Todd
Top achievements
Rank 1
Iron
 asked on 14 Apr 2022
1 answer
386 views

When Adding a Label in a GridLayout


var element = new RadLabelElement()
 element.SetValue(GridLayout.ColSpanProperty, colspan);
            element.SetValue(GridLayout.RowIndexProperty, row);
            element.SetValue(GridLayout.ColumnIndexProperty, column);
How do I achieve to right align, or center the label, especially when it spans multiple columns.

(If I could get the label to fill the entire cell, I could use the TextAlignment proproperty, but with Autosize enabled, it will never fill the entire cell.)

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Apr 2022
1 answer
176 views

Hello, 

I am having difficulty auto sizing my columns. I want fill the whole grid view but have the the columns with the 3 abbreviations (BSA, GIS, ETC) to be small always. When set to  .AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill and .MasterTemplate.BestFitColumns() it is stretching out the WEB column. Is there a way to only allow the stretching to occur evenly on the first 4 columns but have the last 7 columns be small?  Thanks!

lin
Top achievements
Rank 1
Iron
 answered on 13 Apr 2022
1 answer
130 views
Greetings, how can I tell the RadTreeView to ignore accent when applying Filter.

the content of my RadTreeView there are nodes that have accents in the text, for example Balance Calculation, and if I search without an accent it does not search for me

How do I tell the TreeView Filter to ignore accents?

Use:
Visual Studio 2022
.Net Framework 4.8
Telerik WinForms 22.1.222.0
Dinko | Tech Support Engineer
Telerik team
 answered on 12 Apr 2022
0 answers
207 views

Hello, I am trying to use the gridview to try to display data...this is kind of a work in progress as I don't know what best approach is that I should be taking to display the data or if I am even using the right control.  I am trying to piece things together from some of the examples I can find. My questions are:

1. In the column named "img" is it possible to just hide that header and place the image next to the text? 

2. Can those expanded columns be auto sized instead of manual sized?

3. Is there an example of a dropdown box in one of these expanded row?  

 

Here is my rough code  creating the expanded rows: 

    'create out custom datasource containing all the apps 
        Dim BusinessAppsDT As New DataTable("Apps")
        With BusinessAppsDT
            .Columns.Add("id", GetType(Guid))
            .Columns.Add("img", GetType(Byte()))
            .Columns.Add("name", GetType(String))
        End With

        For Each row As DataRow In dt.Rows
            For Each itm As MyPortalObjects.Objects.ListItem In DeSerializeListview(Of MyPortalObjects.Objects.ListItem)(row("User_Needed_BusinessApps"))
                 BusinessAppsDT.Rows.Add(row("id"), itm.IconByteArray, itm.Name)
            Next
        Next

        'gridview templates are the tabs?
        Dim BusinessAppsTemplate As New GridViewTemplate
        BusinessAppsTemplate.Caption = "Apps"
        BusinessAppsTemplate.DataSource = BusinessAppsDT
        gvQueue.Templates.Add(BusinessAppsTemplate)

        Dim BusinessAppsRelation As New GridViewRelation(gvQueue.MasterTemplate)
        With BusinessAppsRelation
            .ChildTemplate = BusinessAppsTemplate
            .ParentColumnNames.Add("id")
            .ChildColumnNames.Add("id")
        End With
        gvQueue.Relations.Add(BusinessAppsRelation)

        Dim BusinessAppsView As New HtmlViewDefinition()
        With BusinessAppsView
            .RowTemplate.Rows.Add(New RowDefinition())
            .RowTemplate.Rows(0).Cells.Add(New CellDefinition("img", 3, 1, 3))
            .RowTemplate.Rows(0).Cells.Add(New CellDefinition("name", 10, 1, 3))

        End With
        BusinessAppsTemplate.ViewDefinition = BusinessAppsView
Willy
Top achievements
Rank 2
Iron
Iron
 asked on 08 Apr 2022
1 answer
171 views

Hello!

I've got a grid that has multiple, overlapping rows of data.  The purpose of this grid is to build an exportable Excel spreadsheet. 

Here would be a very simple example of how I need the spreadsheet to look in Excel

A                B                C                D                E

Name         DOB          Status       Amount 

John Q       12/12/20    Active       $100.00

 

As you can see - the Excel Columns are the standard, default A..E. 

Row 0 holds the "Headers" for the data directly beneath. 

Row 1 holds the actual data - but when I export this to Excel, I want to be able to tell it "This cell is text" or "This cell is a Date/Time" etc.

Is this possible? 

 

Thanks for the great products!

Curtis. 

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Apr 2022
1 answer
942 views

Hi,

I have a multi-column combobox that is data-bound to a binding source control.

Then in the form code I have the following lines:

Me.RadMultiColumnComboBox1.DropDownStyle = RadDropDownStyle.DropDownList
Me.RadMultiColumnComboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend
Me.RadMultiColumnComboBox1.SelectedIndex = -1

The last line, in particular, is important in our case because we want to prevent the selection of the first record by default. Everything works fine except when there's only one record in the list.

When that happens, the textbox element picks up the display member of the lone item as soon as the user clicks the drop-down arrow. The text remains after the pop-up closes even if the user does not explicitly select the solo record.  This gives the user the false impression that a value has been set, but in reality the underlying value is still null.

We then found out that the second line of code above is what is causing this unwanted behavior. When commented out, an MCCB with a single record does not exhibit the problem.

We would like to keep the SuggestAppend feature working (i.e., in the case of multiple records), so is there a way to resolve this issue without having to resort to checking the number of records in the list?

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Apr 2022
2 answers
211 views

I thought there was a way on a radgridview that the user could hit B and be taken to the first entry where the B is. I thought i saw that the gridview was able to do that, but it doesn't seem to be working for me. It might be that i need to setup a custom keydown, not sure.

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Apr 2022
2 answers
1.2K+ views

Hello,

The feature is to Change the part of rows background-color based on a cell

I want to set the BackColor of a row to a specific color based on information from a field.

The structure is different from classic Winform.

Can you help me please ?

Jana
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 08 Apr 2022
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
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?