Telerik Forums
UI for WinForms Forum
5 answers
167 views

Hi.

I'm trying to create a form with semi-transparent border (the form itself is solid, but a 10-pixel width is semi-transparent.



The problem is that when setting the form opacity, all the form gets the opacity, not just the border.

Can you recommend on a way to accomplish this?

Martin Vasilev
Telerik team
 answered on 27 May 2008
1 answer
161 views
Hi

How do I use RowFormatting to populate "custom" text into a ChildRadGridView ?

The following code populates the MasterGridView properly but my commented out code causes the program to fall over in a heap.

Private Sub rgvInvoices_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles rgvInvoices.RowFormatting  
        Dim loUserRow As _the_dl_outletDataSet.UsersRow = Me._the_dl_outletDataSet.Users.FindByU_nId(CType(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_U_nId").Value, System.Int64))  
        If loUserRow IsNot Nothing Then  
            CType(e.RowElement.RowInfo.Cells("sCustomerName").CellElement, Telerik.WinControls.UI.GridCellElement).Text = loUserRow.U_sLastName & ", " & loUserRow.U_sFirstName  
        End If  
        CType(e.RowElement.RowInfo.Cells("sBillingAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text = CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingAddress1").Value) & vbNewLine  
        If String.IsNullOrEmpty(CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingAddress2").Value)) Then  
            CType(e.RowElement.RowInfo.Cells("sBillingAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text &= CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingAddress2").Value) & vbNewLine  
        End If  
        CType(e.RowElement.RowInfo.Cells("sBillingAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text &= CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingCity").Value) & vbNewLine & CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingCounty").Value) & vbNewLine & CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingPostCode").Value) & vbNewLine & CStr(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_sBillingCountry").Value)  
        Dim loDeliveryAddressRow As _the_dl_outletDataSet.DeliveryAddressesRow = Me._the_dl_outletDataSet.DeliveryAddresses.FindByDA_nId(CType(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("I_DA_nId").Value, System.Int64))  
        If loDeliveryAddressRow IsNot Nothing Then  
            CType(e.RowElement.RowInfo.Cells("sDeliveryAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text = loDeliveryAddressRow.DA_sAddress1 & vbNewLine  
            If loDeliveryAddressRow.IsDA_sAddress2Null Then  
                CType(e.RowElement.RowInfo.Cells("sDeliveryAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text &= loDeliveryAddressRow.DA_sAddress2 & vbNewLine  
            End If  
            CType(e.RowElement.RowInfo.Cells("sDeliveryAddress").CellElement, Telerik.WinControls.UI.GridCellElement).Text &= loDeliveryAddressRow.DA_sCity & vbNewLine & loDeliveryAddressRow.DA_sCounty & vbNewLine & loDeliveryAddressRow.DA_sPostCode & vbNewLine & loDeliveryAddressRow.DA_sCountry  
        End If  
        'Select Case CType(sender, Telerik.WinControls.UI.RadGridView).Name  
        '    Case "rgvInvoices"  
        '    Case "rgvAuditTrail"  
        '        Select Case CType(Me.rgvInvoices.Rows(e.RowElement.ViewInfo.CurrentIndex).Cells("AT_nType").Value, _Enum.AuditTrailTypes)  
        '            Case AuditTrailTypes.OrderPlaced  
        '                CType(e.RowElement.RowInfo.Cells("sType").CellElement, Telerik.WinControls.UI.GridCellElement).Text = "Order Placed" 
        '            Case AuditTrailTypes.OrderCancelled  
        '                CType(e.RowElement.RowInfo.Cells("sType").CellElement, Telerik.WinControls.UI.GridCellElement).Text = "Order Cancelled" 
        '            Case AuditTrailTypes.PaymentUnverified  
        '                CType(e.RowElement.RowInfo.Cells("sType").CellElement, Telerik.WinControls.UI.GridCellElement).Text = "Payment unverified" 
        '            Case AuditTrailTypes.PaymentVerified  
        '                CType(e.RowElement.RowInfo.Cells("sType").CellElement, Telerik.WinControls.UI.GridCellElement).Text = "Payment verified" 
        '            Case Else  
        '                CType(e.RowElement.RowInfo.Cells("sType").CellElement, Telerik.WinControls.UI.GridCellElement).Text = "Unknown Audit Trail entry" 
        '        End Select  
        'End Select  
    End Sub 

Any ideas ?

Kind Regards

David
Martin Vasilev
Telerik team
 answered on 26 May 2008
5 answers
160 views
hi,

i've developed an application using radcontrols for winforms q3 2007. now i've bought radcontrols for winforms q1 2008.

now do i have to reinlcude all controls in my forms new? how can i use the new version of radcontrols in my existing application which was developed with the old version?

thanks, andreas
Martin Vasilev
Telerik team
 answered on 26 May 2008
1 answer
144 views
Hi,

I wonder if it is by design that OnPaint is called even if the DocumentPanel is not visible. Works fine on the tabstrip control.

Take a look at this samples:


Thanks,
- jorge

PS: how do i attach a file? i've seen it before but cant find anywhere to do it (Mac OS X 10.5.2 - Safari 3.1.1)
Julian Benkov
Telerik team
 answered on 26 May 2008
1 answer
182 views
Hi,
Is there a way to supress the choosing of an item?

What I need is a readonly combobox, but I want all the functionality available since the items have descriptions and I would like the user to explore the posibilities but not be able to change them.

Thanks,
- jorge
Nikolay
Telerik team
 answered on 26 May 2008
1 answer
138 views
Hi, I would like to know how can I set a range data on my Chart, I need it starts at value 2 on X and finish at 20 and starts at 13 on Y and finish at 31.
No mather how many series I add they are in this range.
So I read that doing this on codebehind the graph will automatically  do it so
I tried  it  but I can´t figure out how to add X and Y Values, the function
chartSeries.AddItem only allows me to put one Value but I nee to put both.

Thank you
Dwight
Telerik team
 answered on 26 May 2008
1 answer
132 views
Is there something I just don't know about VS or has anyone else run across this problem?

C# is a language that is case Senstive, while VB is not. In C# you can have a property name foo and a getter Setter name Foo and there is no problem. In VB8 however, this is illegal.

Usually private variable might be named _foo and the getter/setter is is Foo(or foo).

Am I daft? What am I missing? I have been through the .chm example and now the online version as well and they both show vb code that will not compile due to the reason I am talking about.

Here is an excerpt from the help file this WILL NOT COMPILE under VB unless panelElement is named something like _panelElement . Is Telerik missing this point or am I ingorant of something?

        Private panelElement As MyPanelElement 
 
        Public Sub New() 
            Me.UseNewLayoutSystem = True 
            Me.AutoSize = True 
        End Sub 
        Public ReadOnly Property PanelElement() As MyPanelElement 
            Get 
                Return Me.panelElement 
            End Get 
        End Property 

Nikolay
Telerik team
 answered on 23 May 2008
1 answer
137 views
Using a gridview control, can you display cell data as buttons.  I am trying to simulate a list of menu options in cells...

Jack
Telerik team
 answered on 23 May 2008
1 answer
161 views
I'm using VS 2008 with Q1 2008.  I have an empty for, I drop menu on it, spend a few minutes getting all my menu items setup, run the project to make sure things look all pretty.... noooo menu! Repeat this process over and over and over.  What's going on with this? I don't even have to run the program, jsut add the menu, save the form, close the form, re-open it, the menu is visibly gone!  run the program, theres no menu... however if you hit the alt key, use the arrow keys, all the sub items show up but still no menu is visible!  I've looked at everything I could think of...height, index, visible.... your turn....



nevermind.... just seen a post regarding this
Nikolay
Telerik team
 answered on 23 May 2008
1 answer
154 views
Hi
I am trying to show tooltip on a Linechart in a WinForm. The data is bounded from an XML.

I would like to know whether the tooltip property will work on a line chart.


Thanks
Raja
Dwight
Telerik team
 answered on 23 May 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?