Telerik Forums
UI for WinForms Forum
9 answers
306 views
When a ribbon is added to my main form, the main window looses its theming for the title bar and window borders.

Steps to reproduce:
Version 2012.1.321.40 Trial
Create a new project - make it a Telerik windows application.
Drop the Office2010Black them on the form in the Designer.
Add the following to your form constructor:

public MainForm()
{
InitializeComponents();
ThemeResolutionService.ApplicationThemeName = "Office2010Black";
}

Run the application.  Notice the tile bar is themed.  The thing looks nice.

Now add a ribbon bar.
Tell it that it is fine to add the behavior it wants to.
Add a new tab and a new group.
Run the application.

Notice the title bar is no longer themed.  Basically it looks really ugly.  See the attached PNG file.

What do I need to do to make the entire application honor the theming?

Thanks in advance for your great support.


Mohsen
Top achievements
Rank 1
 answered on 17 Feb 2013
1 answer
347 views

Hello,

 

I would like the RadPageViewPage to automatically resize itself to its contents when the contents is changed.

 

It appears that when the contents of the RadPageViewPage is changed its height stays the same. fig1 shows the height before content is modified fig2 shows the height after content is modified(pressing ‘Next’ button), fig3 shows the height after one of the RadPageViewPage tabs is clicked, clicking 'Next' after that keeps the same height. It appears that if a tab is clicked the RadPageView resizes itself. So how can I make the RadPageView resize itself to its content programmatically.

 

Code to reproduce:

 

    public Form1()
    {
        InitializeComponent();
 
        var spa = new SplitContainer()
        {
            Orientation = Orientation.Horizontal,
            Dock = DockStyle.Fill
        };
        spa.FixedPanel = FixedPanel.Panel2;
        spa.SplitterDistance =300;
        this.Controls.Add(spa);
 
        var rpv = new RadPageView()
        {
            Dock = DockStyle.Fill,
            ViewMode = PageViewMode.ExplorerBar
        };
        ((RadPageViewExplorerBarElement)rpv.GetChildAt(0)).ContentSizeMode = ExplorerBarContentSizeMode.AutoSizeToBestFit;
        var pag = Enumerable.Range(0, 3).Select(a =>
            new RadPageViewPage() { Name = "Page" + a, Text = "Page" + a, IsContentVisible = true }
        );
        rpv.Controls.AddRange(pag.ToArray());
 
        spa.Panel1.Controls.Add(rpv);
 
        var cn = 0;
        var b1 = new Button() { Text = "Next" };
        b1.Click += (o, e) =>
        {
            var cpag = rpv.Controls.Cast<RadPageViewPage>().ToList();
            cpag.ForEach(a => a.Controls.Clear());
            cpag.ForEach(a => a.Controls.Add(new RadLabel() { Text = (cn++) + "\na\nb\nc\nd\ne\n" }));
        };
        spa.Panel2.Controls.Add(b1);
    }
}

 

Any help would be appreciated,

Julian Benkov
Telerik team
 answered on 15 Feb 2013
1 answer
225 views
Hello,

I'm using version 2012.3.1310.40
I use ChartView to create a pie chart with the following data
Assets          2248550.22
Income             19748.67
Equity           2228253.95
Liability                 547.60

So, when the chart displays, the Percentage is set as follows:
Assets       50%
Income        0%
Equity         50%
Liability        0%

I notice when the percentage is 0% for any data, the pie chart shows "0%" near the chart title (please see attachment).  Or if the calculated data returns 0, it doesn't show any percentage on the chart, but it shows "NaN" near the title as well. (please see attachment).

Any idea why?
Thanks in advance for your help!
Chris
Julian Benkov
Telerik team
 answered on 15 Feb 2013
3 answers
333 views
Hi,

              I have created a user control say ctlSchedular(along with RadSchedulerNavigator).And i am loading ctlSchedular  in a form say Form1 ,in that Form1 i have a Radpageview with outlook mode with 2 pages. In the 2nd page i have a RadCalendar .

Now i need a sync between calendar and schedular ...

1)If i click  on the forward navigator button on the RadSchedulerNavigator then the date on the calender should change.

2)If i click  some date in the Radcalendar then date in the schedular should change .

How can i do this .can anyone please explain it.

Thanks
Hema
Ivan Todorov
Telerik team
 answered on 15 Feb 2013
3 answers
109 views
i'm trying to write  text in hebrew at the context of the desktop alert,
without any success.
the syntax that im writing is:
<html dir=rtl> "TEXT" </html>.
does the control support rtl?
Ivan Todorov
Telerik team
 answered on 15 Feb 2013
2 answers
501 views
how  to make a particular row  in a grid view  as read only?

How to make selected row read only true in telerik gridview?


Thanks

Vedanayagam G
Stefan
Telerik team
 answered on 15 Feb 2013
1 answer
132 views
I've having some trouble trying to display a RadSplitButtonElement as item of a RibbonBarGroup.
I'm expecting the RadSplitButtonElement to use the same backgound/foreground color as the
other types of buttons once I've applied any of the following themes:
. office2010black
. office2007blue...

As shown in the attached pictures, the element is painted using a brighter color than the other
elements, even when being inactive (which makes it really really visible in my GUI)

I cannot figure out if this may be considered as a bug or was really designed to be displayed like this.
What would you recommend to get the RadSplitButtonElement being displayed with the same default
settings than the other button elements ? Should I build a custom version of the office theme ?
Override a custom RadSplitButton ?

Moreover, as pictured in file inactivesplitofficeblack2010_after, the font color of the split button
remains dark blue once i've applied the office2007blue theme and came back to the office2010black theme.
This issue can also be reproduced with the telerik theme viewer which came with the Q3 2012 release.

Is that already a known issue ?

Thanks a lot,
Antoine.
Peter
Telerik team
 answered on 15 Feb 2013
1 answer
188 views
Hi ,

I am using Rad Controls for WIndows version of Q1-2012 .Kindly ,can any one help me how to use the barcode functionality in my vs2008 windows application .
I cound't not find any namespace in for this functionality in my application .
Thanks & Regards,
martin RObert
Stefan
Telerik team
 answered on 15 Feb 2013
1 answer
128 views
My regional settings in Windows show that date should be formatted as follows:
yyyy-MM-dd
'den 'd MMMM yyyy

Now, when I show a DateTime in you RadPropertyGrid, I get this weird format:
item.Value == "2013-02-12 14:46:39"
item.FormattedValue == "2-12-2013 2:46 "

FormattedValue is shown in the UI (I haven't set the CultureInfo in my app, and all my resources are marked as Neutral). To me, this looks like some non-standard format string.
1) It doesn't use my system's locale.
2) The time has no "PM" suffix.
3) The string has a trailing space.

What's going on? Why doesn't the formatter respect my settings?
Ivan Petrov
Telerik team
 answered on 15 Feb 2013
1 answer
152 views
Hello,

When the radCheckBox is disabled you can not see the check mode on breeze theme.
This bug was handled at the new version of telerik.
I have a custom theme that I need to fix.
What are the changes that have been done at the style of this control?

Thanks.
Plamen
Telerik team
 answered on 15 Feb 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?