Telerik Forums
UI for WinForms Forum
1 answer
178 views
How do I indent a child grid?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2016
1 answer
104 views

Hello,

I use one Datagridvew with 10.000 rows.

I add or remove FilterDescriptors by code.

this update block the thread 2s.

Its possible to display a radwaiting ? or move this action on other thread ?

Thank you.

 

Hristo
Telerik team
 answered on 09 Sep 2016
1 answer
59 views

Hello,

Ik have a gridview which is bound to a SQL-server table. Records in this table are changes by other users/programs.

Can anyone tell me the easiest way to Reload/Update the data in the gridview ?

Kind regards

A desperate developer

 

Hristo
Telerik team
 answered on 09 Sep 2016
4 answers
472 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
272 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
362 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
509 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
138 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
176 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
70 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
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?