Telerik Forums
UI for WinForms Forum
2 answers
244 views

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.

Ali
Top achievements
Rank 1
 answered on 01 Jun 2017
2 answers
118 views

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

 

 

 

Wonder
Top achievements
Rank 1
 answered on 01 Jun 2017
4 answers
140 views

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?

 

Dimitar
Telerik team
 answered on 31 May 2017
11 answers
417 views

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

 

Dimitar
Telerik team
 answered on 31 May 2017
2 answers
110 views

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

 

Jason
Top achievements
Rank 1
 answered on 30 May 2017
5 answers
300 views
Is there any build-in solution to save and restore the position of RadGridView's VerticalScrollbar?
Is there any build-in solution to save and restore the expand/collapse state of displayed groups?

I use RadGridView's SaveLayout() and LoadLayout() methods and it seems the values mentioned above are not being persisted to the layout file.
Gowtama
Top achievements
Rank 1
 answered on 30 May 2017
3 answers
119 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 May 2017
1 answer
215 views

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

 

 

Dimitar
Telerik team
 answered on 29 May 2017
1 answer
289 views

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?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2017
3 answers
174 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 May 2017
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?