Telerik Forums
UI for WinForms Forum
4 answers
169 views
HI

I have custom objects of type phone and each phone has a phonetype example Phone.PhoneType.Name="Business"

I have a grid which is bound to a generic list of Phone. One of the columns in the grid is a GridViewLookupColumn named  phonetype (ie. Business, Mobile, Fax etc..)
On the init of my app I assign the PhoneTypes to the data source

Me

 

.PhoneTypeBindingSource.DataSource = CMXApplication.LookUps.PhoneTypes

 

 

CType(Me.PhonesRadGridView.Columns("PhoneType"), Telerik.WinControls.UI.GridViewLookUpColumn).DataSource = Me.PhoneTypeBindingSource.DataSource

Because of the nature of the custom objects I intercept the Cellformatting event, to display the name of the phone type

 

 

Private Sub PhonesRadGridView_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles PhonesRadGridView.CellFormatting

 

 

If e.CellElement.RowIndex >= 0 Then

 

 

 

 

 

If e.CellElement.ColumnIndex = 1 Then

 

 

 

 

e.CellElement.Text =

CType(PhonesBindingSource(e.CellElement.RowIndex), FTS.CMX.CMXModel.Phone).PhoneType.Name

 

 

End If

 

 

 

 

 

End If

 

 

 

 

 

End Sub

so far so good. When I edit the grid row I select a different phonetype in my GridViewLookUpColumn (PhoneType). I need to assign  a phonetype from the  GridViewLookUpColumn  to my phone. What I think I need to do is this, capture the CellEndEdit value from the GridViewLookUpColumn and assign a phonetype to my phone.

When I query the GridViewLookUpColumn  it is not the selected value from my grid

Can you give me pointers on how to achieve the desired results?

 

 

Private Sub PhonesRadGridView_CellEndEdit(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles PhonesRadGridView.CellEndEdit

 

 

Dim Phone As FTS.CMX.CMXModel.Phone = ContactProxy.Contact.Phones(PhonesRadGridView.CurrentRow.ViewInfo.CurrentIndex)

 

 

If PhonesRadGridView.CurrentRow.Cells(0).Value = String.Empty Then

 

 

 

 

 

 

If Phone.EntityState = EntityState.Added Then

 

 

 

 

 

PhonesRadGridView.Rows.RemoveAt(ContactProxy.Contact.Phones.Count - 1)

ContactProxy.Contact.Phones.Remove(Phone)

 

End If

 

 

 

 

 

 

Else

 

 

 

 

 

 

If e.ColumnIndex = 1 Then 'assign the phone type to the phone

 

 

 

 

 

 

'CType(Me.PhonesRadGridView.CurrentCell, Telerik.WinControls.UI.GridComboBoxCellElement).Text

 

Debug.WriteLine(

CType(Me.PhonesRadGridView.CurrentCell, Telerik.WinControls.UI.GridComboBoxCellElement).Value)

 

 

 

End If

 

 

 

 

 

 

End If

 

 

 

 

 

 

End Sub

 

 

 

 

Thanks P

Nick
Telerik team
 answered on 19 Dec 2008
1 answer
112 views
Hello,
Is it possible to add a button (repeatbutton and button) for each row in my Grid view? How?
All i can see is the commandButton, but i don't want to use this.
Tahnk you
Shirya
Nick
Telerik team
 answered on 19 Dec 2008
1 answer
125 views
Hi,
I would like to show an image on a row, but only if it's a new row, is this possible?

Thanks.
Jack
Telerik team
 answered on 19 Dec 2008
4 answers
194 views
Hi

I changed the shape of my button to a RadBreadCrumbShape in Visual Style Builder and saved it in a theme. When I apply the theme to my buttons I get the following error message


Error deserializing bla bla bla..... Please make sure you have a reference to an assembly which contains type Telerik,.....RadBreadCrumbShape.

In which assembly is this type located? I have made reference to all of your available themes.design assemblies without much luck

Can  you advise?


thanks

P
Paul Gallen
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
167 views
Hi,
I have a command button that opens the colorselector dialog. I would like to return that color and set the background of a cell, in other words cell 2 for row 3 for example.  Is there a quick and easy way to do this? nothing has worked for me so far.

Thanks,
Derek.
Nick
Telerik team
 answered on 18 Dec 2008
3 answers
156 views
The in-design carouselpath option is not working. When I select the beizer option, the box stays blank and no changeable movable options on the carousel control appears. Is there a way to fix this?

I am using Visual Basic 2008.
Peter
Telerik team
 answered on 18 Dec 2008
3 answers
149 views
hi!

i need to replicate the filedialog (vista style) and i cant seem to get the icon of a row to be in the same cell as the text (the Name column in the filedialog contains both an icon and the file name).

How could i mimic this? and coult it be done with an ImageList index istead of an actual Bitmap?

Thanks
-jorge
Nick
Telerik team
 answered on 18 Dec 2008
1 answer
427 views
Steps to recreate the issue that I saw:

1.  Drag a RadLabel onto a form or control
2.  Set AutoSize = false on the label
3.  Set TextAlignment = TopCenter
4.  Set Text equal to some multiline text

Only the block of text as a whole is centered, not each line.   This is different from the standard .NET label control, where each line is centered individually.
Victor
Telerik team
 answered on 18 Dec 2008
3 answers
140 views
Greetings!
I have a small problem. When I set property RowsHeight equal 75 at GridFilterRowElement the height also is set 75.
How I can set height GridFilterRowElement?

I'm use latest version.

Nick
Telerik team
 answered on 18 Dec 2008
4 answers
293 views
Hello,

I'm using Q3/2008.

How can i change the size of the screen tip ?
I have tried it with the size-method but the size of the screen tip does not change.
 
The Telerik Examples Demo has the same problem.
Look at the "First Look" Demo of the RibbonBar and move the mouse over the copy-Icon of the clipboard-chunk.

Ramius
Top achievements
Rank 1
 answered on 18 Dec 2008
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?