Telerik Forums
UI for WinForms Forum
1 answer
155 views

I have a customize object just like this.

01.public class Person
02.        {
03.        [CategoryAttribute("Personal Info.")]
04.        public Name Name { get; set; }
05.        [CategoryAttribute("Personal Info.")]
06.        public int Age { get; set; }
07.       [CategoryAttribute("Profession Info.")]
08.        public Profession Profession { get; set; }
09.        }
10. 
11.      public class Profession
12.        {
13.        private Title title_;
14. 
15.        public string Company { get; set; }
16.        public string Address { get; set; }
17.        public Title Title
18.            {
19.            get { return title_; }
20.            set
21.                {
22.                title_ = value;
23.                if (title_ == Title.Manager)
24.                    {
25.// hide property subordinates
26.                    }
27.                else if (title_ == Title.Developer)
28.                    {
29.// show property subordinates
30.                    }
31.                }
32.            }
33. 
34.        public List<Person> Subordinate { get; set; }
35.        }

 

Is there a way to show or hide Subordinate according to the property Title? When I selected the Title with Manager, the subordinate will appear. When I selected the Title with Developer, the subordinate will hide.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2020
1 answer
256 views

I have a hierarchy

public class Corner
    {
    public string Name { get; set; }
    }
 
public class Fillet : Corner
    {
    public double Radius { get; set; }
    }
 
public class Chamfer : Corner
    {
    public double Distance1 { get; set; }
    public double Distance2 { get; set; }
    }

and a business object,

public enum CornerMode
{
Fillet,
Chamfer
}
 
public class CornerAttribute
{
public CornerMode CornerMode {get;set;}
public Corner Corner {get;set;}
}

 

I will assign a subclass instance according to the CornerMode. How to switch the type convert at runtime so that the property Corner can be expandable?

Dimitar
Telerik team
 answered on 16 Jan 2020
3 answers
139 views

I'm not sure why this is showing up... How to not show gridview when hovering over an appointment

 

Second question: In the radScheduler1_AppointmentResizeEnd routine - how do I get the value for the new Start and End time after the appointment has been resized?

 

Thank you in advance for your assistance

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2020
7 answers
623 views
Hi,

I need to filter/group/sort through more than 100,000 records.
Loading all records to datatable takes long time and keeping preloaded data in datatable increases memory consumption.
I'd like to implement virtual mode in GridView, so I can retrieve first X rows of data to datatable based on columns filters.
Can someone give me an example of using Virtual Mode with filtering/grouping/sorting.
In all examples that I found so far, filtering option is set to false.

Thank you,
Tamara
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2020
3 answers
101 views

I would like to know if it's possible to bind extra values other than DataTextField and DataValueField. I am using SQLDataSource.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2020
2 answers
226 views

I am trying to improve performance when I set GridViewColumn.IsVisible. Whenever I set that property, the ViewCellFormatting event is invoked by the grid.

I need to make several column invisible at the same time. I tried using BeginUpdate..EndUpdate and that doesn't seem to have an effect. I would like to set several columns invisible by invoking the GridViewColumn.IsVisible property without the ViewCellFormatting event from being raised for each one.

Thanks in advance,

Jim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2020
2 answers
298 views

Hello

I have a grid view where I perform  Cell validation and I change the Error Icon

This grid has EnterKeyMode set to EnterMovesToNextRow

When I enter an invalid value in a cell and validate by clicking on another cell I get the proper response, i.e. Error Message and modified error Icon

but When I validate the entry with a "Return" I get the error message but the error Icon remains the default and is not changed to my custom error Icon

Also, when I validate with Enter I get a "beep" but not when I validate by selecting another cell
Here is my code for changing the error Icon

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   Private Sub gvPrize_ViewCellFormatting(sender As Object, e As CellFormattingEventArgs) Handles gvPrize.ViewCellFormatting
        'Change Row Error Icon
        If e.RowIndex > -1 Then
            If TypeOf e.CellElement Is GridRowHeaderCellElement Then
                Dim aCell As GridRowHeaderCellElement = CType(e.CellElement, GridRowHeaderCellElement)
                Dim ip As ImagePrimitive = CType(aCell.Children(0), ImagePrimitive)
                If ip.Image IsNot Nothing Then ip.Image = My.Resources.v2_error_16
            End If
        End If
    End Sub

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 15 Jan 2020
4 answers
264 views

Hi Telerik,

RadGridView allowed (albeit didn't function neat enough) to add a set of columns under a viewdefinition in order to show them as grouped. Is there a proper way of achieving this in RadVirtualGrid? If the feature doesn't exist now, can you advise me on how to achieve this by additional GDI rendering ?

Thank you,

Saj.

Aseman
Top achievements
Rank 1
Veteran
 answered on 15 Jan 2020
3 answers
203 views

I want to implement the effect that highlight the matched text part of filtered node. The visual effect is just like the solution manager of visual studio. How can I do it? Thanks!

 
Steve
Top achievements
Rank 1
Veteran
 answered on 14 Jan 2020
3 answers
104 views

Hi,

In my program I have two virtual grids in the same form, viewable and usable simultaneously. By selecting elements in one grid you change what data is loaded into the other. For the sake of supplying more context-sensitive help, I had intended to replace the RadVirtualGridStringId.NoDataText string in the second grid with a more specific prompt depending on why no data is found. This works, but in the event that the first grid was unable to be populated with data, it needs to have different text to the second.

The Localization page explains how to change the LocalizationProvider for all virtual grids, but is there a way to set the provider of a specific instance of the grid?

Thanks

Hristo
Telerik team
 answered on 14 Jan 2020
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?