Telerik Forums
UI for WinForms Forum
1 answer
85 views
I am using the RadSplitButtonElement in my Ribbonbar on my form.
I am adding the RadSplitButtonElement dynamically in code.

I have 2 of them , both are suffering the same issues.
First - No matter what the text alignment or imagealignment or display style or textimagerelation setting , I can not get either of them to display the text at all.

Second , no matter what the image alignment , I cannot get the Image top center or middle center. Top center and middle center always end up with the image top right or right center respectively. Top left and middle left both work fine but basically I am stuck
with my image either right or left.

Any help ?
Peter
Telerik team
 answered on 18 Mar 2009
1 answer
109 views
Does the Q1 2009 Treeview support drag drop operations to other controls, without having to implement Windows drag drop methods?
Victor
Telerik team
 answered on 18 Mar 2009
9 answers
459 views
Hi There,

I working on telerik. I want to maintain the grid header resized from client for that session. For that i provide the grid header resizing facility from client side. For that i used the coding:

 using System; 
using System.Collections; 
using System.IO; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
 
namespace WebApplication1 
 public class GridSettingsPersister 
 private RadGrid gridInstance; 
 
 public GridSettingsPersister( RadGrid gridInstance ) 
 { 
  this.gridInstance = gridInstance; 
 } 
  
 //this method should be called on Render 
 public string SaveSettings() 
 { 
  object[] gridSettings = new object[4]; 
 
  //Save groupBy 
  GridGroupByExpressionCollection groupByExpressions = gridInstance.MasterTableView.GroupByExpressions; 
  object[] groupExpressions = new object[groupByExpressions.Count]; 
 
  int count = 0
  foreach( GridGroupByExpression expression in groupByExpressions ) 
  { 
   groupExpressions[count] = ((IStateManager)expression).SaveViewState(); 
   count++; 
  } 
 
  gridSettings[0] = groupExpressions; 
 
  //Save sort expressions 
  gridSettings[1] = ((IStateManager)gridInstance.MasterTableView.SortExpressions).SaveViewState(); 
 
  //Save columns order 
  int columnsLength = gridInstance.MasterTableView.Columns.Count + 
   gridInstance.MasterTableView.AutoGeneratedColumns.Length; 
 
  Pair [] columnOrder = new Pair[ columnsLength ]; 
 
  ArrayList allColumns = new ArrayList( columnsLength ); 
 
  allColumns.AddRange(gridInstance.MasterTableView.Columns ); 
  allColumns.AddRange(gridInstance.MasterTableView.AutoGeneratedColumns); 
 
  int i = 0
  foreach( GridColumn column in allColumns ) 
  { 
   Pair p = new Pair(); 
   p.First = column.OrderIndex; 
   p.Second = column.HeaderStyle.Width; 
 
   columnOrder[i] = p; 
 
   i++; 
  } 
 
  gridSettings[2] = columnOrder; 
 
 //Save filter expression 
  gridSettings[3] = (object)gridInstance.MasterTableView.FilterExpression; 
 
  LosFormatter formatter = new LosFormatter(); 
 
  StringWriter writer = new StringWriter(); 
  formatter.Serialize( writer, gridSettings ); 
 
  return writer.ToString(); 
 
 } 
 
 //this method should be called on PageInit 
 public void LoadSettings( string settings ) 
 { 
  LosFormatter formatter = new LosFormatter(); 
  StringReader reader = new StringReader( settings ); 
 
  object[] gridSettings = (object[])formatter.Deserialize( reader ); 
 
  //Load groupBy 
  GridGroupByExpressionCollection groupByExpressions = this.gridInstance.MasterTableView.GroupByExpressions; 
  groupByExpressions.Clear(); 
 
  object[] groupExpressionsState = (object[])gridSettings[0]; 
 
  int count = 0
  foreach( object obj in groupExpressionsState ) 
  { 
   GridGroupByExpression expression = new GridGroupByExpression(); 
   ((IStateManager)expression).LoadViewState( obj ); 
   groupByExpressions.Add( expression ); 
   count++; 
  } 
 
  //Load sort expressions 
  this.gridInstance.MasterTableView.SortExpressions.Clear(); 
  ((IStateManager)this.gridInstance.MasterTableView.SortExpressions).LoadViewState( gridSettings[1] ); 
 
  //Load columns order 
  int columnsLength = this.gridInstance.MasterTableView.Columns.Count + 
   this.gridInstance.MasterTableView.AutoGeneratedColumns.Length; 
 
  Pair [] columnOrder = (Pair[])gridSettings[2]; 
 
  if ( columnsLength == columnOrder.Length) 
  { 
   ArrayList allColumns = new ArrayList( columnsLength ); 
 
   allColumns.AddRange(this.gridInstance.MasterTableView.Columns ); 
   allColumns.AddRange(this.gridInstance.MasterTableView.AutoGeneratedColumns); 
 
   int i = 0
   foreach( GridColumn column in allColumns ) 
   { 
    column.OrderIndex = (int)columnOrder[i].First; 
    column.HeaderStyle.Width = (Unit)columnOrder[i].Second; 
 
    i++; 
   } 
  } 
  //Load filter expression 
  this.gridInstance.MasterTableView.FilterExpression = (string)gridSettings[3]; 
 
 } 
}  
By using this coding i am able to maintain the grid resizing for the session. But the problem i am facing is, i have provide facility in my grid that, when i will double click on any of the row in the grid it will move to  edit page, And when i will come back to this page grid header use to come its original size. It's not maintaining the session. I just wanna the grid should maintain the header resized on double click also. Can anybody tell me the way to maintain the session on grid double click also.

Regards:
Vimal Kumar Srivastava
Madhepura, Bihar
Email Id: vimaltech04@gmail.com


Vimal Kumar
Top achievements
Rank 1
 answered on 18 Mar 2009
3 answers
372 views

Hi,

Is it possible to custom the context menu on grid header?

In particular, I want to add a menu item for grouping my grid on one of the columns. That is the only one column my users are likely to group the grid, so I don't want to show the whole group panel.

I may want to add some anther menu items too.

Thanks.

Nikolay
Telerik team
 answered on 18 Mar 2009
5 answers
231 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
320 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
133 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
141 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
212 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
172 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
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?