Telerik Forums
UI for WinForms Forum
4 answers
439 views
I have a RadStatusStrip at the bottom of a form.  The RadStatusStrip contains a RadLabelElement which has text in it.  If the form is resized such that the text does not fit in the status strip, the text completely disappears.  How do I make the label text appear shortened with an ellipsis, or just shortened to fit?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2016
5 answers
264 views
At design time I can Add items to the Items Collection and change the order they are displayed.

Is it possible to do this at run time, if so how.  

It is possible to do this with a list that is bound to datasource?

Thanks
Hristo
Telerik team
 answered on 08 Sep 2016
3 answers
348 views

I'm using Visual Studio 2013 and Telerik UI for WinForms 2015.2.623.40.

I have a RadPageView with 4 tabs, each page view I would like to control my layout with a RadLayoutControl.  In the designer view I setup a RadPageView on my first tab and place various UI elements (RadButtons, RadTextBox, etc. etc.) and everything behaves as expected.  When I go to my second tab and setup a RadLayoutControl, it is almost as if the designer can see the layoutControlItems elements of the RadLayoutControl from the first page while I'm trying to setup the second page.  Not only that but if you do manage to put two RadLayoutControls on various pages, the event handler that deals with the resizing event seems to throw an exception.  Should I be able to use multiple RadLayoutControls in this way?

I've attached images, page1.png shows how I've setup a sample project with a form that has a pageview with four pages and a RadLayoutControl containing a RadButton, RadTextBox, RadRichTextBox, and a RadLabel; in page2.png I've clicked on the top right area and have selected layoutControlItem1 that is contained on the first RadPageView in the RadLayoutControl.

Dimitar
Telerik team
 answered on 08 Sep 2016
4 answers
489 views
Hi Support,

I have a grid in which I've implemented a custom multi select combo box column which inherits from GridViewComboBoxColumn. The row data for the grid is a business object which contains a list of values which are then mapped as individual column in the grid (satisfying the customer need to be able to create their own fields). The underlying data for my ComboBoxColumn is a list of values. I've implemented a multi-select dropdown which allows the user to select multiple values via checkboxes. The Value property is overridden to show the values in the list as a simple string. The image below shows this:


What I now want to be able do is to filter on the values. "Show me the rows there 'WILSON' appears". Sounds too easy...

The filter options available are No Filter, Null, Not Null and Custom. When I bash together a test project with a ComboBoxColumn I get the full suite of filters. What happened to them for my custom column?

If there was the 'Contains' filter option that I hoped for I'm not sure that it will work properly anyway. The underlying data is a list, not a  single value, so I'm not sure how the filtering would be applied.

I tried using the Excel filtering type (by implementing IGridFilterPopup) but I encountered some errors relating to comparing elements in the list.

I was hoping for some advice/tips on the best way to implement this kind of filter?

Thanks,
Dave
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2016
1 answer
132 views

Hi,

 

I have a gridview, one of the columns is time in minutes. I've summed this in the SummaryRow, but would also like to convert it to hours and minutes.

I know how to convert it (as in, I know what I need to do to minutes to get hours) and have this that gives me the total of minutes:

        Me.RadGridView1.MasterTemplate.ShowTotals = True
        Dim summaryItem As New GridViewSummaryItem("actual_time", "Total Minutes = {0}", GridAggregateFunction.Sum)
        Dim summaryRowItem As New GridViewSummaryRowItem()

        summaryRowItem.Add(summaryItem)
        Me.RadGridView1.SummaryRowsTop.Add(summaryRowItem)

Is it possible for me to get the value of so I can then manipulate it before passing it back to the SummaryItem?

Thanks, Shane

Dimitar
Telerik team
 answered on 08 Sep 2016
5 answers
167 views

Hi,

I've got a gridview which contains a ListView of GridLayouts. In essence the items are made of SimpleListViewVisualItems very similar to the ListView example found in the demo applications for winforms. Instead of using a StackLayoutPanel for presentation, all data is filled into a GridLayout for easier maintenance and readability. How should I proceed to implement export and print functionality?

I thought of exporting row data to images and exporting those images similar to how it is done in a GridView of ChartElements, but GetAsBitmap returns nothing. Here is the relevant code:

Dim width = column.Width
Dim height = grid.TableElement.ChildRowHeight - 40
 
Dim radListElement = New RadListViewElement()
Dim gridLayout As GridLayout
Dim gridLayoutElements = New List(Of RadTextBoxElement)
 
gridLayout = New GridLayout()
gridLayout.StretchHorizontally = False
gridLayout.StretchVertically = False
gridLayout.Columns.Clear()
gridLayout.Rows.Clear()
 
Dim myFixedWidth = 300
Dim myFixedHeight = 40
 
gridLayout.Columns.Add(New GridLayoutColumn() With {.SizingType = GridLayoutSizingType.Fixed, .FixedWidth = myFixedWidth})
gridLayout.Columns.Add(New GridLayoutColumn() With {.SizingType = GridLayoutSizingType.Fixed, .FixedWidth = myFixedWidth})
gridLayout.Columns.Add(New GridLayoutColumn() With {.SizingType = GridLayoutSizingType.Fixed, .FixedWidth = myFixedWidth})
gridLayout.Columns.Add(New GridLayoutColumn() With {.SizingType = GridLayoutSizingType.Fixed, .FixedWidth = myFixedWidth})
 
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
gridLayout.Rows.Add(New GridLayoutRow() With {.SizingType = GridLayoutSizingType.Fixed, .FixedHeight = myFixedHeight})
 
For x As Integer = 0 To gridLayout.Rows.Count * gridLayout.Columns.Count - 1
    Dim child As RadTextBoxElement = CType(GetTextBoxElement(x), RadTextBoxElement)
    child.SetValue(GridLayout.RowIndexProperty, x Mod gridLayout.Rows.Count))
    child.SetValue(GridLayout.ColumnIndexProperty, CInt(Fix(x / gridLayout.Rows.Count)))
    gridLayout.Children.Add(child)
    gridLayoutElements.Add(child)
Next
 
radListElement.Children.Add(gridLayout)
 
Application.DoEvents()
 
radListElement.InvalidateMeasure(True)
radListElement.UpdateLayout()
 
Dim image = radListElement.GetAsBitmapEx(Color.White, 1, New SizeF(width, height))
 
Dim imageTemp = New RadImageItem()
imageTemp.Image = image
imageTemp.Image.Save(".\test" + i.ToString() + ".png")
 
row.Cells("someColumn").Tag = imageTemp.Image
i += 1

 

Private Function GetTextBoxElement(count As Integer) As RadElement
        Dim result As New RadTextBoxElement()
        Dim myText As String = ""
        result.Text = myText
        result.StretchHorizontally = True
        result.StretchVertically = True
        Return result
    End Function

I am sure I am missing something, but unsure of what it might be.

Looking forward to your respons

Dimitar
Telerik team
 answered on 08 Sep 2016
1 answer
68 views

hi

I create a custom column as in documentation described, and can add it by code to grid view.

i want see my custom column in designer. i mean i want when i click to add to add column in property builder or in columns dialog, my custom column be there and can add it as predefined column to my columns in properrty builder or in columns dialog.

is there a way to do that?

thanks in advanced

Dimitar
Telerik team
 answered on 07 Sep 2016
1 answer
431 views

Hello all,

how can I locate a certain row (or determine a row index) in the virtual grid by looking up a certain value?

If for example I have a list of employees with ID, Name, Address, Phone how can I locate the row with a certain Employee ID?
Also there seems to be no row collection that can be searched using Linq.

Thanks in advance.

Best regards, Ronny

Hristo
Telerik team
 answered on 07 Sep 2016
6 answers
298 views
Hi,

I'm using the RadRibbon Form and i have set ApplicationMenuStyle to BackstageView I have added a ListBox on a Tab and when I double click an item in it I want to load a file and show the main form.

I can load the file fine but the BackstageView does not close. How do i get the BackstageView to close?

thanks
Christ
Top achievements
Rank 2
 answered on 07 Sep 2016
2 answers
178 views

I have created a custom theme that is a copy of a standard theme (I exported a .tssp file, made a copy, and started editing the copy). I would like to copy some individual elements from a different them to my custom theme (for example, the RadForm along with it's titlebar icons). So far I haven't been successful in figuring out how to do this. Is it possible? If so, could you list the steps necessary to do it? (I would prefer to keep everything contained in one custom .tssp file if possible.)

Thanks.

Craig

Craig
Top achievements
Rank 2
 answered on 06 Sep 2016
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?