Telerik Forums
UI for WinForms Forum
1 answer
115 views

Hi all,

i tried to add a CommandBarSeparator into a CommandBarStripElement (of a RadCommandBar) .

The RadCommandBar has dock = Left...so , i would like to have a separator like an horizontal line

But..when i add CommandBarSeparator (at runtime) the commandBar shows a separator like a vertical line

I have tried to set commandBarSeparator.orientation to horizontal , but has no effects.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Nov 2023
1 answer
160 views

Hi

There is a List<Class> bound to the ListView, and the data in the list is changed from time to time by the user's. At that time, I want to apply Auto Elipsis, which is shown as... when the letter of the item is longer than the column width with each column width fixed, but I don't know how.

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Nov 2023
3 answers
172 views

So we are populating rad grid from data which we get from database.
my requirement is like based on datatype which we get from service(database) I need to show checkbox or datetime or text in same column.
if I will be receiving 1 or 0 I need to show checkbox marked as checked / unchecked respectively if got text than simple text need to be shown.
pls check below image for more reference.

Requirement

 What we tried:
so I am here sharing you my the things we tried.
Actually we tried using cell formatting event to change the cell element based on data it is working fine but we are experiencing visual glitch's.
glitch is like have checkbox on all columns of same row as we scroll right or left in grid.

Note: on the first time its work fine but when we scroll than glitches come.

I am attaching the code snippet which we tried also attaching video clip which will show the glitches.

Code snippet:

private void GrdHistory2_CellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridDataCellElement)
    {
        // Assuming you have a data source where the column "MixedTypeData" determines the cell type
        if (e.Column.Name == grdHistoryColNewValue.Name)
        {
            if (e.Row.Cells["New Value"].Value != null)
            {
                if (e.Row.Cells["New Value"].Value.ToString() == "0")
                {
                    e.CellElement.Children.Clear();
                    RadCheckBoxElement checkBoxElement = new RadCheckBoxElement();
                    e.CellElement.Children.Add(checkBoxElement);
                }
                else if(e.Row.Cells["New Value"].Value.ToString() == "1")
                {
                    e.CellElement.Children.Clear();
                    RadCheckBoxElement checkBoxElement = new RadCheckBoxElement();
                    e.CellElement.Children.Add(checkBoxElement);
                }
            }
        }
    }
}

pls check below gif image. 
Here I just need to show in
column "New Value" but it also coming on all other column while scrolling. disappear after while .
Please suggest me some solution so that it would work for my use case. 

Thanks,
Shubham Jain
Nadya | Tech Support Engineer
Telerik team
 answered on 06 Nov 2023
1 answer
99 views

Hi,

 

I’m trying to draw CartesianGridLineAnnotation in front of each Y axis tick.

 

The Y axis number of ticks depends on the size of the RadChartView. The property DesiredTickCount is update into the SizeChanged event of the Chart. (Same issue with the resize event of the RadChartView).

 

It’s working fine when the form is resize with the mouse drag, but when I resize the form by double clicking the form (switch to full screen), it’s not working as expected.

 

ActualRange property seems not updated in the non working case, is there a way to avoid that ?

 

Thanks.

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Nov 2023
1 answer
272 views

I have a .Net6 winform app and was trying to bind sqlite to radgridview.

Has anyone bound the radGridView to a SQLite db via entityframework?  If so what is the best way to go about it?  I have not yet been able to find anything on it.

thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2023
1 answer
117 views

Hi,

I would like to know how to get the size of the cartesian area (red square above).

I tried with radspy to get the right element, but there is no size set, everything is "0,0", any idea?

Thanks in advance

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Nov 2023
1 answer
380 views

Hi,

I installed the Telerik WinForms at the first time and developed something with the RadGridView and more. After this, I want to use the Export Function, to export the RadGridView to Excel. But it doesn't know "SpreadExportRenderer" and I search for the problem.

I looked at my references in my project and the .dll called "Trial Version". I looked for the correct assemblies/library and found some Infos that the Assemblies for .NET 4.7 is in the folder "Bin45". But in my Folder "C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2023" I only found "Bin40", "Bin48", "Bin60", "Bin70", "BinNetCore", "Examples", "LicenseAgreements" and "VSExtensions". But no Bin45, I needed.

In this case, I try to change the as Trial marked .dlls with the .dll from the "Bin48" folder, but I get errors.

I am a little bit confused. Maybe someone can help me :)

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2023
1 answer
105 views
Sir I need to Add Custom value to a column in SummaryTop row in the row of openin balance please help how can i achieve
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2023
1 answer
297 views

Hi, I'm using a RadPdfViewer to show a document, and a RadPdfViewerNavigator associated with him.

I have 2 questions:

1) I've noticed that even if the pdf document is not loaded in the RadPdfViewer control, all buttons in the RadPdfViewerNavigator are enbaled, then the user can click on some button and I tthink this is not correct (further, the application can crash if he clicks for example, on the rotate button). Is there a way to tells that to the RadPdfViewerNavigator to enable/disable buttons in base of loaded document, or I need to do it programmatically?
2) The print preview form is very well and powerful, but I've noticed that it is very slow to move from a page to another... It can be a problem on my own, or it is by design?

Thank you for any assistance.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Nov 2023
1 answer
135 views
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.Windows.Controls;

using Telerik.WinForms.Controls.SyntaxEditor.Taggers;
using Telerik.WinForms.SyntaxEditor.Core.Tagging;
using Telerik.WinControls.UI;
using Telerik.WinForms.Controls.SyntaxEditor.UI;
using System.IO;

namespace WindowsFormsApp12
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public class PythonTagger : WordTaggerBase
        {
            private static readonly string[] Keywords = new string[]
    {
        "False", "None", "True", "and", "as", "assert","break", "class",
        "continue", "def", "del", "elif", "else", "except", "for", "from",
        "global", "if", "import", "in", "is", "lambda", "nonlocal", "not",
        "or", "pass", "raise", "finally", "return", "try", "while", "with", "yield"
    };

            private static readonly string[] Comments = new string[]
    {
        "#"
    };

            private static readonly string[] Operators = new string[]
    {
        "+", "-",  "*", "/"
    };

            public static readonly ClassificationType FruitsClassificationType = new ClassificationType("Fruits");

            private static readonly string[] Fruits = new string[]
    {
        "apple", "banana",  "cherry"
    };

            private static readonly Dictionary<string, ClassificationType> WordsToClassificationType = new Dictionary<string, ClassificationType>();

            static PythonTagger()
            {
                WordsToClassificationType = new Dictionary<string, ClassificationType>();

                foreach (var keyword in Keywords)
                {
                    WordsToClassificationType.Add(keyword, ClassificationTypes.Keyword);
                }

                foreach (var preprocessor in Operators)
                {
                    WordsToClassificationType.Add(preprocessor, ClassificationTypes.Operator);
                }

                foreach (var comment in Comments)
                {
                    WordsToClassificationType.Add(comment, ClassificationTypes.Comment);
                }

                foreach (var comment in Fruits)
                {
                    WordsToClassificationType.Add(comment, FruitsClassificationType);
                }
            }

            public PythonTagger(RadSyntaxEditorElement editor)
                : base(editor)
            {
            }

            protected override Dictionary<string, ClassificationType> GetWordsToClassificationTypes()
            {
                return PythonTagger.WordsToClassificationType;
            }

            protected override bool TryGetClassificationType(string word, out ClassificationType classificationType)
            {
                int number;

                if (int.TryParse(word, out number))
                {
                    classificationType = ClassificationTypes.NumberLiteral;
                    return true;
                }

                return base.TryGetClassificationType(word, out classificationType);
            }
        }


        private void Form1_Load(object sender, EventArgs e)
        {
            PythonTagger pythonTagger = new PythonTagger(this.radSyntaxEditor1.SyntaxEditorElement);
            if (!this.radSyntaxEditor1.TaggersRegistry.IsTaggerRegistered(pythonTagger))
            {
                this.radSyntaxEditor1.TaggersRegistry.RegisterTagger(pythonTagger);
            }

            this.radSyntaxEditor1.TextFormatDefinitions.AddLast(ClassificationTypes.NumberLiteral, new TextFormatDefinition(new SolidBrush(Color.Red)));
            this.radSyntaxEditor1.TextFormatDefinitions.AddLast(ClassificationTypes.Operator, new TextFormatDefinition(new SolidBrush(Color.YellowGreen)));
            this.radSyntaxEditor1.TextFormatDefinitions.AddLast(PythonTagger.FruitsClassificationType, new TextFormatDefinition(new SolidBrush(Color.LightCoral)));


            StreamReader  reader = new StreamReader(@"C:\Python27amd64\Lib\msilib\text.py");
            {
                radSyntaxEditor1.Document = new     Telerik.WinForms.SyntaxEditor.Core.Text.TextDocument(reader);
            }


        }

        private void radMenuItem2_Click(object sender, EventArgs e)
        {
            StreamReader reader = new StreamReader(@"C:\Python27amd64\Lib\ctypes\util.py");
            {
                radSyntaxEditor1.Document = new Telerik.WinForms.SyntaxEditor.Core.Text.TextDocument(reader);
            }

        }

        private void radSyntaxEditor1_Click(object sender, EventArgs e)
        {

        }
    }
}
Nadya | Tech Support Engineer
Telerik team
 answered on 01 Nov 2023
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?