Telerik Forums
UI for WinForms Forum
11 answers
1.1K+ views

Hi,

Could you please provide me any solution how to change selected grid view row color using Visual Style Builder.

I'd like to customize it and don't know how to handle this problem.

I was browsing it for a long time with out any result ... 

Thanks in advance,

Regards.

Stefan
Telerik team
 answered on 22 Oct 2014
2 answers
108 views
In my application I use a RadRibbonForm and I set  RibbonBar.Expanded = false; . But it looks like the ribbonbar missing something as (1) in the image. Please see the attachment. In the application I pressed button ExpandButton  twice, and I got the correct menu as (2) in the image.
Is there any way to make the first time I run my application which the RibbonBar.Expanded=false and I get the correct menu as (2) in the image.
Thanks & Best Regards,
Nguyen
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Oct 2014
1 answer
196 views
Hello,

Is there any way to add a button on title bar of RadRibbonForm or a textbox like the image below?

Thanks & Regards,
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Oct 2014
2 answers
2.1K+ views
Hi,

I have my Radgridview for Winforms (vb.net) with multi-select option.

I have set my code to change the backcolor of the grid based on a criteria.

If CInt(e.RowElement.RowInfo.Cells("trd_typ").Value) = 0 Or CInt(e.RowElement.RowInfo.Cells("trd_typ").Value) = 20 Then
    e.RowElement.DrawFill = True
    e.RowElement.BackColor = Color.LightYellow
ElseIf CInt(e.RowElement.RowInfo.Cells("trd_typ").Value) = 3 Then
     e.RowElement.DrawFill = True
     e.RowElement.BackColor = Color.Gold
End If

It works perfect!

But now when I multi-select the rows it doen't show the color of the selection? Is there a way to have the rows selected to have different color? Atleast I need to differentiate the selected rows.

In the attachment I submitted, I have selected row 2,3 and 4. It just shows the border of the rows little darker. Its very harder to distinguish the color of the selection.

So I just want a color for selecting records and if I unselect it, the color should come back to the original color.
Beatrice
Top achievements
Rank 1
 answered on 21 Oct 2014
4 answers
313 views
Hi,

I have a two level hierarchy in my RadGridview and want to hide a column on the second level grid, on a per row basis, based on a data element on the parent row.

I have attached an example, Based on the value of column3 of the master template, subColumn 4 is either visible or not.

I know how to programmatically set the visibility of the column, the only problem is that i do not have a per master template row granularity of control over the visibility of the second level grid's columns. the column is either visible for all of the second level hierarchy grids or not visible.

Is this a limitation of the gridview? At this point, some general guidance on this matter would be very helpful.

Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Oct 2014
5 answers
190 views
Hi, my intention is to display a RadcontextMenu on a RadListControl when a mouse right-button is pressed or released (depending on the ClickMode configuration of the RadListControl).

I just would like to threat a right-button click in the same way as a left-button click is threated by default in a  RadListControl, but I don't know whether Telerik provides a way to do this just by setting an specific property or somethins similar, what I'm doing is iterating the RadListControl items and determine which item contains the current mouse location but maybe this is a heavy method for big list item collections.

Pleasse. could you check my approach to see if it can be improved/simplified in some way via Telerik?

Also, I have an unsolved problem, in the line 96 of the code below I would like to determine which radListControl called the RadContextMenu to retrieve its SelectedItem.Text property, but I don't know if its possibly.

Thanks in advance.

001.Option Strict On
002.Option Explicit On
003.Option Infer Off
004. 
005.Imports Telerik.WinControls
006.Imports Telerik.WinControls.Enumerations
007.Imports Telerik.WinControls.UI
008. 
009.Public Class RadContextMenu_TestForm
010. 
011.    Private Shadows Sub Load() Handles MyBase.Load
012. 
013.        ' Set the RadListControl behavior
014.        With Me.RadListControl1
015.            .SortStyle = SortStyle.Ascending
016.            .SelectionMode = SelectionMode.One
017.            .ListElement.ClickMode = ClickMode.Release
018.        End With
019. 
020.        ' Set the listRadListControl items
021.        Me.RadListControl1.DataSource =
022.            From p As Process In Process.GetProcesses
023.            Select p.ProcessName
024. 
025.    End Sub
026. 
027.    ''' <summary>
028.    ''' Shows a RAD context menu on the active <see cref="RadListControl"/> item.
029.    ''' </summary>
030.    ''' <param name="ctrl">The <see cref="RadListControl"/> control.</param>
031.    ''' <param name="ctxm">The <see cref="RadContextMenu"/> to show.</param>
032.    Private Sub ShowRadContextMenu(ByVal ctrl As RadListControl,
033.                                   ByVal ctxm As RadContextMenu)
034. 
035.        For Each Item As RadListDataItem In ctrl.Items
036. 
037.            If Item.VisualItem IsNot Nothing AndAlso Item.VisualItem.IsMouseOverElement Then
038.                Item.Selected = True
039.                ctxm.Show(MousePosition)
040.            End If
041. 
042.        Next Item
043. 
044.    End Sub
045. 
046.    ''' <summary>
047.    ''' Handles the MouseDown event of the RadListControl1 control.
048.    ''' </summary>
049.    ''' <param name="sender">The source of the event.</param>
050.    ''' <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
051.    Private Sub RadListControl1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) _
052.    Handles RadListControl1.MouseDown
053. 
054.        Dim ctrl As RadListControl = DirectCast(sender, RadListControl)
055. 
056.        If (e.Button = Windows.Forms.MouseButtons.Right) _
057.        AndAlso (ctrl.ListElement.ClickMode = ClickMode.Press) Then
058. 
059.            Me.ShowRadContextMenu(ctrl, Me.RadContextMenu1)
060. 
061.        End If
062. 
063.    End Sub
064. 
065.    ''' <summary>
066.    ''' Handles the MouseUp event of the RadListControl1 control.
067.    ''' </summary>
068.    ''' <param name="sender">The source of the event.</param>
069.    ''' <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
070.    Private Sub RadListControl1_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) _
071.    Handles RadListControl1.MouseUp
072. 
073.        Dim ctrl As RadListControl = DirectCast(sender, RadListControl)
074. 
075.        If (e.Button = Windows.Forms.MouseButtons.Right) _
076.        AndAlso (ctrl.ListElement.ClickMode = ClickMode.Release _
077.                 OrElse
078.                 ctrl.ListElement.ClickMode = ClickMode.Hover) Then
079. 
080.            Me.ShowRadContextMenu(ctrl, Me.RadContextMenu1)
081. 
082.        End If
083. 
084.    End Sub
085. 
086.    ''' <summary>
087.    ''' Handles the Click event of the RadMenuItem1 control.
088.    ''' </summary>
089.    ''' <param name="sender">The source of the event.</param>
090.    ''' <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
091.    Private Sub RadMenuItem1_AddToExclusionList_Click(ByVal sender As Object, ByVal e As EventArgs) _
092.    Handles RadMenuItem1.Click
093. 
094.        If DirectCast(e, MouseEventArgs).Button = Windows.Forms.MouseButtons.Left Then
095. 
096.            MessageBox.Show(DirectCast(RadMenuItem1.OwnerControl, RadListControl).SelectedItem.Text)
097. 
098.        End If
099. 
100.    End Sub
101. 
102.End Class
Dimitar
Telerik team
 answered on 21 Oct 2014
1 answer
128 views
Are there plans to have RadDataEntry implement the IPrintable interface so it can be used with RadPrintDocument?
George
Telerik team
 answered on 21 Oct 2014
1 answer
104 views
Hi, 

How can i catch a new added row event while the user process the adding event 

thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Oct 2014
2 answers
880 views
Hi,
I  have 2 columns among other columns in a radgridview: one is a textbox and the another is a button (Scan button). The user either can enter data in the textbox or can click on the scan button to get back data into the textbox. The textbox has some validation that I don't need to be triggered if the user is clicking on the Scan button but should be triggered if the user click on any other cell. How can do that as right now any validation is triggered as soon as I click on the Scan button.

Thanks, 
Ryan
Top achievements
Rank 1
 answered on 20 Oct 2014
0 answers
80 views
Hi,
I have an asp.net 4.0 application with telerik control. In My cuurent page, have radtextbox, radwindow, and update panel also. When i click on the search button, it will display the record in radwindow  in IE and mozilla. But i want to add one more new radtextbox and enter some data,and search it. it will display the data, but in IE 8 , showing an error such as expected ')' at the line 109 char 68 code 0. But it is working in Mozilla fina. how can i resolve this one.?

if u look that line also design page, it is a blank line.

Thanks
Dileep
Dileep
Top achievements
Rank 1
 asked on 20 Oct 2014
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?