Telerik Forums
UI for WinForms Forum
2 answers
95 views

Hi ,

When i click to the line "Click here to add new row" on grid view. It will enter to add new mode. Can i put one more row above a new row like "Please press enter to save" and a new row will be below. Because i want to guide the customer know how to save the new row. Can i do that or some way like that ?

 

Thanks.

Bao
Top achievements
Rank 1
 answered on 22 Jul 2017
18 answers
807 views
I would like to turn off the case sensitive filters in the WinForm GridView.  I've found a few CaseSensitive flags and have set them to  false  but the grid filters are remaining case sensitive.  Here is an example of what I tried:

dataTable.Rows.Clear();
dataTable.BeginLoadData();
   ((logic for adding rows to the data table is here))
dataTable.CaseSensitive = false;
dataTable.EndLoadData();

radGridView.MasterTemplate.BeginUpdate();
radGridView.MasterTemplate.CaseSensitive = false;
radGridView.DataSource = dataTable;
radGridView.GridBehavior.GridControl.CaseSensitive = false;
radGridView.MasterTemplate.EndUpdate();

I am using the following Telerik library:
    WinForms Q3 2011 (version 2011.3.11.1116)

Can you please explain how to turn off case sensitivity for the filters in your WinForm grid control?

Can you also provide the class paths for all the CaseSensitivity flags?
  e.g. 1) radGridView.MasterTemplate.CaseSensitive
         2) radGridView.GridBehavior.GridControl.CaseSensitive
         3) etc...

Thanks so much!
Scott

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jul 2017
2 answers
171 views

I realize we cannot add a RadSeparator to the RadRibbonBarBackStageView currently (it's not a RadItem) but there really should be some kind of "Separator" for the navigation (we have separators for every other navigational elements: ribbons, groups, menus.)

 

I also realize that earlier versions of the Office Backstage did not include a Separator however, all of the newer versions do so no harm in allowing someone to select "Windows 7" as their theme and still allow this, is there?

 

Adjustable Properties should be (IMHO)

   EdgeWidth - this is how close to either edge the line will be drawn (there's no reason the line has to go 100% across)

   LineHeight - in pixels how thick to draw the line.  set limits at something reasonable like 1-10

   LineColor - obvious

   Height - users should be allowed to adjust how tall/short the separator is.  This is not to be confused with LineHeight.  This is the total height of the control whereas LineHeight is just the line being drawn.

 

The attached image shows what I came up with in my ap - I got a little fancy with the line itself by allowing a leading and trailing linear gradient and my usercontrol lets me select the length of the gradiation but no need to go totally cray cray.

 

Anyway just my two cents :)

-C

 

Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 20 Jul 2017
1 answer
141 views

Hi,

I want to align my popup to snap the left or the right corner of its RadPopupEditor item. (See the picture for more details).

As you can see the popup is not aligned neither to the left nor to the right. How can I control the behaviour of the popup?

Things i have tried so far:

            popUpEditorConnect.PopupEditorElement.Alignment = ContentAlignment.TopLeft;             popUpEditorConnect.Popup.AlignmentRectangleOverlapMode = AlternativeCorrectionMode.Flip;             popUpEditorConnect.Popup.DropDownAnimationDirection = RadDirection.Left;             popUpEditorConnect.Popup.HorizontalAlignmentCorrectionMode = AlignmentCorrectionMode.SnapToEdges;              popUpEditorConnect.Popup.HorizontalPopupAlignment = HorizontalPopupAlignment.LeftToLeft;

Hristo
Telerik team
 answered on 20 Jul 2017
1 answer
313 views

Hello,

A while back I requested the ability to embed fonts when exporting from a RichTextEditor to pdf. Eventually this functionality was added (thank you for that!), but in my current use case it's causing pdf filesizes to be extremely large compared to the workaround solution I've initially implemented. I was wondering if anyone at Telerik would have an idea on the differences between the two methods and why one is much larger than another.

Use case info:
I'm required to take the output from a bunch of RichTextEditors, export each one to a pdf and then merge those individual pdfs into a larger one. By using the PdfFormatProvider, this causes fonts to be embedded multiple times in the merged pdf (and makes the filesize really large).

However, before this functionality, Telerik recommended a workaround to get fonts embedded that takes the content from the the RichTextEditor into a docx file, then imported back in and exported to a pdf. This was a hacky workaround that causes some formatting issues, but actually embedded the font and didn't balloon the filesize.

(for details on the workaround, it was recommended in this thread: http://www.telerik.com/forums/embedding-fonts-in-pdf-output)

 

Is there anyway to make the proper pdf export provider work similar to the one in the workaround? Using the correct export provider fixes a bunch of my issues, but the duplicate embedded fonts causing large file size is a dealbreaker unfortunately.

Thanks!

-Tom

Hristo
Telerik team
 answered on 20 Jul 2017
23 answers
522 views
are there any samples on how to build a menu dynamically from the database?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jul 2017
4 answers
131 views

Hi ,

I create custom cell in gridview . My code :

 public class RadioButtonCellElement : GridDataCellElement
    {
        private RadRadioButtonElement radioButtonElement1;
        private RadRadioButtonElement radioButtonElement2;
        private RadRadioButtonElement radioButtonElement3;
        private RadTextBoxEditorElement customText;
        public RadioButtonCellElement(GridViewColumn column, GridRowElement row)
        : base(column, row)
        {
        }
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            radioButtonElement1 = new RadRadioButtonElement();
            radioButtonElement1.Margin = new Padding(0, 2, 0, 0);
            radioButtonElement1.MinSize = new Size(50, 20);
            radioButtonElement1.Text = "0.1";

            radioButtonElement2 = new RadRadioButtonElement();
            radioButtonElement2.Margin = new Padding(0, 2, 0, 0);
            radioButtonElement2.MinSize = new Size(50, 20);
            radioButtonElement2.Text = "0.2";

            radioButtonElement3 = new RadRadioButtonElement();
            radioButtonElement3.Margin = new Padding(0, 2, 0, 0);
            radioButtonElement3.MinSize = new Size(80, 20);
            radioButtonElement3.Text = "Custom";

            customText = new RadTextBoxEditorElement();
            //customText.Enabled = false;
            customText.Size = new Size(10, 20);

            this.Children.Add(radioButtonElement1);
            this.Children.Add(radioButtonElement2);
            this.Children.Add(radioButtonElement3);
            this.Children.Add(customText);

            radioButtonElement1.MouseDown += new MouseEventHandler(radioButtonElement1_MouseDown);
            radioButtonElement2.MouseDown += new MouseEventHandler(radioButtonElement2_MouseDown);
            radioButtonElement3.MouseDown += new MouseEventHandler(radioButtonElement3_MouseDown);
        }

    protected override void DisposeManagedResources()
        {
            radioButtonElement1.MouseDown -= new MouseEventHandler(radioButtonElement1_MouseDown);
            radioButtonElement2.MouseDown -= new MouseEventHandler(radioButtonElement2_MouseDown);
            radioButtonElement3.MouseDown -= new MouseEventHandler(radioButtonElement3_MouseDown);
            base.DisposeManagedResources();
        }

        protected override SizeF ArrangeOverride(SizeF finalSize)
        {
            if (this.Children.Count == 4)
            {
                this.Children[0].Arrange(new RectangleF(0, 0, 50, 20));
                this.Children[1].Arrange(new RectangleF(55, 0, 50, 20));
                this.Children[2].Arrange(new RectangleF(110, 0, 20, 20));
                this.Children[3].Arrange(new RectangleF(180, 0, 50, finalSize.Height));
                this.Children[3].Alignment = ContentAlignment.MiddleCenter;
            }

            return finalSize;
        }

      public override void Initialize(GridViewColumn column, GridRowElement row)
        {
            base.Initialize(column, row);

            ((RadioPrimitive)radioButtonElement1.Children[1].Children[1].Children[0]).BackColor2 = Color.Red;
            ((RadioPrimitive)radioButtonElement2.Children[1].Children[1].Children[0]).BackColor2 = Color.Blue;
            ((RadioPrimitive)radioButtonElement3.Children[1].Children[1].Children[0]).BackColor2 = Color.Green;
        }

}

 

 // Add Labor Time column
       RadioButtonColumn column = new RadioButtonColumn("LaborTime");
       column.HeaderText = "Labor Time";
       column.Width = 400;
       this.gvLaborGuide.Columns.Add(column);

It it working, but when i scroll , it has problem.

Please look at the link:

https://www.screencast.com/t/mVJdsfrk

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jul 2017
1 answer
208 views

I'd like to bind my RichTextEditor to a text property that contains HTML.  If I understand correctly, one needs to import the HTML into the RTE for it to show up as formatted text and then export it to turn it back into HTML.

I'm wondering whether anyone has used the Format() and Parse() methods of Winforms DataBiinding to accomplish this seamlessly?

Or is there perhaps a simpler way of binding to an HTML data source that's provided by this Control?

Thanks in advance.

 

Michael

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jul 2017
1 answer
141 views

I have not found how to select the entire content of a DateTimePicker when it get's focus (OnEnter).  I have done this with a MaskedEditBox, but can't seem to get it to work with this control. Any help would be greatly appreciated.

 

Thanks

Dimitar
Telerik team
 answered on 20 Jul 2017
2 answers
180 views

I see you folks have the Office 2016 Theme in UI for WPF but what about UI for WinForms?  Is this in the works or being planned for or...?

Any information you can provide would be very much appreciated!

 

-Curtis

 

Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 19 Jul 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
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?