Telerik Forums
UI for WinForms Forum
5 answers
420 views
Like the ASP.NET version of this control, is this feature supported?
Jack
Telerik team
 answered on 19 Jan 2011
3 answers
233 views
I've got a basic context menu working on a RadGrid, but I want to include a 3rd context menu (with the arrow character >) that nestes and has a bunch of other menu items on its own menu panel. Would that need to be a combo box item?

What I have working so far is this (pretty basic context menu):

Dim contextMenu_Active As New RadContextMenu
  
Dim menuItem1 = New RadMenuItem("Stop")
menuItem1.ForeColor = Color.Red
AddHandler menuItem1.Click, AddressOf menuItem1_Click
Dim menuItem2 As New RadMenuItem("Remove")
AddHandler menuItem2.Click, AddressOf menuItem2_Click
contextMenu_Active.Items.Add(menuItem1)
contextMenu_Active.Items.Add(menuItem2)
  
Private Sub RadGridView_Active_ContextMenuOpening(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles RadGridView_Active.ContextMenuOpening
        If TypeOf Me.RadGridView_Active.CurrentRow Is GridViewDataRowInfo Then
            e.ContextMenu = contextMenu_Active.DropDown
        End If
    End Sub
  
Private Sub menuItem1_Click(ByVal sender As Object, ByVal e As EventArgs)
        Dim index As Integer = Me.RadGridView_Active.Rows.IndexOf(TryCast(Me.RadGridView_Active.CurrentRow, GridViewDataRowInfo))
        If index >= 0 Then
            Dim strGUID = Me.RadGridView_Active.Rows(index).Cells(0).Value
            Try
                ccJob.JobStop(strGUID)
            Catch ex As Exception
  
            End Try
        End If
    End Sub
    Private Sub menuItem2_Click(ByVal sender As Object, ByVal e As EventArgs)
        'TODO
    End Sub
Richard Slade
Top achievements
Rank 2
 answered on 18 Jan 2011
1 answer
156 views

1. When I render a chart on the screen I simply want to display the chart title at top left, such as:
(Chart Title)

2. However, when that chart is printed, (using RadChart.Printing.PrintChart()), I want the date printed as well, but right justified, and not as impacting, such as a smaller font or italic, such as this:

(Chart Title)                                                        Date Printed: 1/13/2011



Is this possible? I figure I could simply add the date printed part to the chart title text when a user prints a chart, and then remove it when printing is completed.  However, that doesn't resolve the issues of a different font and right justification.

Can a chart have multiple titles, like a ChartMainTitle and ChartSubTitle?  I think that would be the best solution, cause of course each could then be set up completely independently of each other to satisfy all user requests.  If this isn't possible, could the feature be added to a future version?

Thanks much,
Dan

 

 

 

 

Evgenia
Telerik team
 answered on 18 Jan 2011
3 answers
461 views
Hi Telerik Team,

We are having some problems with context menus in a radtreeview. I'll try to explain myself. We want to have two different context menus: one in the tree nodes and another different one in the tree view. That's because we want to have actions performed on a tree node (copy, paste, rename...), and different actions performed on the tree (add new nodes to tree.Nodes).

We don't want to have a root node at tree.Nodes where the rest of nodes hang, so that's what we've done so far:

We have a treeview. With a ContextMenuManager we add a context menu to the treeview ('treeviewContextMenu').
   this.radContextMenuManager1.SetRadContextMenu(this.treeView1,this.radContextMenuTree); 

Programmaticaly we add nodes to the tree, and we add a different contextmenu to the nodes:
RadTreeNode node = new RadTreeNode(); 
// fill more node properties 
node.ContextMenu = radContextMenuNodes.DropDown; 

At first we thought it worked but now we want to use this on a different tree where the nodes context menu has only one option while the tree one has many. And now we realized that both context menu are showing! Nodes context menu above tree context menu.

http://img129.imageshack.us/img129/2296/80110580.jpg

What are we doing wrong? Is there a way to do what we need? Could you help us, please?

We are using Q3 2008 version.

Thanks in advance.

Teba.


Julian Benkov
Telerik team
 answered on 18 Jan 2011
4 answers
164 views
I have some question about Rotator control.
1. How to using Rotator control.
2. How to using Rotator with Carousel.
3. The Rotator ContainerItem can contain other aplication(i can dislay other aplication in containerItem????)????

Can you attack some example about using Rotator control???

Thank and best regard!!!
Ivan Petrov
Telerik team
 answered on 18 Jan 2011
6 answers
135 views
Hello. I have used a RadRibbonForm and dropped a Windows7Theme on it. I explicitly specified the theme name on the controls (RibbonBar, StatusStrip). The Visual Studio IDE shows me the correct Office 2010-like ribbon interface. How ever, upon running on my Windows 7 x64 machine, The rendered form look somewhat different.

Please see attached image.

Also, I'm tired of specifying the theme on every element. I'm using Visual Inheritance and my Base form has an instance of Windows7Theme element dropped on it with it's modifiers being Private. All forms inheriting the Base Form are rendering with Windows7 theme but all elements on the form(s) are not. I have asked this question here as well.

Please help me out, kindly.
Peter
Telerik team
 answered on 18 Jan 2011
2 answers
230 views
I'm attempting to bind a Grid (programmatic-approach) through LINQ. Here is the scenario: I have a table of clients. Every client has branches and coordinators. They have more collections but I don't want to expose them. I want to show the clients in a grid with different filtering criteria. For every client, the row expands to two tabs: Branches and Coordinators

The sub rows in the Branches View and Coordinator View must NOT be further expandable.

I want to select the columns to be shown in the Branches and Coordinators Details View.

I have tried these two approached with no success:

RadGridViewSearch.DataSource = from pharms in DbContext.Pharmacies
                 where pharms.IsActive && pharms.Branches.Count > 0
                 orderby pharms.Name
                 select new {
                   pharms.OID,
                   pharms.Name,
                   pharms.PhoneNumber,
                   AddressInfo = String.Format("{0} {1} {2} {3}",
                         pharms.Contact.Addresses.FirstOrDefault().HouseNumber ??
                         String.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().Street ??
                         String.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().Area ??
                         String.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().PostCode ??
                         String.Empty),
                   CityName = pharms.Contact.Addresses.FirstOrDefault().City.Name,
                   pharms.Branches,
                   pharms.PharmacyCoordinators
                 };
 
RadGridViewSearch.DataSource = from pharms in DbContext.Pharmacies
                 from branches in pharms.Branches.DefaultIfEmpty()
                 from coords in pharms.PharmacyCoordinators.DefaultIfEmpty()
                 where pharms.IsActive && pharms.Branches.Count > 0 && pharms.PharmacyCoordinators.Count > 0
                 orderby pharms.Name
                 select new {
                   ClientOID = pharms.OID,
                   ClientName = pharms.Name,
                   ClientPhoneNumber = pharms.PhoneNumber,
                   ClientAddressInfo = string.Format("{0} {1} {2} {3}",
                         pharms.Contact.Addresses.FirstOrDefault().HouseNumber ??
                         string.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().Street ??
                         string.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().Area ??
                         string.Empty,
                         pharms.Contact.Addresses.FirstOrDefault().PostCode ??
                         string.Empty),
                   ClientCityName = pharms.Contact.Addresses.FirstOrDefault().City.Name,
                   BranchOID = branches.OID,
                   BranchName = branches.BranchNumber,
                   BranchPhoneNumber = branches.PhoneNumber,
                   BranchAddressInfo = String.Format("{0} {1} {2} {3}",
                          branches.Contact.Addresses.FirstOrDefault().HouseNumber ??
                          String.Empty,
                          branches.Contact.Addresses.FirstOrDefault().Street ??
                          String.Empty,
                          branches.Contact.Addresses.FirstOrDefault().Area ??
                          String.Empty,
                          branches.Contact.Addresses.FirstOrDefault().PostCode ??
                          String.Empty),
                   BranchCityName = branches.Contact.Addresses.FirstOrDefault().City.Name,
                   CoordinatorOID = coords.OID,
                   CoordinatorName = coords.FirstName + " " + coords.LastName,
                   CoordinatorCell = coords.MobileNumber,
                   CoordinatorEmail = coords.Email
                 };

The first one produces the desired result in short time but the results are uncontrolled. I cant prevent deep-drilling, Tabs names, and Columns. The second one produces liners results and hence that fails as well. And the second one takes massive time...

Can anyone guide on this?

Objective: Create Master details grid with full control of all Column Headers (Master + Detail), All details Tabs Names
Julian Benkov
Telerik team
 answered on 18 Jan 2011
9 answers
600 views
Are there any examples for doing an auto-complete with the WinForms GridView?  If not, is this something that can easily be done with the WinForm GridView?
Svett
Telerik team
 answered on 18 Jan 2011
2 answers
333 views
Hello my friends,

Is there a nice way for letting the user to set default values for some of the columns for new row? (when adding new row it will contains the default values (template row or something like this))

Another little question: can you tell me where i can find winforms grid view advanced demos? most of the demos i saw in the telerik tv are in high level.

Thank you very much!
Tomer
Richard Slade
Top achievements
Rank 2
 answered on 18 Jan 2011
3 answers
211 views
Hi:
I need to put a code with which the color of my button is the same that appears when you put your mouse over it.
Thanks.
Richard Slade
Top achievements
Rank 2
 answered on 18 Jan 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)
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
CheckedDropDownList
ProgressBar
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
NavigationView
VirtualKeyboard
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?