Telerik Forums
UI for WinForms Forum
2 answers
206 views

Hi, I am using a radrichtexteditor for displaying information about our application. I set the Text property of my radrichtexteditor. 

 

The text now is formatted with a size and font that I cannot work with. So i tried to set another Font and size. I found the following code online.

      loRadRichTextEditor:Document:Selection:SelectAll().
      loRadRichTextEditor:ChangeFontFamily(NEW Telerik.WinControls.RichTextEditor.UI.FontFamily("Courier New":U)).
      loRadRichTextEditor:ChangeFontSize(Telerik.WinForms.Documents.Model.Unit:PointToDip(8.75)).
      loRadRichTextEditor:RichTextBoxElement:ChangeParagraphLineSpacing(0.5).
      loRadRichTextEditor:RichTextBoxElement:ChangeParagraphSpacingAfter(12).
      loRadRichTextEditor:DocumentInheritsDefaultStyleSettings = TRUE.
      loRadRichTextEditor:Document:Selection:Clear().

 

This code is working fine but there are several radrichtexteditors on my view(tabs) and I have to set these properties for every control so bad performance. Is there a way to set the Font and the size more easily ?

Sincerely,

Dominik Zöbl

Dominik
Top achievements
Rank 1
 answered on 01 Mar 2017
16 answers
1.2K+ views
I'm trying to do something similar to Richard Slate's Row Details Grid, only instead of trying to use a "details" column, I'd like to be able to format the "Details" space with info more like the RadControls example "Custom Views". Is this possible? Basically formatted like the Custom View example, but shown under the row like the Details Grid example.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Feb 2017
1 answer
338 views

Hi I am a new user of telerik,

I am currentlying using the grid view extension make by Richard http://www.telerik.com/forums/details-view-under-row-in-gridview

I have a radbutton which will delete a row of data after pressed. I have no issue with deleting a row of data in the master view. I just cannot get my head around with deleting a row of data in the child view. Secondly, I want a check box to appear next to each row both in master and child view. After each check box is checked and the delete button is pressed I would like the checked row to be delete. My data is loaded directly from a local Microsoft sql server

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Feb 2017
1 answer
213 views

This is for a tablet and I'm sizing things for fat fingers or that wand.  What property do I reference in order to make the drop down button wider (DropDownList)?  

(I'm open to a suggestion for a better approach - like a different control - for a touch screen where the user may need to select from a small list of choices.)

Thank you,

Gary

 

Dimitar
Telerik team
 answered on 28 Feb 2017
13 answers
380 views

Hi Telerik

We have been using RadGridView for ages. Some of our customers have approx 100.000 rows of customers displayed in the grid. We have always gotten good remarks because of the fast filtering in the grids (isLike filtering on Textboxcolumns), however, as of lately it has gotten much slower, even though we have not made changes in code.

Have you made any changes  in grid, that could cause it to slow down?

 

Should it not be lightning fast with 100.000 rows?

 

I have tried  implementing a delayed filtering, so that if the user types "Test" fast, it will only filter once. However, it is giving me a lot of headache - have you seen any examples of people accomplishing this?

Dimitar
Telerik team
 answered on 28 Feb 2017
2 answers
126 views

Hi.

Is it possible to change the circle gauge yo make it ovaladed?

Hristo
Telerik team
 answered on 27 Feb 2017
6 answers
214 views

In this application we are running around the warehouse and picking items for an order.  The user gets to select any row in the gridview of items either by clicking that row or entering a search field and the program will find a row from that..

What I want to do is this:

1. When a row is selected, show only that row and show a panel where the user takes an action.

2. When the user completes the action for that row, restore the gridview to showing all of the rows and make that panel disappear.

How I think of this is:

  • A split container with two panels (and 0 for the splitter width).  One panel contains the gridview.  The other panel contains the controls for the user to execute the action for the selected gridview row.
  • When a row is selected, that panel and gridview will decrease their size to contain only the header row and the selected row.  The other panel will expand into the vacated space in the split container.  Reverse this when the action for that row is completed.  (That other panel won't be visible.)
  • When the row is selected, no scrolling, no touching, nothing.  It's there to show you what you have selected to work on.  That's all.

I'm doing fine with collapsing the panels in the split container.  I'd like help with

  1. Either setting the current row as the first visible row or making the current row the only visible row (other suggestions are welcome).
  2. Hiding the scroll bar and other things to keep the user out of the gridview when a row has been selected.
  3. Calculating the height to set the gridview so that it is tall enough to show the header and one row (I think I've been there before).

Thank you.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Feb 2017
1 answer
358 views

   Hi Telerik Team,

i begin to developing a telerik UI by using c#. i added a CommandBarDropDownButton for language selection (English & Arabic). When i set currentculture as arabic and RightToLeft to Yes, CommandBarDropDownButton items, are onthe right side of screen, show up shifted position, in a wrong position. i attached the screenshots for clarifying problem. 

Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
  
namespace TelerikWinFormsApp2
{
    public partial class Form1 : RadForm
    {
        private static RightToLeft right2Left = RightToLeft.No;
        private readonly object _locker = new object();
  
        public static CultureInfo CurrentCulture { get; set; }
  
        private RightToLeft Right2Left
        {
            get { return right2Left; }
            set {
                if (!(right2Left == value))
                {
                    lock(_locker){
                        right2Left = value;
                        CultureChangeFunc();
                    }
                }
            }
        }
  
        public Form1()
        {
            InitializeComponent();
        }
  
        private void Form1_Load(object sender, EventArgs e)
        {
            InitializeToolbar();
        }
  
        private void InitializeToolbar()
        {
            bseLayout.Grip.Visibility = ElementVisibility.Collapsed;
            bseActions1.Grip.Visibility = ElementVisibility.Collapsed;
            bseLanguage.Grip.Visibility = ElementVisibility.Collapsed;
  
            bseLanguage.DesiredLocation = new PointF(10000, 0);
  
            this.commandBarDropDownButton2.Image = Image.FromFile("icons\\32x32\\icon_list.png");
            this.commandBarDropDownButton3.Image = Image.FromFile("icons\\32x32\\icon_settings.png");
            this.commandBarDropDownButton4.Image = Image.FromFile("icons\\32x32\\icon_lang.png");
            this.commandBarButton7.Image = Image.FromFile("icons\\32x32\\icon_info.png");
            this.commandBarButton4.Image = Image.FromFile("icons\\32x32\\icon_help.png");
  
        }
  
        private void rmiLanguage_Click(object sender, EventArgs e)
        {
            var selectedItem = (RadMenuItem)sender;
            if (selectedItem.Tag == null)
                return;
  
            try
            {
                if (selectedItem.Tag.Equals("rmiEnglish"))
                {
                    CurrentCulture = new CultureInfo("en-US");
                    Right2Left = RightToLeft.No;
                }
                else if (selectedItem.Tag.Equals("rmiArabic"))
                {
                    CurrentCulture = new CultureInfo("ar-SA");
                    Right2Left = RightToLeft.Yes;
                }
                else
                {
                    return;
                }                  
            }
            catch (Exception ex)
            {
                MessageBox.Show("Change Language Error : "+ ex.Message.ToString());
            }
        }
  
        private void CultureChangeFunc()
        {
            try
            {
                Thread.CurrentThread.CurrentCulture = CurrentCulture;
                Thread.CurrentThread.CurrentUICulture = CurrentCulture;
                RightToLeft = Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft ? RightToLeft.Yes : RightToLeft.No;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Change Language Error : ", ex.Message.ToString());
            }
        }
  
  
  
    }
}

 

Best Regards..

 

Dimitar
Telerik team
 answered on 27 Feb 2017
2 answers
242 views

Hi,

I would like to add a Dropdown in one of my Filtercells. Every entry in the Column should be displayed in this dropdown so the user can choose just elements which are already in the column of the grid. Is there a property to achieve this behaviour or do I have to create a Customcontrol to handle this?


Could you please send me a simple example how to solve this task?

 

Sincerely,

Dominik Zöbl

Dominik
Top achievements
Rank 1
 answered on 27 Feb 2017
1 answer
175 views

here is the scenario..  

I am trying to create some wrapper classes for controls that display text such as labels, etc.  What I am seeing is that I am copy and pasting the same font override function for each control.  

 

Is there a recommended way of overriding the RadControl.Font and utilize that?  The problem, is the wrapper class can only have a single base class..  MyRadLabel : RadLabel

 

any pointers would be nice.  I hope I am just missing something small that I am not thinking of..

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Feb 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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?