Telerik Forums
UI for WinForms Forum
3 answers
135 views
C#.
I have 2  RadListBoxes.( Assign/Unassign process) 
When I Assign items (add items to the right listbox and remove them from the left listbox).
If Assign ListBox has at least 1 item I have to enable contextMenu or radcontextMenu  for this ListBox. 
So when there is at least one item user can right click and open a response window to be able to edit some details. 

My problem is that I can not assign dynamically contextMenu.
At the end of the code to assign the item I wrote:
if (radListBox_SelectLOBs.Items.Count > 0)
{
  radListBox_SelectITMs.ContextMenuStrip = contextMenuStrip_VF; 
}
but nothing happened on the right click.
Menu appears only if I specify in the property of RadListBox (RadContextMenu) at the beginning,and not using the code.
Is there an option to do this from the code?
Thank you,
Victoria.
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Nov 2010
1 answer
44 views
Hi Telerik Team,

We have a radgridview, to that radgridview we added a childgridview template.
Then we tried to open the property builder of the radgridview from the smart tag ,but  visualstudio 2010 gets closed.
We found no problem when childgridview template is not there.
Actually we want to have different colors for Headers for parent and child  templates.
So, kindly help us in this regard at the earliest.

Thanking you.
Stefan
Telerik team
 answered on 25 Nov 2010
2 answers
135 views
I want to change the backcolor of a maskedit control to SystemColors.Control

I do not want to use themes at all.
I found some sample code and it works with all colors except for SystemColors.Control.

To prove this I just blended the Control backcolor slightly and it works correctly then.
This is not a critical issue as I have found a work around but this is quite tricky to do a took me like about an hour to figure it out,
Changing a controls back color is something that should be simple.
I was expecting to turn the EnableTheming = False and then just be able to change a textbox.Backcolor property and that is all.
But I would be happy to have this SystemColors.Control issue fixed.

Here is some sample code I have made to show the issue,
I'm using a wrapper class so i can add controls the way i want them to behave with out setting lots of individual properties everytime.

Public Class RadMaskedEditBoxX
    Inherits Telerik.WinControls.UI.RadMaskedEditBox

    Public Sub New()
        Me.EnableTheming = False
    End Sub

    Protected Overrides Sub OnReadOnlyChanged(ByVal e As System.EventArgs)
        MyBase.OnReadOnlyChanged(e)
        If Me.ReadOnly Then
            SetColor(SystemColors.Control)
        Else
            SetColor(SystemColors.Window)
        End If
    End Sub

    Public Sub SetColor(ByVal clrColor As Color)

        MyBase.MaskedEditBoxElement.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid
        MyBase.MaskedEditBoxElement.Fill.BackColor = clrColor
        MyBase.MaskedEditBoxElement.Border.ForeColor = SystemColors.WindowFrame
       
        '--------------------------------------------------------------------
        ' This Line does not work correctly with the Control Color, it does with any other color.
        ' When set to Control it still blends itself with white so is some light grey color 
        '(very hard to tell difference from white (non-readonly) textbox).
        MyBase.MaskedEditBoxElement.BackColor = SystemColors.Control
        ' -------------------------------------------------------------------
        ' This is my fix for this problem, To blend the color so it is not = SystemColors.Control but very close
        'MyBase.MaskedEditBoxElement.BackColor = modShared.BlendColor(SystemColors.Control, Color.White, 1)

    End Sub

    Public Overrides Property ThemeClassName() As String
        Get
            Return GetType(Telerik.WinControls.UI.RadMaskedEditBox).FullName
        End Get
        Set(ByVal value As String)
            MyBase.ThemeClassName = value
        End Set
    End Property

    Public Function BlendColor(ByVal p_Color1 As Color, ByVal p_Color2 As Color, ByVal p_blend As Integer) As Color

        Try

            Dim r As Single, g As Single, b As Single
            Dim dr As Single, dg As Single, db As Single

            dr = (p_Color2.R - p_Color1.R) / 255
            dg = (p_Color2.G - p_Color1.G) / 255
            db = (p_Color2.B - p_Color1.B) / 255

            r = p_Color1.R
            g = p_Color1.G
            b = p_Color1.B

            BlendColor = Color.FromArgb(r + (dr * p_blend), g + (dg * p_blend), b + (db * p_blend))

        Catch

            Try
                Dim r As Single, g As Single, b As Single
                Dim dr As Single, dg As Single, db As Single

                dr = (p_Color1.R - p_Color2.R) / 255
                dg = (p_Color1.G - p_Color2.G) / 255
                db = (p_Color1.B - p_Color2.B) / 255

                r = p_Color2.R
                g = p_Color2.G
                b = p_Color2.B

                BlendColor = Color.FromArgb(r + (dr * p_blend), g + (dg * p_blend), b + (db * p_blend))
            Catch
                If p_blend < 127 Then
                    BlendColor = p_Color1
                Else
                    BlendColor = p_Color2
                End If
            End Try

        End Try

    End Function

End Class

Scott
Top achievements
Rank 1
 answered on 25 Nov 2010
4 answers
189 views
Hi,

I am working on RadGridView and catching the events based on selection of some cells with SelectedCellsChanged.
Every click on a cell should generate a RadGridView dynamically based on the content of the clicked cell. The format of all the generated RadView will be the same.

I can get the content of the cell clicked in the event handler function. My question is how to generate RadGridView dynamically and to use the values from the event handler function. In the attached file, I have shown the cell and just below in DetailedData groupbox I need to generate the RadGridView.

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 24 Nov 2010
12 answers
491 views
hello all

Please guide me,how can i first bind the radgridview with datatable and then making one of its column as GridViewMultiComboBoxColumn.

Warm regards
Neha
Victoria F
Top achievements
Rank 1
 answered on 24 Nov 2010
1 answer
66 views
Ok guys I now this is probably right in front of my nose but i will be darned if I can find it.

The situation

I create the following

 

 

 

Me.RadDock1.LoadFromXml("MIMSLAyout.xml")
Me.IsMdiContainer = True
Me.RadDock1.AutoDetectMdiChildren = True

Private Sub RadDock1_DockWindowAdded(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.Docking.DockWindowEventArgs) Handles RadDock1.DockWindowAdded 

    Select Case e.DockWindow.Name
    Dim MemberToolbar As New MembersToolWindow
    MemberToolbar.Text ="Members" 
    MemberToolbar.MdiParent = Me 
    DirectCast(e.DockWindow, HostWindow).LoadContent(MemberToolbar)

    Dim CompanyInfoDocument As New CompanyInfo 
    CompanyInfoDocument.Text ="Company"
    CompanyInfoDocument.MdiParent =Me 
    DirectCast(e.DockWindow, HostWindow).LoadContent(CompanyInfoDocument)
End Sub

Memberstoolwindow form contains a pageview and hosts a radlistcontrol which is loaded from a datatable.
CompanyInfo form has several label and textbox controls.

What I need to happen is when I fire a SelectedIndexChanged event from the radlistcontrol is to re-populate the controls on Companyinfo and refresh the form that is visible in the CompanyInfoDocument.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Nikolay
Telerik team
 answered on 24 Nov 2010
7 answers
232 views

Telerik Team:

I couldn’t find the “Vista Theme (i.e Vista.tssp)” in the Visual Style Builder. I am using "RadControls for WinForms Q1 2010 SP2". Kindly suggest me to get the Vista theme.

 

Note:

I could find only the following themes when I do a Export Built-In themes

·         BreezeExtended.tssp

·         ControlDefault.tssp

·         Desert.tssp

·         Office2007Black.tssp

·         Office2010.tssp

·         Windows7.tssp

 

Reply asp. Very Urgent.

Thanks

Dobry Zranchev
Telerik team
 answered on 24 Nov 2010
1 answer
103 views

Hi all,

I'm trying to create a RadForm with an image that is outside the form's boundaries (as you can see in the attached image). Obviously it does have to be outside of the actual form's boundaries, it just has to look like it does. I've tried several ways with transparent form and visible panel, but the rectangle of the image container is always visible (whether it is transparent or not).  Is there a way to have the image looks like it is over some of the controls and the form?

 

Thanks,

Sharon.

Svett
Telerik team
 answered on 24 Nov 2010
5 answers
95 views
Hi,

In ribbon bar,i have multiple  ribbon tabs and its elements.
so in tat i have to select via keyboard  keys like tab ,arrows. is it possible?
Peter
Telerik team
 answered on 24 Nov 2010
6 answers
198 views
Hi,

I have a ListControl that contains among others some disabled ListDataItems. These list items are grayed out, but I would like them to show a bit more clearly, for example by setting the text color. I am using the Office2010 theme, so if possible I would like to use the same orange-ish color for the text of the disabled items as is used as background color for selected items in the list.

Is this achievable?

Best regards
Linus
Dobry Zranchev
Telerik team
 answered on 24 Nov 2010
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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?