Telerik Forums
UI for WinForms Forum
3 answers
115 views

Is there a way to set the AppointmentTitleFormat for the scheduler's Print View? 

I would like the printed copy to have the data displayed the same as on the scheduler's view but its not using the AppointmentTitleFormat I have set for the control.

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 May 2017
1 answer
188 views

Hello,

I have bound a GridView to a bindingsource. The bindingsource are based on the entity frame work and will be set with the following code:

 bsDetekEingabePos.DataSource = (From DetektorPos As tblDetekEingabePos In dbContext.tblDetekEingabePos                                                           Order By DetektorPos.Id Where DetektorPos.SN = "4711" And DetektorPos.VarianteNr = 1
                               
Select DetektorPos).ToList

 

Now I have placed a DataFilter element on my form wich has the same datasource like the grid. I also have implemented the code:

Private Sub RadDataFilter1_Edited_1(sender As Object, e As TreeNodeEditedEventArgs) Handles RadDataFilter1.Edited        RadDataFilter1.ApplyFilter() 
 End Sub

 

But when I select a filter in the DataFilter nothing happens. The grid shows the same data then before.
Do you have any idea what the problem can be?

Thank's in advance
Karim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 May 2017
1 answer
201 views

I am working on a project in which RadDiagramShape is generated dynamically in foreach loop.

 

I need to change text of each Shape at each second. For that i need to access the Shape object by its name property which is unique. 

 

How to i get RadDiagramShape object by its name?

 

Hristo
Telerik team
 answered on 23 May 2017
2 answers
150 views

I have a winform with 2 radpageviews and controls on each.  I have set the ones I don't care about to 0 and those I care about to tabindexes of 5 each (i.e. 5, 10 etc.) 

They seem to go all over and not in the order I have it.  See attachment.  Left side is a pageview and the one in the middle is as well.  Each of the tabs on the left use the same user control (date, processes, first shift etc).

 

Mark
Top achievements
Rank 1
 answered on 23 May 2017
1 answer
174 views

Hello,

 

I am trying to copy only the selected cell content but having FullRow selection mode. So I wanted to use the CopyingCellClipboardContent event but it does not fire with the Control+C Key combination. Is this the expected behavior?

 

So I have to use the KeyDown event from Gridview as this:

    Private Sub grdMaquina_KeyDown(sender As Object, e As KeyEventArgs) Handles grdMaquina.KeyDown

        If e.KeyCode = Keys.C And e.Control Then
            If Not IsNothing(grdMaquina.CurrentCell) AndAlso Not IsNothing(grdMaquina.CurrentCell.Value) Then Clipboard.SetText(grdMaquina.CurrentCell.Value)
            e.Handled = True
        End If

    End Sub

Is this correct?

Thank you.

 

Dimitar
Telerik team
 answered on 23 May 2017
6 answers
188 views

Rad Scheduler - how to set color with specific height in timeline control with month wise

Ex :-Month 1: set color with 500 height

Ex:- Month 2 : set color with  800 height

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2017
2 answers
267 views

I was not able to set custom appointment height and width at runtime So, I was used TimelineAppointmentsPresenter class and ResolveOverlappingAppointments method using possible to display manually height and width at runtime.But I was faced one problem our appointment data is 10,00,000 When I was  create new appointment and set only new appointment height and width set. then all other appointment height and width default set(Not  Consider when previously set).So,every time set all appointment height and width.So,how to set only current appointment height and width and all other appointment  are as it is ?

Because it's decrease performance.

----Code

 Protected Overrides Sub ResolveOverlappingAppointments(availableSize As SizeF)
        
Dim arrangedAppointments As New List(Of AppointmentElement)()
  
        AppointmentElements.AsEnumerable().Where(Function(e) e.Visibility <> ElementVisibility.Collapsed).
            All(Function(o)
                  
    End Sub

End Class

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2017
2 answers
128 views

Dear Friend,
I am using RichTextEditor on a user control and I am opening this user control in a tab but some how only this form taking much time to load, any reason why this RichTextEditor taking much time...

 

Thanks

Hristo
Telerik team
 answered on 22 May 2017
3 answers
143 views

I am using a RadLiveTileElement. I want to put two custom user control and one LightVisualElement in it. I have written the following lines of code:

 

this.lteFrames1.ContentChangeInterval = 4000;
this.lteFrames1.TransitionType = ContentTransitionType.SlideUp;
this.lteFrames1.Text = "";
this.lteFrames1.TextImageRelation = TextImageRelation.Overlay;
this.lteFrames1.ForeColor = Color.Black;
this.lteFrames1.Row = 0;
this.lteFrames1.Column = 0;

RadHostItem host = new RadHostItem(new ucChartSalePerCompany()
{
Dock = DockStyle.Fill
});           
this.lteFrames1.Items.Add(host);

RadHostItem host2 = new RadHostItem(new ucChartSalePerMonth()
{
Dock = DockStyle.Fill
});

this.lteFrames1.Items.Add(host2);
this.lteFrames1.Items.Add(new LightVisualElement()
{
Padding = new Padding(4, 30, 0, 0),
       Font = new Font("Segoe UI Light", 12, GraphicsUnit.Point),
       ShouldHandleMouseInput = false,
       NotifyParentOnMouseInput = true,
       BackgroundImage = Properties.Resources.saleList2,
       BackgroundImageLayout = ImageLayout.Stretch,
       ForeColor = Color.Green,
       ZIndex = 10000
});

 

Everything is ok except the animation. The animation transition is ok only for the last item (LightVisualElement) that comes up inside of RadLiveTileElement and the other items (my user controls) come up from outside of RadLiveTileElement.

How can I solve this problem?

Thanks,

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2017
9 answers
193 views

Hi,
if I add 2 FilterDescriptor with same propertyname, I get an exception:

An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
(
An element with the same key has already been added.)

Stacktrace:

   bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   bei Telerik.Data.Expressions.ExpressionContext.Add(String key, Object value)
   bei Telerik.WinControls.UI.RadTreeViewElement.EvalFilter(RadTreeNode node)
   bei Telerik.WinControls.UI.TreeNodeView.UpdateView()
   bei Telerik.WinControls.UI.RadTreeNodeCollection.Update()
   bei Telerik.WinControls.UI.RadTreeViewElement.UpdateNodes()
   bei Telerik.WinControls.UI.RadTreeViewElement.filterDescriptors_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   bei Telerik.Collections.Generic.NotifyCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
...

Code:

    var fdc = new FilterDescriptorCollection();
fdc.Add(new FilterDescriptor("Time", FilterOperator.IsGreaterThanOrEqualTo, new DateTime(2017, 1, 1)));
fdc.Add(new FilterDescriptor("Time", FilterOperator.IsLessThanOrEqualTo, new DateTime(2017, 3, 31)));
fdc.Add(new FilterDescriptor("Location_Id", FilterOperator.IsEqualTo, 2));
this.radDataFilter1.FilterDescriptors.AddRange(fdc);

 

It works, if I calculate the Expressionstring:

this.radDataFilter1.Expression = fdc.Expression;

 

What is the correct way to initialize a Datafilter by code?

Peter

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2017
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?