Telerik Forums
UI for WinForms Forum
3 answers
118 views
The default tabs have a context menu. How can it be completely replaced or modified by removing unnecessary and adding new ones?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
7 answers
979 views

Hi, I'm using below code to validate items in the data entry. This event triggers whenever the items lose focus.

 

dataEntry.ItemValidated += (s, e) =>
                    {
                        ContactEntries employee = dataEntry.CurrentObject as ContactEntries;
                        if (e.Label.Text == "Contact person:")
                        {
                            if (employee.contactPerson.Length < 10)
                            {
                                Console.WriteLine("validated");
                                e.ErrorProvider.SetError(s as Control, "Field is required");
                                if (!dataEntry.ValidationPanel.PanelContainer.Controls.ContainsKey("Contact person:"))
                                {
                                    RadLabel label = new RadLabel();
                                    label.Name = "contactPerson";
                                    label.Text = "<html><size=10><b><color= Red>Contact person: </b><color= Black>First Name should be between 2 and 15 chars long.";
                                    label.Dock = DockStyle.Top;
                                    label.AutoSize = false;
                                    label.BackColor = Color.Transparent;
                                    dataEntry.ValidationPanel.PanelContainer.Controls.Add(label);
                                }
                            }
                            else
                            {
                                e.ErrorProvider.Clear();
                                dataEntry.ValidationPanel.PanelContainer.Controls.RemoveByKey("contactPerson");
                            }
                        }
                    };

 

On the first page of the data entry, the items contains predefined values, but the data entry is also connection with a binding navigator, allowing users to add a new page. How can I validate these two pages in case the user does not click each item that will trigger the validation?

 

Is there some way I can trigger the ItemValidated event manually? 

 

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
3 answers
58 views

How do I get the RadTabbedFormControlTab in the ContextMenuOpening on which the context menu was called?

RadTabbedFormControl.ContextMenuOpening += (obj, arg) => {
                arg.TabItem // There is only a TabItem, which is not a RadTabbedFormControlTab :(
};

 

I would like to get the tab on which the menu was called

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
4 answers
182 views
Hello !! There are any way to rotate the X-Y diagram of the chart ? like the attached picture. thx !!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
2 answers
83 views

Greetings,

 

         I am interested in knowing why code 1 works but code 2 below does not in repositioning the scroll on a RadGridView. Also, any posibile solution as to why code 2 does not work would be appreciated. Thank you.

Works:

Code 1 : dvTrackingLog.TableElement.ScrollTo(30, 0);

Code 1a: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[30];

AutoScrollGrid(30);

Code 1b: dvTrackingLog.TableElement.ScrollTo(rowIndex, 0);

Code 1c: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[rowIndex];

Does not work:

Code 2: dvTrackingLog.TableElement.ScrollTo(dvTrackingLog.SelectedRows[0].Index, 0);

Code 2a: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[dvTrackingLog.SelectedRows[0].Index];

AutoScrollGrid(rowIndex);

Code 2b: dvTrackingLog.TableElement.ScrollTo(rowIndex, 0);

Code 2c: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[rowIndex];

 

 

Andrey
Top achievements
Rank 1
 answered on 12 Jan 2021
1 answer
70 views

I can move and show trackball programmatically from this thread https://www.telerik.com/forums/programatically-move-and-show-trackball.

And how to hide trackball programmatically?

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jan 2021
3 answers
85 views
Hello again !, it's posible to set multiple panes on the chart ?? Thx !
Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jan 2021
6 answers
90 views

I have successfully located it, but I cannot change the "Agenda View" text. All other items are shown in Spanish.

 

How could I change that text?

 

 

    Inherits SchedulerNavigatorLocalizationProvider
    Public Overrides Function GetLocalizedString(ByVal id As String) As String
        Select Case id
            Case SchedulerNavigatorStringId.DayViewButtonCaption
                Return "Día"
            Case SchedulerNavigatorStringId.WeekViewButtonCaption
                Return "Semana"
            Case SchedulerNavigatorStringId.MonthViewButtonCaption
                Return "Mes"
            Case SchedulerNavigatorStringId.TimelineViewButtonCaption
                Return "Línea tiempo"
            Case SchedulerNavigatorStringId.AgendaViewButtonCaption
                Return "Agenda"
            Case SchedulerNavigatorStringId.ShowWeekendCheckboxCaption
                Return "Fin de semana"
            Case SchedulerNavigatorStringId.TodayButtonCaptionToday
                Return "Hoy"
            Case SchedulerNavigatorStringId.TodayButtonCaptionThisWeek
                Return "Esta semana"
            Case SchedulerNavigatorStringId.TodayButtonCaptionThisMonth
                Return "Este mes"
            Case SchedulerNavigatorStringId.SearchInAppointments
                Return "Buscar en citas"
            Case SchedulerNavigatorStringId.AgendaViewButtonCaption
                Return "Vista Agenda"
        End Select
        Return String.Empty
    End Function

 

Best Regards

Jaime

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jan 2021
2 answers
831 views
I have used both Telerik and Devexpress in projects in the past and while Telerik is good, it seems to lack some spit and polish.  I am looking for someone who has the skill to disabuse me of the notions that I will be raising in this post.  I WANT someone to prove me wrong so that I can feel good about switching to Telerik.

1.  Created a Ribbon Form using the latest Telerik controls as of today, when I installed it.  Went to create an application button menu item / description.  Much to my surprise I found that something as simple as wrapping the description text was left up to me.  In order to properly wrap this text, I am forced to create a compiler extension or library function (depending on your school of thought) that will take the output from the resource file and insert vbnewline entities after a certain number of letters.  This might work ok for English but when I release the software in another language, this wrapping function will likely have to be internationalized so that it will properly wrap something other than english.  I simply find it hard to believe that a product that certainly competes in many ways with DevExpress cannot handle this.  (I have gripes with the ribbon control from devexpress too, its lack of support for anything bigger than a 32 x 32 png icon is maddening).

2.  The ORM designer does not tag the the classes it generates with <datamember> or <datacontract> attributes and the documentation for this leaves much to be desired.  If you go with a code first approach it seems that there is a large amount of code that you need to write on your own to handle the data context duties.  The code first approach from devexpress seems to be more poco and I can decorate those classes with attributes that will end up feeding the database engine things like field length (for nvarchar) and so on.  Specifically there are additional classes that you need to hand code that the devexpress orm model seems to handle for you in that framework.

It is true that I did not attempt to take these generated classes and run them over the service boundary, but given the testing I have done in the past, WCF services pretty much will not serialize unless you have these attributes on your classes.

Now, if someone can disabuse me of these two notions I am all ears.  I am submitting this to the community as a challenge, especially someone who loves Telerik.  I do not dislike Telerik, but I reviewed it a number of years ago and found it lacking at that time (around 2008), and recently I won a copy of it at a .NET user meeting, so I tried it again, and found the issues above, again, causing me surprise that the product actually had these kinds of limitations being as mature as it is.

No product is perfect, I understand that, but the first issue seems to me to be easily implemented from a control perspective and the fact that it is not, leads me to wonder... what else will I run into if I adopt this product?

The ORM issue again, while not simple, it seems to me that it could be automated and that I could inherit a class that implements the needed capability in my poco class and it would have the data context methods already available to me, not as simple as the first issue I raised, but still seems to be a fairly straightforward OO design issue.  (just talk with JP at www.developwithpassion.com) and he'll tell you its a simple OO problem and probably code you the answer in about 60 minutes.

Anyhow, these are my thoughts after a day of review of this product.  If someone can disabuse me of these notions and provide fixes that will work under all the scenarios I have outlined, I would love to hear it.

Cheers,
B
Jay
Top achievements
Rank 1
Iron
Iron
 answered on 12 Jan 2021
1 answer
107 views

Hi,

I have written the below code on VS 2017 form button click suddenly the form is getting shrink. Please help me to solve this issue

using Telerik.Windows.Documents.Flow.Model;

Telerik.Windows.Documents.Flow.Model.RadFlowDocument document = new Telerik.Windows.Documents.Flow.Model.RadFlowDocument();
            Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor editor = new Telerik.Windows.Documents.Flow.Model.Editing.RadFlowDocumentEditor(document);
            editor.InsertText("Hello world!");


            using (Stream output = new FileStream(@"c:\logs\output.docx", FileMode.OpenOrCreate))
            {
                Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
                provider.Export(document, output);
            }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jan 2021
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?