Telerik Forums
UI for WinForms Forum
1 answer
283 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
158 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
661 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
122 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
249 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
341 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
302 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
230 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
128 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
6 answers
1.3K+ views
Hello

I have a small problem which I couldn't find any solution, even though it sounds so simple... The font in my RichTextEditor is too big (see the attached image for an example how it looks). I'm wondering how it's possible to change this font size to a smaller font. I tried several things such as

txtText.ChangeFontSize(4);

or

txtText.RichTextBoxElement.ChangeFontSize(4);

I couldn't find anything about it in the documentation. Is it even possible to change the displayed font size?

Best Regards,
Roman
Roman
Top achievements
Rank 1
Iron
 answered on 13 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
ScrollablePanel
DataEntry
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
SmartPasteButton
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?