Telerik Forums
UI for WinForms Forum
10 answers
235 views
I'm building an application with extensive visual inheritance. I have a Base RadForm. I need to have Windows7 theme application-wide. All forms inheriting this form have the correct theme but all controls that I place on the inheriting form are not picking the theme. How do I go about this? Need to manage theme for every Telerik control while using visual inheritance.

Edit: Here is a sample project. It has no theme (default blue theme) at the moment. I need Windows 7 theme (example) across the application but I want to set it through the BaseRadForm. One location to update theme application-wide.
Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
2 answers
149 views
Hi, I want to have a About Form displayed when clients clicks the application button on the Ribbon. How do I go about doing that?
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 13 Jan 2011
5 answers
230 views

I would like to modify one of the existing themes in my project.  Can I extract one of the built in themes and modify it with a different name.  Is this even possible?  I am mainly concerned with the Radform theme.

Richard Slade
Top achievements
Rank 2
 answered on 13 Jan 2011
12 answers
353 views

I need a control that does the following thing:

A Normal button on Top, and if i click on the button, it opens e.g. exact the same buttons (visually the same full button)  with other text in it

directly under the button above.

-----------
|   13:00 |       Button 1     ( Normal state)
-----------

------------
|   13:00  |         Button 1      (Expanded state)
------------
|   15:00  |         Button 2
------------
|   17:00  |         Button  3
-----------

Please could you tell me how can i realize this ?

Thank you very much

Stefan
Telerik team
 answered on 13 Jan 2011
2 answers
116 views
I have a RadScheduler (RadScheduler1) set to weekview and setting the RulerScaleSize to 15, and the ShowWeekends set to false.  On the form I have a checkbox (chkShowEnds) for "Show Weekends", with the following code in it's click event.


Dim weekview as SchedulerWeekVview = Me.RadScheduler1.GetWeekView()
weekview.ShowWeekend = Me.chkShowEnds.Checked

It set the ShowWeekends property, and the RadScheduler weekends appear and disappear correctly.  However, on the first click it sets the RulerScaleSize to some default setting of about 25 or so, and I can not seem to set it back to 15.  I tried testing around with setting the RulerScaleSize and it seems to set to a larger value, but not smaller ones.  It also seems to change the RulerScaleSize the first time, but not subsequent times.

Any help woul dbe appreciated.

Later
Art
Dobry Zranchev
Telerik team
 answered on 13 Jan 2011
10 answers
1.0K+ views
I have a list box with some items in it. I have a ContextMenu assigned to the ListBox

I want to add logic to the "DropDownOpening" event so that the menu only displays when an ITEM is right clicked, and that is contextual for that item.

I don't seem to be able to work out how to retrieve the item over which the right click was made.

I've tried listBox.SelectedItem but that doesn't work as the right click isn't moving the selection
I've also tried listBox.GetChildAtPoint(contextMenu.DropDown.Location) - but that always returns null

Any help greatly appreciated.

Grant
Peter
Telerik team
 answered on 13 Jan 2011
3 answers
151 views
Hi,

I'm using a GridView to display "Order Items".
Order Items can be arranged hierarchically by setting the Property "ParentOrderItemID" equal to the Property "OrderItemID" of the parent order item. Please not I can NOT use hierarchical grids.

What I want to do now is enabling custom sorting the following way:
If the User sorts by a certain attribute the sort algorithm must still keep together connected rows.

Say the grid has the following structure
[Order Item ID | Parent Order Item ID | Gross Value]

And the following values
[1 | null | 30]
  [2 | 1 | 20]
  [3 | 1 | 15]
[4 | null | 10]

If I now sort by "Gross Value", I want the sorted result to be:
[4 | null | 10]
[1 | null | 30]
  [3 | 1 | 15]
  [2 | 1 | 20]

How can I do it? I tried to use CustomSorting Event, but I'm stuck.

private void orderItems_grid_CustomSorting(object sender, GridViewCustomSortingEventArgs e)
       {
           if (this.orderItems_grid.SortDescriptors.Count == 0)
           {
               return;
           }
 
           int result = 0;
 
           SD_OrderItems item1 = e.Row1.DataBoundItem as SD_OrderItems;
           SD_OrderItems item2 = e.Row2.DataBoundItem as SD_OrderItems;
 
           for (int i = 0; i < this.orderItems_grid.SortDescriptors.Count; i++)
           {
               string cellValue1 = e.Row1.Cells[this.orderItems_grid.SortDescriptors[i].PropertyName].Value.ToString();
               string cellValue2 = e.Row2.Cells[this.orderItems_grid.SortDescriptors[i].PropertyName].Value.ToString();
 
               if (item1.ParentOrderItem.HasValue && item2.ParentOrderItem.HasValue)
               {
                   if (item1.ParentOrderItem.Value == item2.ParentOrderItem.Value)
                       result = cellValue1.CompareTo(cellValue2);
                   else
                       result = item1.ParentOrderItem.Value.CompareTo(item2.ParentOrderItem.Value);
               }
               else
               {
                   result = cellValue1.CompareTo(cellValue2);
               }
                
                
               if (result != 0)
               {
                   if (this.orderItems_grid.SortDescriptors[i].Direction == ListSortDirection.Descending)
                   {
                       result *= -1;
                   }
                   break;
               }
           }
           e.SortResult = result;
       }


Any help would be appreciated.

Thank you!
Stefan
Julian Benkov
Telerik team
 answered on 13 Jan 2011
4 answers
245 views
Hi,

I need this functionality in my application that when user is in edit mode in a cell and then leaves the cell, then next selected cell should not be in edit mode. Means leaving an editable cell should bring the grid out of editable mode no matter user leaves the editable cell by pressing right or left key or by using mouse . Can anyone help about it? Any help would be appreciated.

Thanks
Emanuel Varga
Top achievements
Rank 1
 answered on 13 Jan 2011
3 answers
259 views
We'd like to have the ability to add icon overlays to appointments. I don't see this functionality documented anywhere, so I assume that its not implemented directly. So my next question's would be:

Are appointments drawn using their own individual OnDraw() ? If so, where do I look to grab the drawing rectangle and graphics handle for an appointment object. 

If they are drawn on the schedule using the GDI graphics object of the scheduler grid, is there and accessible collection of rects for the current view, or would the control have to be extended manually. Obviously the latter option would be a last resort, since the layout logic would be a lot of work.

I know I could look at the source and find this out on my own, but where is the fun in that.

Thanks,
Chris
Richard Slade
Top achievements
Rank 2
 answered on 12 Jan 2011
1 answer
127 views

Hello,

I have created a custom theme for an application and I would like to know how I can theme the ExplorerBar view mode.

While exporting the premade theme “ControlDefault” as example, I only find these files in my directory:

  • -        ControlDefault_RadPageView_Telerik_WinControls_RootRadElement.xml
  • -        ControlDefault_RadPageView_Telerik_WinControls_UI_RadPageViewOutlookElement.xml
  • -        ControlDefault_RadPageView_Telerik_WinControls_UI_RadPageViewStackElement.xml
  • -        ControlDefault_RadPageView_Telerik_WinControls_UI_RadPageViewStripElement.xml


I am trying to create by myself the missing one (“_RadPageViewExplorerBarElement.xml”), but I fails in this task.


Can you please provide me this xml as example?


I am currently working in version 2010_2_10_914 (Q2SP2).

Thank you.

Stefan
Telerik team
 answered on 12 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
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?