Telerik Forums
UI for WinForms Forum
1 answer
163 views

The radgrid view has many different context menus it can show depending on what row you are on.

 

Header

Column Header

Column Filter Row (Contains, Begins With ....)

FilterRow (Type and highlights Yellow if found in Grid Results)

DataRow 

 

private void gvResults_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {

     // How to tell which row I am in so I can change if needed the context menu?

}

 

// This is how I can tell if it is a Data Row

GridDataCellElement dataCell = e.ContextMenuProvider as GridDataCellElement;
            if (dataCell == null)
                return;

 

// What about the others? 

//How can I tell  (Column Header, Column Filter, Row Filter etc.)

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jun 2022
3 answers
285 views

Hi. 

I have a class that has other classes as property in it.
I want to create a list from this class and display the list in the grid (as in the attached excel example).
Which tool should I use?

The "Incentive" class I want to use.

namespace Models.Domain
{
    public class Incentive
    {
        public string Tckn { get; set; } = string.Empty;
        public Ysys Ysys { get; set; } = new Ysys();
        public Abyob Aybob { get; set; } = new Abyob();
        public Oybyu Oybyu { get; set; } = new Oybyu();
        public Yybyu Yybyu { get; set; } = new Yybyu();
        public Yuoa Yuoa { get; set; } = new Yuoa();
        public Uidd Uidd { get; set; } = new Uidd();
    }
    public class Kanunlar 
    {
        public string ts { get; set; } = string.Empty;
        public string ios { get; set; } = "0";
    }
    public class Ysys : Kanunlar { } // 2828
    public class Abyob : Kanunlar { } //6111
    public class Oybyu : Kanunlar { } // 17103
    public class Yybyu : Kanunlar { } // 27103
    public class Yuoa : Kanunlar { } // 7316
    public class Uidd : Kanunlar { } // 3294
}

I want to create a view like this in GridView:

Can I do this with GridView or is there another tool I can use? Thank you in advance for your help.

 

özer
Top achievements
Rank 2
Veteran
Iron
 answered on 04 Jun 2022
1 answer
117 views

Hello, I just have a simple question is it possible to remove the expand arrow? I just want the group to always display all the items without the option to collapse. Also, I have some items which are not in a group because the column they are grouped by is empty. Is it possible to hide the group area for these? 

 

 

 

Thank you

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2022
1 answer
664 views

Hi,

I suspect this is not possible but thought I'd ask just in case.

Say in the syntax editor we have all the coloring going on desired. Is it possible to programmatically copy the selected text that can then be pasted into other richtexteditors keeping the formatting?

Best example of this I can think of is with Microsoft sql management studio - if you copy a query into an email or word it keeps the same coloring and formatting.
It can also be done with the standard winform richtextedit:

Clipboard.SetText(myRichTextBox.Rtf, TextDataFormat.Rtf);

Then pasting that into another richtextbox or email or even word, will maintain all the formatting.

I did try the above with GetSelectedText() but that was a no go.

Regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jun 2022
1 answer
182 views

Hello!

Is it possible to have a radDock with several tabbed DocumentWindows where the user is only allowed to "Float" these Documents and can ONLY dock them back on the original DocumentContainer?  Meaning the User is not allowed to Dock a floating window inside another one of these DocumentWindows?

All but one DocumentWindow is created dynamically - so I should be able to set each window as needed i'm just stuck on what those settings are!

Any help you can provide would be great!

Kindest regards,

Curtis.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2022
1 answer
281 views

Hi Support,

 

Now I added new usercontrol but all of item font too small. And not the same like the existing item. Please see below pic. Blue circle is new add items but why font size is small?

 

 

 

Thanks,

Moeu

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2022
1 answer
276 views

hi

1-one columns(date) in grid view by formatinfo(fa-ir, yyyy, Mm, dd) view in run application

But Column date the output is in English

2-cell border  How it's set

3-what not show row number set by cell formatting in expory excel?

4--in pdf export rtl language not suport?

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jun 2022
1 answer
405 views

Hi,

Is it possible to export radgridview (with grouped columns) to .XML format?

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2022
1 answer
146 views

Hi,

I'm having issues with the ribbon bar title bar when swapping my application between an HD monitor and 4K monitor

This is what is the title bar looks like on the 4K monitor

 

and this is what it looks like after dragging the application to the HD montior

 

Any ideas what might be causing this and a possible workaround or solution ?

I'm using the window 7 theme if that matters as well as .Net 4.7.2 and the latest version on Telerik Winforms.

Kind regards

Toby

 

 

 

Stoyan
Telerik team
 answered on 30 May 2022
1 answer
294 views

Hi 

I am developing winform project in vb.net sometime i checked answers in forum written in c#  but same sample does not work in vb.net

Now i am facing problem radgridview cellvaluechanged in master detail scenario

C#

  private void radGridView1_CellValueChanged(object sender, GridViewCellEventArgs e)
        {
            if (e.Column.OwnerTemplate != radGridView1.MasterTemplate && e.ColumnIndex == 3)
            {
                EvaluateTotal((GridViewRowInfo)e.Row.Parent);
            }
        }

vb.net

  Private Sub rdgvPendingRpt_CellValueChanged(sender As Object, e As GridViewCellEventArgs) Handles rdgvPendingRpt.CellValueChanged
        If e.ColumnIndex = 3 AndAlso e.Column.OwnerTemplate <> rdgvPendingRpt Then
            EvaluateTotal(CType(e.Row.Parent, GridViewRowInfo))
        End If
    End Sub

Error  Operator '<>' is not defined for types 'GridViewTemplate' and 'RadGridView'.

it giving me error in above line. I am attaching screenshot for same.  

Kindly do the needful

Regards

Nandan Navale

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 May 2022
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?