Telerik Forums
UI for WinForms Forum
3 answers
237 views
Just getting started with Telerik controls...

I need to get the behavior of the RadDropDownList for a column in a GridView.

For the RadDropDownList, I am using databinding to link the SelectedValue to the property of a Business Object or Entity.

I'm trying the same approach in the GridView but no luck.

I have added a GridViewComboBox column and set its DataSource to the list of entities I want in the drop down list.  That works fine, and when displaying data the correct item is highlighted.  However, trying to pick a new item from the list gives this error: "Object of type 'System.String' cannot be converted to 'mynamespace.Product'.

I can see in the docs it wants me to set the ValueMember to the property on the data source that I want to use, but I don't want to use a property, I want the whole object.  How can I do this??

I found this other post and the poster was in the same situation as I am:
http://www.telerik.com/community/forums/winforms/gridview/csla-bindinglist-with-default-objects.aspx

It is from 2010 - so has anything changed or is it still not supported?  Do I still have to make up some kind of workaround?
Peter
Telerik team
 answered on 30 Sep 2011
2 answers
131 views
Hi,

I have a radgridview (Q2 2011) in which I am grouping orders by production line.  When I move an order by changing the line number in the grid, the row correctly moves to the correct line grouping, however I need to be able to recalculate the subtotals for both the line group that it was removed from in addiition to the line group that it was added to.....I am trying to find the event that fires when the row is moved to another group in the group by definition.....any suggestions / examples are appreciated.

Regards,
Shawn
Julian Benkov
Telerik team
 answered on 30 Sep 2011
4 answers
179 views
Hi, I would like to change the text displayed in the ErrorProvider when the validation fails; how can I do that?

Thanks!
Peter
Telerik team
 answered on 30 Sep 2011
5 answers
191 views
Hi.

Correct me if i am wrong but i dont see a difference between AutoClose and ManualClose (hitting the predefined CloseButton) in the RadPopupCloseReason Enum.

I would like to suggest this feature in the next version!!!

Is there a way to do this with the current version?
Jack
Telerik team
 answered on 30 Sep 2011
7 answers
614 views
HI,

I wanted to change the Edit Appointment Dialog window labels and dropdownlist values.
For example - Insted if "Subject label" i want to display "Patient Name" and i want to change Dropdownlist values?
1) I have followed the below step but not possible to change the label text but i can do the label visible false or true.
2) How to change the Dropdownlist vaues?
3) How to add one more dropdownlist inside the Edit Appointment Dialog Window?

CODE:

CustomAppointmentDialog

appointmentDialog = null;

 

 

private void radSchedulerDemo_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)

 

{

 

if (this.appointmentDialog == null)

 

{

 

this.appointmentDialog = new CustomAppointmentDialog();

 

}

e.AppointmentEditDialog =

 

this.appointmentDialog;

 

}

 

 

 

public class CustomAppointmentDialog : EditAppointmentDialog

 

{

 

public CustomAppointmentDialog()

 

:

 

base()

 

{

 

 

this.Controls["lblSubject"].Text = "Patient";

 

 

}

}

Peter
Telerik team
 answered on 30 Sep 2011
2 answers
126 views
Hi,
How I can open then Chart Wizard form programmatically?

Bye,
Claudio
Claudio
Top achievements
Rank 1
 answered on 30 Sep 2011
4 answers
246 views
Hi,

I have a RAD Gridview in my form and it loads the invoices that has the status "Due".

What I now want to do is when the user clicks on the row of the invoice he wants to view it should get the selected items Index value in my case a value in the "ID" column.

How do I get the selected row's "ID" value from the gridview?

Thanks
Uday
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
209 views
what is the recomanded way to do the following. 

On the gridview, when the user edits a cell value, I want to do some computations and assign a new data source to the gridview. I have tried to call refresh on the cell value changed, but that seams to cause a crash. 

So I have a hirachy of objects. 

Parent 
 |- Child One 
        | -> Child Two 

During the computation I am getting a new set of Child One objects. With this I mean new instances, which I want to rebind to the grid to show the effect of the edit. It seams that this is not accepted. I can understand that the grid might not expect it's datasource to have change on an cell value changed event, but how can I refresh assign a new data source to grid after an edit and show the changes back to the user ? 
Emanuel Varga
Top achievements
Rank 1
 answered on 30 Sep 2011
2 answers
96 views
Hello

I have added a telerik dtp to a 'chunk' in a Ribbonbar as follows in the onLoad event of a form.  The purpose is to change the view of a calendar when the value in the dtp is changed.  The code below accomplishes this task as expected:

Dim dtPicker As New RadDateTimePicker
dtPicker.ThemeName = "Office2007Blue"
 
AddHandler dtPicker.ValueChanged, AddressOf pickerValueChanged
 
Dim hostItem As New Telerik.WinControls.RadHostItem(dtPicker)
hostItem.MinSize = New System.Drawing.Size(150, 50)
Me.chunkJumpTo.Items.Add(hostItem)
Me.chunkJumpTo.Items(0).Name = "ggPicker"

The handler that I added is as follows:

Private Sub pickerValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
 
        Dim dtp As RadDateTimePicker = sender
        selectedDate = dtp.Value
 
        Select Case Me.Calendar1.CurrentView
            Case WinForms.CalendarView.WeekRange
 
                viewMonth()
                Me.Calendar1.Selection.Set(selectedDate)
                 
            Case WinForms.CalendarView.Timetable
                If Calendar1.TimetableSettings.VisibleColumns > 1 Then
                    viewWeek()
                    Me.Calendar1.Selection.Set(selectedDate)
                Else
                    viewDay()
                End If
 
        End Select
 
        setCurrentMonth()
 
 
    End Sub


However, I would like to change the value of the dtp if a new date is clicked on the calendar itself - how can I reference the dtp in the Ribbonbar and change the value that is displayed?

I found some code from another post - I can find the dtp by doing this (I think) but have not been successful in updating the value...

 For Each ct As RadItem In Me.chunkJumpTo.Items
            If ct.Name = "ggPicker" Then
...CHANGE VALUE HERE...
            End If
 Next


QUESTION 2:

I have several RadImageButtonElements in my Ribbonbar.  I have set the ImageHovered property on several buttons but the new image is not displayed on hover of the button - are there issues with this property? Can you please demonstrate how to display a second image on hover and then revert to this original?

Thank you

Brian
Brian
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
162 views
I am using a Rad Ribbon Form in an application bar. All "popup" windows (menus and tooltips) are display in the remaining display area and not at the correct position in the application bar. How can I fix this?

 
Peter
Telerik team
 answered on 29 Sep 2011
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?