Telerik Forums
UI for WinForms Forum
7 answers
1.5K+ views
Hi,
 I would like to set the default themes provided by telerik during the run time. Can I set the themes without dropping the theme controls and generate it during the run time?
Thanks
Stefan
Telerik team
 answered on 19 Jan 2011
9 answers
585 views
Hi I'm using Q3-2010 and I have installed the latest Service pack released yesterday and it has made no difference.

The problem I have is when I bind to the "SelectedIndex" property of the DropDownList. It works fine with other properties like "Text" but not with selectedindex.

Any suggestions please ?

Regards


Paul.
Peter
Telerik team
 answered on 19 Jan 2011
7 answers
348 views
HI,

There is any way to adjust Dropdownheight Property of the GridViewComboBoxColumn
of RadGridView...?

Thanks,
Somnath
Top achievements
Rank 1
 answered on 19 Jan 2011
5 answers
474 views
Like the ASP.NET version of this control, is this feature supported?
Jack
Telerik team
 answered on 19 Jan 2011
3 answers
296 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
207 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
542 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
242 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
213 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
353 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
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?