Telerik Forums
UI for WinForms Forum
14 answers
262 views

Hello,

I try to use custom cells dynamically following data I want to display ( use checkbox when data is boolean). To do so I use CreateCellElement to instantiate my custom cell but it appears to this event is not fired on that specific column and the column have default display with "True" and "False" instead of check boxes. 

 

Here is a part of my code :

this._radVirtualGrid1.CreateCellElement += onGridCellTypeNeeded;
 
 
private void onGridCellTypeNeeded(object sender, VirtualGridCreateCellEventArgs e)
        {
            if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
            {
                DataType type = myDataDescriptor.getDataType(e.ColumnIndex);
                switch (type )
                {
                    case DataType.Bool:
                        e.CellElement = new CheckBoxCellElement(e.ColumnIndex);
                        registerCustomColumnIfNeeded(e.ColumnIndex);                      
                        break;
                }
            }
        }

Do you know how to fix it ?

Regards,

Amand.

Hristo
Telerik team
 answered on 02 Jan 2017
8 answers
927 views
Hi

I have a radlistview being populated manually in iconview mode. However when the list has more items then the display area it automatically creates new rows therefore the scrolling happens vertically.

I am sure there is a way to change it so items go in one row and the scrolling is horizontal but so far I have to failed to find it.

Any help would be appreciated.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jan 2017
3 answers
163 views
Is there a limit on the number of columns that can be displayed in a RadGridView at any given time?

Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Dec 2016
5 answers
154 views
Hi,

I have a gridview with two columns. 

            this.radGridDettagli.MasterTemplate.Columns.Add(newGridViewTextBoxColumn("Name", "Name"));
            this.radGridDettagli.MasterTemplate.Columns.Add(new GridViewTextBoxColumn("Value", "Value"));

The column "Value" could contains different object types. Decimals, String, Date, Enum, etc, ect.

I would like, to use different editors based on the cell value of my column "Name".

Example

Cell value of column "Name" is "ExpiryDate" I need RadDateTimePicker to edit the cell "Value" or the same row
Cell value of column "Name" is "Quantity" I need RadSpinEditor to edit the cell "Value" or the same row
Cell value of column "Name" is "OrderState" I need RadDropDownList to edit the cell "Value" or the same row

RadSpinEditor for numbers, RadDropDownList in case of Enum, RadDateTimePicker in case of Date, RadTextBox in case of string.

Somebody could help me ?

Thanks.

Sergio



Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
 answered on 29 Dec 2016
1 answer
93 views

Hello,

I was wondering if anyone could help me set the rendering of text and graphics of my radchartview to antialiasing? I know there is a enum called TextQuality, but I am not sure how to access it.

 

Thank you,

 

Erkin

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Dec 2016
7 answers
206 views

I'm new to the Virtual Grid. I can't seem to figure out how to allow the user to reorder the columns. Because the columns are built based on the OnCellValueNeeded event, I assume the reordering will have to be done here. But how can I show the dragging of a column and detect where it was dropped?

Hristo
Telerik team
 answered on 29 Dec 2016
4 answers
246 views

Hello,

I am trying to implement a hide/show option on column. For now, I implemented a contextual menu option to do it and as a workaround I set column size to 0 to hide it but it leads to weird display (cf attached image (with 10 hidden columns)). Do you know a better workaround to avoid this display ?

 

Regards,

Amand

Hristo
Telerik team
 answered on 28 Dec 2016
1 answer
145 views

I am working on a template editor, so I have a simple layout with a RadGridView on the left, and a RichTextEditor on the right. When the row gets changed, I load a template into the the RichTextEditor. The editor is readonly (the template is edited in a different window). How can I change the zoom level to automatically show two full pages.

 

Here's what I have when I load the template the first time http://i.imgur.com/a8vyyov.png
And here's what I can see when I hold ctrl and use the mousewheel to zoom in 1 level. http://imgur.com/angvElk.png
I am looking for something in the middle, where I can see 2 pages, and it takes up 100% of the space available.

Thanks!

Hristo
Telerik team
 answered on 28 Dec 2016
1 answer
241 views

I am adding a new tab to the RichTextEditorRibbonBar like this:

var lblTempalteName = new RadLabelElement() {
    Text = "Template Name:",
    AutoSize = false,
    Size = new Size(120, 20)};
var tbxTemplateName = new RadTextBoxElement() {
    Size = new Size(100, 25),
    Padding = new Padding(2) };
var templateNameGroup = new RadRibbonBarButtonGroup();
templateNameGroup.Items.AddRange(new RadItem[] { lblTempalteName, tbxTemplateName });
 
var lblDataSource = new RadLabelElement() {
    Text = "Data Source:",
    AutoSize = false,
    Size = new Size(120, 20)};
var ddlDataSource = new RadDropDownListElement() {
    Size = new Size(100, 25),
    DropDownStyle = RadDropDownStyle.DropDownList };
var dataSourceGroup = new RadRibbonBarButtonGroup() { Margin = new Padding(0, 3, 0, 0) };
dataSourceGroup.Items.AddRange(new RadItem[] { lblDataSource, ddlDataSource });
 
var rbgProperties = new RadRibbonBarGroup()
{
    Text = "Properties",
    Orientation = Orientation.Vertical
};
rbgProperties.Items.AddRange(new RadItem[] { templateNameGroup, dataSourceGroup });
 
 
var templatePropertiesTab = new RichTextEditorRibbonTab() { Text = "Template properties", IsSelected = false};
templatePropertiesTab.Items.Add(rbgProperties);
 
richTextEditorRibbonBar1.CommandTabs.Add(templatePropertiesTab);

The tab that I am adding becomes selected, which isn't what I want. How do I ensure that the "Home" tab is selected. Here's what I tried, but it doesn't work.

foreach (RibbonTab item in richTextEditorRibbonBar1.CommandTabs)
{
    item.IsSelected = (item.AccessibleName == "Home");
}
richTextEditorRibbonBar1.Refresh();
Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Dec 2016
2 answers
58 views
Can themes be viewed and purchased by other vendors that can be used with the Telerik UI?  In particular, I like the theme used with ADOBE Photoshop...can this be purchased?

 

Dave

David
Top achievements
Rank 1
 answered on 27 Dec 2016
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?