Hi Team.
I was able to create custom radcheckeddrowdownlistelement in radgridview, but can figure out how to bind datasource when adding rows since each row with the custom radcheckeddropdownlistelement will different datasouce bind to it. Below is my code:
// Custom checkbox list
Public Class CheckBoxListCellElement
Inherits GridDataCellElement
Public Sub New(ByVal column As GridViewColumn, ByVal row As GridRowElement)
MyBase.New(column, row)
End Sub
Private checkBoxListElement As RadCheckedDropDownListElement
Protected Overrides Sub CreateChildElements()
MyBase.CreateChildElements()
checkBoxListElement = New RadCheckedDropDownListElement
Me.Children.Add(checkBoxListElement)
End Sub
Protected Overrides Sub SetContentCore(value As Object)
If Me.Value IsNot Nothing AndAlso Me.Value IsNot DBNull.Value Then
Me.checkBoxListElement.Text = Convert.ToString(value)
End If
End Sub
Protected Overrides ReadOnly Property ThemeEffectiveType() As Type
Get
Return GetType(GridDataCellElement)
End Get
End Property
Public Overrides Function IsCompatible(data As GridViewColumn, context As Object) As Boolean
Return TypeOf data Is CheckBoxListColumn AndAlso TypeOf context Is GridDataRowElement
End Function
End Class
Public Class CheckBoxListColumn
Inherits GridViewDataColumn
Public Sub New(ByVal fieldName As String)
MyBase.New(fieldName)
End Sub
Public Overrides Function GetCellType(row As GridViewRowInfo) As Type
If TypeOf row Is GridViewDataRowInfo Then
Return GetType(CheckBoxListCellElement)
End If
Return MyBase.GetCellType(row)
End Function
End Class
// main form load event with the gridview
Private Sub QuestionaireForm_Load(sender As Object, e As EventArgs) Handles Me.Load
RadGridView1.Rows.Add(data1 to bind to customradcheckboxlist )
RadGridView1.Rows.Add(data1 to bind to customradcheckboxlist )
End Sub
However, I have seen the article on radgridview editor required for the radcheckeddropdownlist. But want the above code to work.
Thanks in advance.
Hello All,
I am new to telerik platform and I am currently exploring and using UI for winforms 2016 Q1.
My problem is that I am trying to accomplish and implement a collapsible rad page view ( please see attached image ).
May I know how to achieve the same result? and is this possible?
Thanks.
Regards,
Meo
Hi. I want to display a gridview almost identical to the way it's displayed in the demo. I've spent hours trying to compare files but I still can't get the same behaviour.
I do have a couple of changes that I want.
There's only 3 columns in the datasource. CreationDate (datetime a record was created), ResultString (a string displaying a pass fail result), and a calculated column Date, which is the field I want to group on, which is just the date portion of CreationDate.
1) I want the grid to be set up grouped on the Date column automatically, as you've done with the City column in the demo. But I don't want the user to see the Grouping bar, or the Date column in the grid as it's only there for grouping purposes.
2) I can't see how the demo app gets the "City" button in the grouping bar. I can't emulate that at all. How is that done please? And can all that be hidden?
3) Another problem is formatting. If I show the Date column, the values in that column format correcty e.g. "01/02/2017", just showing short date with no time. But if I drag the Date column to the group bar then the group dividers show the time element e.g. "01/02/2017 00:00:00".
Trying to fix this I've added a Group Descriptor to the properties for the grid for Group, with format {0~:1d} but it doesn't seem to work (and also keeps disappearing from my Designer file)
Can you help please?

I'm using RadDock 2017.2.502.40.
When I drag a toolwindow, that is initially docked, it becomes a floating window. I am unable to resize the floating window.
Unfortunately, it seems, that by default the floating window cannot be resized. I've created a fresh form with a RadDock so this behavior is right out of the box.
I've handled the FloatingWindowCreated event and set the FormBorderStyle per this post:
http://docs.telerik.com/devtools/winforms/dock/object-model/customizing-floating-windows
But it seems to have no effect. The floating window still cannot be resized. I know the code is running because I've put in breakpoints. The FormBorderStyle does change.
Just to make sure that something works, I've tried e.Window.Controls.Clear() and all the controls are gone when the floating window displays. But it's not resizeable.
How do I make a floating tool window resizeable.
Thanks,
Steve

I am replacing a 3rd party tool with Telerik....currently we have code with looks like this
grid.row.cells[testcolumname.index].text = "test"
However when I convert the control to Telerik, the column name I give it in the properties of the Control is not recognized.
Am I missing something?
Help!
thanks
Rad Grid - I want to use two rad grid And grid row move one grid to another grid row but I want to need cell .Which cell drop column.
So,How to get cell (Column) on two different rad grid drag and drop functionality

Hi,
I have a main form with a RadListView set to details view which is bound to a list of objects.
I also have a user control with two RadListViews set to details view bound to their own empty list of objects, same type as main.
On the main form when the user clicks on a button an instance of the user control is created and added to a panel on main form. So there can be multiple instances of the UC.
What I'm trying to do is allow the user to drag an item from the main form list and drop it on one of the lists within one of the instances of the user controls created at run time.
I have been trying to do this with the DragDropService, but I'm not getting the target list to update.
Assuming this is possible could you give me a simple example in c#.
Thanks in advance.
Cheers
Shaun

I have a GridView control that has a custom CellFormatting event implemented that detects if a row is to be deleted on save, sets the back colour to grey and makes the test italic.
Following recommended Telerik practice I apply ResetValue format to cells not affected by the above format condition.
All works great.
My problem occurs when a user applies a ConditionalFormat, it doesn't display. If I comment out the ResetValue commands, the user defined Conditional Formatting shows as expected.
Is there a way you can get the Conditional Formatting to be applied after the CellFormatting event, or call for the ConditionalFormatting to be applied from the CellFormatting event?

Hi,
i have a problem with timeline in scheduler. the timline start to end is from right to left instead of left to right. i set the "righrToLeft" to false and also i changed the culture to en-US but no effect.
another question is about the Appointment text in Persion or Arabic.how can show the Text Correctly? currectly the Words are in Revese direction. i just found a solution by disable the useHtml in appointmentElement.
please help me!
thanks in advanced
