Telerik Forums
UI for WinForms Forum
5 answers
210 views
Hello experts!

I'm experimenting some problems with the treeview.
When I have the font setted to Arial (8.25pt, bold), it cuts the final text of some nodes. And when I have the font setted to Arial Narrow (8.25pt, bold), it solves the first case, but it cuts the final text of other nodes.

How I can solve this? It's important to use this fonts, and the bold property.

Thanks in advance!
Victor
Telerik team
 answered on 18 Mar 2009
4 answers
278 views
Hello,

First of all, I have been looking through all the posts looking for similar problem and despite there is an interesting post it hasn´t helped me, so I have decided to open a new thread.

I have added a RadDateTimePicker and I would like to apply a theme but not to the textbox but to the calendar. The background of the calendar is white and I would like to change it. I don´t mind to change a background color to the header or just change the theme to a radCalendar.

I have implemented the following code but didn´t work:
          this.radDateTimePicker1.ThemeName = "Telerik";
Unfortunately the theme is only applied to the textbox and calendar keeps the default theme.

What can I do to apply a theme ONLY to the calendar?

Thank you in advance.
Boyko Markov
Telerik team
 answered on 18 Mar 2009
1 answer
111 views
I have a Docking Manager that contains several Document Panes.  The Panes are selectable by using a tab.  However, currently, I don't know of a way to indicate which of the tabs has been selected (both the active and inactive tabs look the same).  This is important, because the Tab title indicates what the controls on the document pane refer to.

I'm trying to select a background color for both active and inactive tabs using Visual Style Builder (VSB).

I select the Load Control off the VSB File Menu, then Document Presenter control.

This brings up a hierarchy.  I select the following:

RootRadElement
   Docking.DocumentPresenterElement
      DockPresenterLayout
         ForceSizeLayoutPanel
            StripLayoutPanel
               CaptionLayout
                  RadTabStripElement
                     TabLayoutPanel
                        Docking.DockableTab

The Docking.DockableTab entry lets me set the background color property of the active tab.

Is there a way that I can set the background color of an inactive tab?

Thanks,
Richard
Julian Benkov
Telerik team
 answered on 17 Mar 2009
3 answers
126 views

If you go Edit UI and change the column header bgcolor it breaks the grid (invalid index)

It puts this in the designer code:

 

CType

 

(Me.radDataList.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(0), Telerik.WinControls.UI.GridHeaderCellElement).BackColor2 = System.Drawing.Color.FromArgb(CType(CType(232, Byte), Integer), CType(CType(241, Byte), Integer), CType(CType(251, Byte), Integer))

I would use the theme builder but it is barely working now (2009), wont let me change images on anything (button doesn't work) have to add it to the xml file instead, and the theme builder doesn't do any changes to headers even if i change the XML file
IE:
          <XmlPropertySettingGroup>
            <PropertySettings>
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.GradientStyle" Value="Linear" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.GradientAngle" Value="90" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.GradientPercentage" Value="0.3152455" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.GradientPercentage2" Value="0.3333333" />
              <XmlPropertySetting Property="Telerik.WinControls.VisualElement.BackColor" Value="243, 242, 237" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.BackColor2" Value="243, 242, 237" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.BackColor3" Value="243, 242, 237" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.BackColor4" Value="243, 242, 237" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.NumberOfColors" Value="4" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.DrawFill" Value="True" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.BorderColor" Value="222, 215, 222" />
              <XmlPropertySetting Property="Telerik.WinControls.VisualElement.SmoothingMode" Value="AntiAlias" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.DrawBorder" Value="True" />
              <XmlPropertySetting Property="Telerik.WinControls.UI.LightVisualElement.BorderGradientStyle" Value="Solid" />
              <XmlPropertySetting Property="Telerik.WinControls.VisualElement.ForeColor" Value="103, 167, 227" />
            </PropertySettings>
            <Selectors>
              <XmlClassSelector ElementClass="HeaderCell" />
            </Selectors>
          </XmlPropertySettingGroup>

Any thoughts?

 

Mike
Telerik team
 answered on 16 Mar 2009
1 answer
170 views
Hi,

I have just downloaded your new release and was happy to discover that RTL support for the ribbon is much better! :-)

Now for a few issues I have found:
1. Contextual Tabs: When having contextual tabs with quick access buttons, if the button have text (which makes them large) they appear over the contextual tabs and hide them. This happens in both modes: RTL and non-RTL though in RTL mode it is much worse.

2. Minimizing the Ribbon: The behavior of this feature is not compatible with Office2007 behavior. In the Rad ribbon, after minimizing the ribbon, if one of the tabs is pressed the minimization is canceled while in Office it only shows the specific tab, letting the user click something and then the ribbon disappears again. Please note that when minimizing it and clicking a tab, the ribbon only "hovers" (i.e. it is not being maximized and then minimized again). In addition, I think that when it is minimized there is still a visible part.

3. Small Images: I added a button to the ribbon, tried to set the SmallImage property, but nothing happened. Moreover, I have a little suggestion. I think it will be better to have two modes: 'Large Image mode' and 'Small Image mode' such that no matter what is the size of the image you set - it should be scaled according to the mode you're in. Meaning, if I set an image for the button, and the image is 64x64, large image mode will scale it to 32x32, while small image mode will scale it to 16x16 (after selecting this image as SmallImage of course).

Best Regards,
Roy.
Deyan
Telerik team
 answered on 16 Mar 2009
4 answers
150 views
I found a small article on animating gradient fills (to animate a button border),
I am keen on learning how all the various animation effects are used but
the various properties for each of the animation effects are not described
in any detail that I can find in the documentation.

That is to say there is no specific detail explaining what each of the properties
required are for the various animations. Is there documentation that anyone
could point me to relating specifically to the various animation effects and
their properties required/specified.

For example the article mentions BorderPrimitive.GradientAngleProperty
and I want to use .InnerColorProperty then where do I find examples for it
or documentation clearly stating what the values/value ranges expected
are for .InnerColorProperty in order to use it as an animation property.
Nick
Telerik team
 answered on 13 Mar 2009
1 answer
127 views
I have followed your tutorial on how to create a hierarchy using the GridView. Everything works perfectly except for one small issue. If there are no related records in a particular child, I don't get an Add New Row line (??), I therefore cannot add the first child record to the child table using the GridVew. If there is at least one related record, the Add New Row line is visible and allows me to add a new row.

Some help on this matter will be much appreciated
Martin Vasilev
Telerik team
 answered on 13 Mar 2009
2 answers
132 views
I bind my radGridView to a custom object - let's say a CustomerList that is made up of a bunch of Customer objects.

How do I get the underlying Customer object from the CurrentRow (or ANY row, for that matter)?

Thanks.

-- Greg
Jack
Telerik team
 answered on 13 Mar 2009
1 answer
135 views
I'm fairly new using Winforms gridview.  I'm trying to create a grid with a simple hierarchy relationship.  In the full auto mode it works fine. but when I try the manual bound mode I cannot make it work.  The child grid is not displayed at all.

Below is a snippet of code.  The commented out code is when I try the auto mode, so I don't believe there is anything wrong with the dataset.

Any help would be greatly appreciated.

                grdKitDetail.Relations.Clear();
                grdKitDetail.MasterGridViewTemplate.ChildGridViewTemplates.Clear();
                grdKitDetail.MasterGridViewTemplate.Columns.Clear();
                grdKitDetail.DataSource = null;
                grdKitDetail.AutoGenerateHierarchy = false;

                DataSet dataset = new DataSet();
                if (!Route._getKitDetail(ref dataset, masterid, kittypes)) { fstatus = false; goto PROC_EXIT; }

                dataset.Relations.Clear();
                dataset.Tables[0].TableName = "KitDetail"; dataset.Tables[1].TableName = "Inventory";
                dataset.Relations.Add("Inventory", new DataColumn[] { dataset.Tables["KitDetail"].Columns["DetailId"] },
                                                                        new DataColumn[] { dataset.Tables["Inventory"].Columns["DetailId"] });

                //grdKitDetail.AutoGenerateHierarchy = true;
                //grdKitDetail.DataMember = "KitDetail";
                //grdKitDetail.DataSource = dataset;
                //goto PROC_EXIT;

                grdKitDetail.DataSource = dataset.Tables["KitDetail"];

                GridViewTemplate childtemplate = new GridViewTemplate();
                childtemplate.DataSource = dataset.Tables["Inventory"];

                grdKitDetail.MasterGridViewTemplate.ChildGridViewTemplates.Add(childtemplate);

                GridViewRelation childrelation = new GridViewRelation(grdKitMaster.MasterGridViewTemplate);
                childrelation.ChildTemplate = childtemplate;
                childrelation.RelationName = "KitDetailInventory";
                childrelation.ParentColumnNames.Add("DetailId");
                childrelation.ChildColumnNames.Add("DetailId");
                grdKitDetail.Relations.Add(childrelation);

Jack
Telerik team
 answered on 13 Mar 2009
8 answers
257 views
Hey all,

I have a FlowLayoutPanel. AutoScroll is set to True, FlowDirection is TopDown, and WrapContents is False.

Inside this FlowLayoutPanel, I have a RadPanelBar. GroupStyle is ExplorerBarStyle. There is a single Element in this RadPanelBar.

The desired functionality is: When the Element is collapsed, the RadPanelBar.Height property should be set to the height of the Element's title bar. When the Element is expanded, RadPanelBar.Height should be the sum of the title bar's Height and the element content panel's height.

Obviously I've hooked an event handler up to the GroupExpandedChanged event of the Element. I need two Height values - the Content Panel's and the Title Bar's.

I can get to radPanelBarGroupElement1.ContentPanel.Height. That's fine, and returning as expected. 

I can't for the life of me work out how to extract the height of the title bar programatically.

Alternatively, if there's an easier way to do create this functionality, I'm all ears.
Boyko Markov
Telerik team
 answered on 13 Mar 2009
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?