Telerik Forums
UI for WinForms Forum
2 answers
169 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
169 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
245 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
1 answer
144 views
Hello
Using the Event Line Create Row in one of the cells in the grid code is written Grid View then called event data taken from the database. If the number of records about the event call will not be more than 25
Hristo
Telerik team
 answered on 22 May 2017
0 answers
137 views

Hello All.... 

i have this code .. 

    Private Sub GridBarang_CellEndEdit(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles GridBarang.CellEndEdit
        If e.ColumnIndex = 0 Then
            If GridBarang.CurrentCell.Value = Nothing Then
                MsgBox("test")
            Else
                Dim strSQL As String
                strSQL = Nothing
                strSQL = "SELECT KodeBarang, NamaBarang FROM MstBarang WHERE KodeBarang='" & GridBarang.CurrentRow.Cells(0).Value.ToString & "' ORDER BY KodeBarang"

                Using conn As New OleDbConnection(str)
                    conn.Open()
                    cmd = New OleDbCommand(strSQL, conn)
                    rd = cmd.ExecuteReader
                    rd.Read()

                    If Not rd.HasRows Then
                        MsgBox("Tidak ada kode tersebut ")

                    Else
                        With GridBarang
                            .CurrentCell.Value = rd.GetString(0)
                            .CurrentRow.Cells(1).Value = rd.GetString(1)
                        End With
                    End If

                    rd.Close()
                    conn.Close()
                End Using
            End If
        End If
    End Sub

How to prevent add new row when after inserting new data ... and go to column(3) after edited column(0)  

Thanks before.... 

 

Hengky
Top achievements
Rank 1
Veteran
 asked on 22 May 2017
2 answers
317 views

Is it possible to cancel a Drag and Drop Operation like on TreeView?
http://docs.telerik.com/devtools/winforms/treeview/drag-and-drop/cancel-a-drag-and-drop-operation

I'd like to impose some restrictions on drop operation based on from/destination rows.

Thank you.

Leonardo

Leonardo
Top achievements
Rank 1
 answered on 19 May 2017
6 answers
363 views
Hi

How to do i Display multiple fields in Display/Select Box?

Basically  is there way do display selected row, instead of just one filed Selected Filed

Thank you.
fabrizio
Top achievements
Rank 2
Iron
Veteran
 answered on 19 May 2017
8 answers
202 views
Is it possible to attach the column chooser to a panel?

Or a way to set the location of the column chooser.

Thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 May 2017
11 answers
223 views
appointments are not placed in the correct time slot when using a custom MonthTimescale


public RadRibbonForm1()
{
InitializeComponent();

this.radScheduler1.FocusedDate = new DateTime(2016, 1, 1);
this.radScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.Timeline;
SchedulerTimelineView timelineView = this.radScheduler1.GetTimelineView();
timelineView.RangeStartDate = new DateTime(2016, 1, 1, 00, 00, 00);
timelineView.RangeEndDate = new DateTime(2016, 12, 31, 23, 59, 59);
timelineView.StartDate = new DateTime(2016, 1, 1, 00, 00, 00);

Appointment appointment = new Appointment(new DateTime(2016, 1, 1, 00, 00, 00), new DateTime(2016, 1, 10, 00, 00, 00), "Quarter 1");
Appointment appointment2 = new Appointment(new DateTime(2016, 2, 1, 00, 00, 00), new DateTime(2016, 2, 10, 00, 00, 00), "Quarter 1");
Appointment appointment3 = new Appointment(new DateTime(2016, 4, 1, 00, 00, 00), new DateTime(2016, 4, 10, 00, 00, 00), "Quarter 2");
Appointment appointment4 = new Appointment(new DateTime(2016, 5, 1, 00, 00, 00), new DateTime(2016, 6, 10, 00, 00, 00), "Quarter 2");
Appointment appointment5 = new Appointment(new DateTime(2016, 7, 1, 00, 00, 00), new DateTime(2016, 7, 10, 00, 00, 00), "Quarter 3");
Appointment appointment6 = new Appointment(new DateTime(2016, 8, 1, 00, 00, 00), new DateTime(2016, 8, 10, 00, 00, 00), "Quarter 3");
Appointment appointment7 = new Appointment(new DateTime(2016, 11, 1, 00, 00, 00), new DateTime(2016, 11, 10, 00, 00, 00), "Quarter 4");
Appointment appointment8 = new Appointment(new DateTime(2016, 12, 1, 00, 00, 00), new DateTime(2016, 12, 10, 00, 00, 00), "Quarter 4");

this.radScheduler1.Appointments.Add(appointment);
this.radScheduler1.Appointments.Add(appointment2);
this.radScheduler1.Appointments.Add(appointment3);
this.radScheduler1.Appointments.Add(appointment4);
this.radScheduler1.Appointments.Add(appointment5);
this.radScheduler1.Appointments.Add(appointment6);
this.radScheduler1.Appointments.Add(appointment7);
this.radScheduler1.Appointments.Add(appointment8);

QuarterTimescale qTimeScale = new QuarterTimescale();
qTimeScale.DisplayedCellsCount = 4;
timelineView.SchedulerTimescales.Add(qTimeScale);
this.radScheduler1.GetTimelineView().ShowTimescale(qTimeScale);
}

class QuarterTimescale : MonthTimescale
{
public override int ScalingFactor
{
get
{
return 3;
}
}

public override string Name
{
get
{
return "Quarter";
}
}
}
Hristo
Telerik team
 answered on 18 May 2017
1 answer
199 views

Hi,

I have a very special question.

Need to do this:
The user changes the "RecurrenceRule" of an appointment. Standard is, that the complete appointment series changes - the past, too. I have to identify the selected date of changing the recurrence and change the appointment from this day to all future occurences. Past must be unchanged. How can we get that?

Please see my examples attached.

I want to select Saturday 27th. Open the recurrence edit dialog. Then change the series to one hour later. Save. The result must be the same as in my screenshot. Is that possible?

Thanks for your help.

Sascha

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 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)
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?