Telerik Forums
UI for WinForms Forum
1 answer
236 views

I think there is a little bug in column header with gridview when sorting a grouped column and ShowGroupedColumns = true.

Changing sorting direction only works first time, then you need to click on  grouped tag to change sorting direction. See attached gif 

Example

I have attached the example project used in the gif to test this.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Feb 2023
1 answer
610 views

[Refer attached for sample project]

Question: How to add Combo Box in a RadGridView Cell?

Requirements:

  • The column is a GridViewTextBoxColumn, not GridViewComboBoxColumn.
  • Depending on the column type, the column will be populated dynamically with either Combo Box or Text Field.
  • Each combo box contains different items.

 

Sample below using DataGridView:


//DataGridView
            dataGridView1.Columns.Add("Item", "Item");
            dataGridView1.Columns.Add("Value", "Value");
            dataGridView1.Columns.Add("Type", "Type");
            dataGridView1.Columns.Add("Options", "Options");

            list = new List<string[]>();
            list.Add(new string[] { "Result", "DropDown", "Pass,Failed" });
            list.Add(new string[] { "UserId", "Text", "" });
            index = 0;
            foreach (string[] s in list)
            {
                dataGridView1.Rows.Add(s[0], "", s[1], s[2]);
                switch (s[1])
                {
                    case "DropDown":
                        DataGridViewComboBoxCell cmb = new DataGridViewComboBoxCell();
                        var selection = s[2].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
                        cmb.DataSource = selection;
                        this.dataGridView1.Rows[index].Cells[1] = cmb;
                        break;

                    case "Text":
                        this.dataGridView1.Rows[index].Cells[1].Value = "Text Field";
                        break;
                }
                index++;
            }

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Feb 2023
3 answers
475 views

I am developing log viewer using richtexteditor.

I do input the function whenever adding text on richtexteditor, it shows lastest part on there and cursor is located bottom on the control.

How to do it on richtexteditor.

 

And if you have more convienient choice to develop log viewer. let me know.

 

Jay
Top achievements
Rank 1
Iron
Iron
 answered on 15 Feb 2023
1 answer
105 views

Hi,

with custom taggers is it possibile to manage insentive custom grammar?

thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Feb 2023
2 answers
94 views
Is their any method to get all the column names in Radgrid that containing filter icon ?
Dinko | Tech Support Engineer
Telerik team
 answered on 13 Feb 2023
1 answer
144 views

Hi,

I am using a RadGridView to display user values related to each others in multiple ways.

I wish to periodically scan all cells to check the values and then flag them with a red or green cell border.

I keep all the cells status in a Dictionary<point, status> with point being the cell coordinates.

However, Idon't find a way to have all cells with a reference in the dictionary permanently showing the right border depending on its status.

I am using the cell_formatting event, but the border color disappear when cell is not current.

Here is some sample code


 private void gvLignesFacture_CellFormatting(object sender, CellFormattingEventArgs e)
    {
        // On décore la cellule selon son status
        Point cellCoordinates = new(e.CellElement.RowIndex, e.CellElement.ColumnIndex);
        if (DictOfGvCellStatusByCoordinates.TryGetValue(cellCoordinates, out var lookStatus))
        {
            switch (lookStatus)
            {
                case CtrlLook.Default:
                    e.CellElement.Font = GlobalVars.smallRegularFont;
                    e.CellElement.BorderColor = Color.Black;
                    break;

                case CtrlLook.Valid:
                    e.CellElement.Font = GlobalVars.smallBoldFont;
                    e.CellElement.BorderColor = Color.Green;
                    break;

                case CtrlLook.Incorrect:
                    e.CellElement.Font = GlobalVars.smallRegularFont;
                    e.CellElement.BorderColor = Color.Red;
                    break;
            }
        }
   }

How to do  this right ?

Many thanks for your answer

Patrick

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Feb 2023
1 answer
204 views

First, thanks for the awesome stuff, getting it going was easy.

However, I'm having a few issues and can't seem to figure out a way around them.  I'm trying to make a JSON tagger.

Here is how I'm defining things:


    Private Shared ReadOnly Keywords As String() = New String() {""""}
    Private Shared ReadOnly Operators As String() = New String() {"{", "}", "[", "]", ":", ","}


Here is an example of the output

The problems I see are:

The second double quote isn't colored like the first one.

The colon isn't colored

The comma after the double quote isn't colored

The closing brace and comma aren't colored

Also, is there a way to highlight the text between characters?  I'd like to highlight the keys and values, and differently from each other if possible.

I'm sure I'm doing it wrong, but haven't been able to figure it out.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Feb 2023
1 answer
95 views

I'm trying to insert text at the start of a line in the radSyntaxEditor.  

I haven't found a way to do it, and was attempting to use the following code

Dim cp As CaretPosition = editor.SyntaxEditorElement.CaretPosition
cp.MoveToLineStart()

However, this doesn't appear to move to the start of the current line.

Ultimately, I'd rather not actually move the cursor, I'd like to insert without doing that.  Is that possible?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Feb 2023
1 answer
125 views

Hello,

I've been trying to enable drag and drop functionality so that the user can sort the RadNavigationView menu items, and it works when the ItemDragMode property is set to Preview, but does nothing when it's set to Immediate, then there's no drag and drop at all, the functionality seems to be disabled.

c.ViewElement.ItemDragMode = PageViewItemDragMode.Immediate

I'm not sure if I'm doing something wrong, or if this is the intended behaviour (so the immediate mode it's not a supported feature), or if it's just a bug.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Feb 2023
3 answers
164 views

Hi Telerik support team,

I’m strugling with the Winforms GridView GroupComparer and need some help with it. I’ve seen the topic below:

https://docs.telerik.com/devtools/winforms/controls/gridview/grouping/sorting-group-rows

In my case I’ve a generic comparer in which I want to evaluate which column needs some sorting changes. These are my unitColumns and I have a reference to its list at the moment I create the comparer.

this.radGridView1.MasterTemplate.GroupComparer = new CustomGroupComparer(list);

 

The problem I walk into is that Telerik creates new CustomGroupComparers by itself (I think for every group?). It also demands an empty constructor. This way I have no option to get to the list that I need.

Is there a workaround for this problem?? For this moment I defined a hardcoded List inside the customComparer but that’s not the way to program it.

It would be nice if the custom comparer was part of the GroupDescriptor.

Regards,

Daniel

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Feb 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)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?