Telerik Forums
UI for WinForms Forum
4 answers
962 views

Hello,

I'm trying to show and hide groups and single items of a PropertyGrid depending on the answers inside the same propertyGrid.

I've seen that a good place to set the visibility of the group is in when the grid is created, in this function:

private void RadPropertyGridOnCreateItemElement(object sender, CreatePropertyGridItemElementEventArgs e)
        {
            if (e.Item is PropertyGridGroupItem groupItem)
            {
                var myItem = (MyItem)groupItem.Group.GroupItem.GridItems[0].Value;
                   groupItem.Visible = myItem.EnableGroup;
            }
            if (e.Item is PropertyGridItem item)
            {
                var myItem = (MyItem)item.Value;
                item.Visible = myItem.EnableItem;
            }
        }

 

However, I'm not able to change the visibility at a second time, since this function is not called again later.

If I try to change the visibility of the VisualItem in OnItemFormatting, the items are hidden, but the spaces are not recalculated and the design is messed up.

Also, if I try to change the visibility of an item at the end of OnEdited, OnItemFormatting goes on loop.

 

Any hint? :)

Thanks!

Hristo
Telerik team
 answered on 20 Feb 2019
1 answer
121 views

Hello,

I use a RadGalleryElement in my ribbonbar. I found that after I expanded gallery and then re-collapsed, the collapsed gallery size will be changed automatically. Please see the first attached photo. How can I keep the size of gallery unchanged (original one or the smaller one) ?

FYI,

My gallery is autosize = true, the items are added dynamically at the form loading.

I've tried autosize=false, the gallery is completely disappeared. Weird.

Second question, how can I display selected item effect as the second attached photo ? I found few theme can support selected item effect, like windows 7 theme. But I use windows 8 theme.

How can I show selected item effect in program ? If not possible, please tell me which property I can modify in theme.

Thank you.

 

 

Hristo
Telerik team
 answered on 20 Feb 2019
8 answers
246 views
I have a word file with the docx extension; it is used in the file from the text box of the msword .
When I open the file by RichTextEditor, the text box controls are not displayed.
Hristo
Telerik team
 answered on 20 Feb 2019
4 answers
343 views

Hi ,

I want to control tab button disable or enable in different condition, is there any way I can do this ?

Fishhhh
Top achievements
Rank 1
 answered on 20 Feb 2019
0 answers
86 views

hi

How can this space be reduced?

asghar
Top achievements
Rank 1
 asked on 19 Feb 2019
1 answer
113 views

Hello, I'm trying to find the Parent container of CurrentBitmap inside of CanvasElement.

I want to ignore the current zoom and window location of the image for a custom control's mouse position relative to the image. Any help would be appreciated.

Thank you.

Dimitar
Telerik team
 answered on 19 Feb 2019
2 answers
309 views
private void button1_Click(object sender, EventArgs e)
        {

            ExportToPDF exporter = new ExportToPDF(this.radGridView1);
            exporter.FileExtension = "pdf";
            //exporter.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.DoNotExport;
            exporter.FitToPageWidth = true;
            string fileName = "c:\\Directory-information.pdf";
            exporter.RunExport(fileName);

        }

Im beginner in .net, what ever experienced people teach is me what I learn. Help me with this issue , I will be very much thankful to you all.
Jeremiah
Top achievements
Rank 1
 answered on 19 Feb 2019
2 answers
69 views

Hi there,

I'm using a RadGridView with a DateTime column. The property for this column is a nullable DateTime property. I read on a few forum posts that I need to add a FilterDescriptor for the nullable DateTime columns manually. So I added the descriptors the following way:

FilterDescriptor desc = new FilterDescriptor();
desc.Operator = FilterOperator.IsEqualTo;
desc.Value = null;
desc.IsFilterEditor = true;
col.FilteringMode = GridViewTimeFilteringMode.Date;
gv.Columns["WishDate"].FilterDescriptor = desc;

When the data binding is complete, it instantly filters for null value in this column. But I don't want to filter right away. When I don't add the FilterDescriptor, the default FilterOperator for this column is "None".
What I need on startup is this nullable DateTime column with "Equal To" filter and not already filtered data.

I hope you know what I mean :)

Regards,
Danilo

 

Danilo
Top achievements
Rank 1
 answered on 19 Feb 2019
5 answers
340 views

Hello,

Hello,
Is there a way to set font style; size, font family (with html option or another way) of Caption Text and ContentText?

Kind regards...

Dimitar
Telerik team
 answered on 18 Feb 2019
2 answers
241 views

Is it possible to 
1. Change the arrow button to something bigger
2. Change mouse to arrow instead of resize

 

Pleas see image

Dimitar
Telerik team
 answered on 18 Feb 2019
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
CheckedDropDownList
ProgressBar
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
NavigationView
VirtualKeyboard
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?