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.
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
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
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
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
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