Telerik Forums
UI for WinForms Forum
7 answers
322 views
Hi There,

I am very new to Telerik winform controls and trying to use RadRibbonBar and would like to get all the child elements (i.e. start menu items, buttons, group boxes etc) from the ribbon bar in a control collection. I want to enable and disable the specific controls based on user rights.

Please let me know if there is any possibility to get around that.

Cheers,

Robert
Peter
Telerik team
 answered on 14 Mar 2013
1 answer
121 views
Sir;

Can we scroll schedule when we are dragging a appointment.
(  is there any property like ensure visible)
Also can we create a appointment just on clicking scheduler and drag and drop to desire date and time.


Thanks & regards
Raman kumar



Julian Benkov
Telerik team
 answered on 14 Mar 2013
3 answers
761 views

Is there a flag or argument that would differentiate the purpose in the IPrintable:PrintPage function.

I would like to modify what the print preview looks like as opposed to what is actually being sent to the printer. Our printers prints everything in Landscape, even though the the page orientation is Portrait. (yes its a specialized printer) . So I would like the user to be able to read it on the screen in Horizontal, but when I send it to the printer itself, Id like the text to be Vertical.

For PrintPreview I am using the RadGdiGraphics, and Telerik.WinControls.Primitives.TextParams. 

Currently I have it set as  

tp.textOrientation = Orientation.Vertical

Which is what needs to be sent to the printer, but for print preview I would like

tp.textOrientation = Orientation.Horizontal

-------

Could this be accomplished using a PrintController. I've see limited documentation on that, and no examples, or explanation of exactly what it does, or allow you to programatically control.

Thanks in advance.


Ivan Petrov
Telerik team
 answered on 14 Mar 2013
7 answers
235 views
Hi,
Trying to automate the web application using the Microsoft coded ui, in one of page Telerik RadTabControl is used.
Telerik control Version:  2011.2.712.1040 
Not able to automate the controls that is present inside the RadTabControl.

Please conform whether the 'RadTabControl' support the automation?









Stefan
Telerik team
 answered on 14 Mar 2013
10 answers
296 views
How can I change the font menu on radgridview??
Attach a photo
Stefan
Telerik team
 answered on 14 Mar 2013
3 answers
227 views
HI,
 
    I am not able to clear filter value in GridViewDateTimeColumn while pressing delete key or backspace key. Instead of clear  it resets to default date. Whether can we set any key down event explicitly in that DateTimePIcker or was there any other way to clear filter value when press delete key.
Stefan
Telerik team
 answered on 14 Mar 2013
2 answers
796 views
Hi Guys

I'm want to create a listview of items where the item has a waiting bar which appears when the item is pressed and disappears again once a long running process kicked off by the press has completed. I have successfully built the custom item but when I go to the ItemMouseClick event of the listview I'm not sure how to access the waiting bar element so that I can make it visible and set it running.

Many thanks in advance

regards
Ian Carson

public class RadCustomVariationViewVisualItem : IconListViewVisualItem
   {
       private LightVisualElement _imageElement;
       private LightVisualElement _nameElement;
       private LightVisualElement _descriptionElement;
       private RadWaitingBarElement _waitingBarElement;
       private StackLayoutPanel _overallLayout;
       private StackLayoutPanel _textLayout;
 
 
       protected override void CreateChildElements()
       {
           base.CreateChildElements();
 
           _overallLayout = new StackLayoutPanel {Orientation = Orientation.Horizontal};
 
           _imageElement = new LightVisualElement
               {
                   DrawText = false,
                   ImageLayout = ImageLayout.Center,
                   StretchVertically = false,
                   Margin = new Padding(10, 22, 10, 5),
                   NotifyParentOnMouseInput = true,
                   ShouldHandleMouseInput = false
               };
 
           _overallLayout.Children.Add(_imageElement);
 
           _textLayout = new StackLayoutPanel { Orientation = Orientation.Vertical };
            
           _overallLayout.Children.Add(_textLayout);
 
           _nameElement = new LightVisualElement
               {
                   TextAlignment = ContentAlignment.MiddleLeft,
                   Margin = new Padding(10, 10, 10, 5),
                   Font = new Font("Segoe UI", 12, FontStyle.Bold, GraphicsUnit.Point),
                   NotifyParentOnMouseInput = true,
                   ShouldHandleMouseInput = false
               };
 
           _textLayout.Children.Add(_nameElement);
 
           _descriptionElement = new LightVisualElement
           {
               TextAlignment = ContentAlignment.MiddleLeft,
               Margin = new Padding(10, 5, 10, 5),
               Font = new Font("Segoe UI", 12, FontStyle.Bold, GraphicsUnit.Point),
               NotifyParentOnMouseInput = true,
               ShouldHandleMouseInput = false
           };
 
           _textLayout.Children.Add(_descriptionElement);
 
           _waitingBarElement= new RadWaitingBarElement();
           _waitingBarElement.WaitingBarOrientation = Orientation.Horizontal;
           _waitingBarElement.WaitingDirection = ProgressOrientation.Right;
           _waitingBarElement.Size = new Size(120, 14);
           _waitingBarElement.WaitingIndicatorSize = new Size(50, 30);
           _waitingBarElement.WaitingSpeed = 90;
           _waitingBarElement.WaitingStep = 2;
           _waitingBarElement.WaitingStyle = WaitingBarStyles.Dash;
           //_waitingBarElement.Visibility = ElementVisibility.Collapsed;
           _waitingBarElement.StartWaiting();
           _textLayout.Children.Add(_waitingBarElement);
 
           Children.Add(_overallLayout);
           Padding = new Padding(10);
           Margin = new Padding(4, 2, 4, 2);
           Shape = new RoundRectShape(5);
           DrawBorder = true;
           DrawFill = true;
 
           BorderInnerColor = SystemColors.ControlLightLight;
           BorderInnerColor2 = SystemColors.Control;
           BorderInnerColor3 = SystemColors.ControlDark;
           BorderInnerColor4 = SystemColors.ControlDarkDark;
           BorderGradientStyle = GradientStyles.Solid;
           BorderBottomColor = SystemColors.ControlDark;
           BorderLeftColor = SystemColors.ControlDark;
           BorderTopColor = SystemColors.ControlDark;
           BorderRightColor = SystemColors.ControlDark;
           BorderGradientAngle = 270;
           BorderGradientStyle = GradientStyles.Solid;
 
           BackColor = SystemColors.Window;
           BackColor2 = SystemColors.Control;
           BackColor3 = SystemColors.ControlDark;
           BackColor4 = SystemColors.ControlLightLight;
           GradientAngle = 90;
           GradientPercentage = (float) 0.5;
           GradientPercentage2 = (float) 0.666;
           GradientStyle = GradientStyles.Linear;
           NumberOfColors = 2;
           SmoothingMode = SmoothingMode.AntiAlias;
 
       }
 
       protected override void OnMouseEnter(EventArgs e)
       {
           base.OnMouseEnter(e);
           BorderInnerColor = SystemColors.ControlLightLight;
           BorderInnerColor2 = SystemColors.Control;
           BorderInnerColor3 = SystemColors.ControlDark;
           BorderInnerColor4 = SystemColors.ControlDarkDark;
           BorderGradientStyle = GradientStyles.Solid;
           BorderBottomColor = SystemColors.ControlDark;
           BorderLeftColor = SystemColors.ControlDark;
           BorderTopColor = SystemColors.ControlDark;
           BorderRightColor = SystemColors.ControlDark;
           BorderGradientAngle = 90;
           BorderGradientStyle = GradientStyles.Linear;
 
           BackColor = SystemColors.Window;
           BackColor2 = SystemColors.Control;
           BackColor3 = SystemColors.ControlDark;
           BackColor4 = SystemColors.ControlLightLight;
           GradientAngle = 90;
           GradientPercentage = (float)0.5;
           GradientPercentage2 = (float)0.666;
           GradientStyle = GradientStyles.Linear;
           NumberOfColors = 3;
           SmoothingMode = SmoothingMode.AntiAlias;
       }
 
       protected override void OnMouseLeave(EventArgs e)
       {
           base.OnMouseLeave(e);
           BorderInnerColor = SystemColors.ControlLightLight;
           BorderInnerColor2 = SystemColors.Control;
           BorderInnerColor3 = SystemColors.ControlDark;
           BorderInnerColor4 = SystemColors.ControlDarkDark;
           BorderGradientStyle = GradientStyles.Solid;
           BorderBottomColor = SystemColors.ControlDark;
           BorderLeftColor = SystemColors.ControlDark;
           BorderTopColor = SystemColors.ControlDark;
           BorderRightColor = SystemColors.ControlDark;
           BorderGradientAngle = 270;
           BorderGradientStyle = GradientStyles.Solid;
 
           BackColor = SystemColors.Window;
           BackColor2 = SystemColors.Control;
           BackColor3 = SystemColors.ControlDark;
           BackColor4 = SystemColors.ControlLightLight;
           GradientAngle = 90;
           GradientPercentage = (float)0.5;
           GradientPercentage2 = (float)0.666;
           GradientStyle = GradientStyles.Linear;
           NumberOfColors = 2;
           SmoothingMode = SmoothingMode.AntiAlias;
       }
 
       protected override void SynchronizeProperties()
       {
           _imageElement.Image = (Image)Data["Image"];
           _nameElement.Text = Convert.ToString(Data["Name"]);
           _descriptionElement.Text = Convert.ToString(Data["Description"]);
       }         
        
       protected override SizeF MeasureOverride(SizeF availableSize)
       {
           var measuredSize = base.MeasureOverride(availableSize);
           _overallLayout.Measure(measuredSize);
           return measuredSize;
       }         
        
       protected override SizeF ArrangeOverride(SizeF finalSize)
       {
           base.ArrangeOverride(finalSize);
           _overallLayout.Arrange(new RectangleF(PointF.Empty, finalSize));
           return finalSize;
       }
 
                   
   }

private void LvViewsItemMouseClick(object sender, ListViewItemEventArgs e)
{
    if (_resultsTable==null)
        _resultsTable = StrategyBacktestLoader.getBacktestResults(frmParadigmFM.Authority, ThisParent.StrategyID, ThisParent.ID,
                                                                  ThisVariation.ID);
 
    var element = sender as RadCustomVariationViewVisualItem;
 
    var view = (BacktestViewType) e.Item.Tag;
    DisplayBacktestView(view);
}

Ian
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
590 views
Hello,

I'm having problems when updating the DataSource property.
when I update the DataSource property of a radListView object the scroll bar jumps to the start.
when accessing the scroll properties (.AutoScrollPosition, VerticalScroll.Value) i always get that the value is 0.
how can i keep the ListView in it's place (making the scroll not go back to the start of the list)?

thank you

Stefan
Telerik team
 answered on 13 Mar 2013
5 answers
475 views

Hi,
I am using this property for best fit my column(objComboBox.MultiColumnComboBoxElement.AutoSizeDropDownToBestFit =

true;) in RadMultiColumnComboBox columns but when i have data source which have a lot of data i need to implement filtering on it.
I am implemening it in this way:

FilterDescriptor filter = new FilterDescriptor();

filter.PropertyName = objComboBox.DisplayMember;

filter.Operator =

FilterOperator.Contains;

objComboBox.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
but it's take a lot of time when the filter is auto complete.
Please how to make filtering in this controll and dont take a time.
Note: When i am not using
AutoSizeDropDownToBestFit it's( Filter) works fine and i dont have delay( my data source have more then 1000 items and 3 columns), but when i have Combo which have more then 3 column and the size of DropDown is less, than the user can not see what have in that control.
What is your suggestion to eliminate this issue.
Best regards,
Gezim

Jack
Telerik team
 answered on 13 Mar 2013
1 answer
289 views
How do I show my form icon in the taskbar only, not in ribbonbar, when I am using the RadRibbonForm and BackStage?
Peter
Telerik team
 answered on 13 Mar 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)
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
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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?