Telerik Forums
UI for WinForms Forum
2 answers
128 views

I might just be missing a very simple property here... the rows appear fine as soon as the application is run, but as soon as you click on a row, the value is rounded to two decimal places. Here's my code:

private void RadForm1_Load(object sender, EventArgs e)
{
    RadPropertyStore PropertyStore = new RadPropertyStore();
 
    radPropertyGrid1.SelectedObject = PropertyStore;
     
    PropertyStore.Add(new PropertyStoreItem(typeof(double), "test", 184.9484));
    PropertyStore.Add(new PropertyStoreItem(typeof(double), "test2", 341651.7823));
}

I tried to force the decimal places to remain the same using this, but it did not work:

private void radPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
{
    PropertyGridTableElement te = sender as PropertyGridTableElement;
    PropertyGridSpinEditor editor = e.Editor as PropertyGridSpinEditor;
 
    if (editor != null && te != null)
    {
        ((BaseSpinEditorElement)editor.EditorElement).DecimalPlaces = 5;
    }
}

How can I prevent my values from being rounded?

 

Thanks!

Ryan
Top achievements
Rank 1
 answered on 02 Mar 2016
7 answers
294 views
I'm having issues using the [Logo] feature when attempting to print a grid. For my test, I've got a png file at a size of 63x18 pixels and I want to place it in the LeftFooter. It does print it, but the logo is stretched instead of retaining its shape. I've attached an image of what I'm seeing.

Here is a snippet of code I'm using in my testing.
var doc = new RadPrintDocument();
doc.HeaderHeight = 20;
doc.FooterHeight = 18;
doc.HeaderFont = new Font("Arial", 10, FontStyle.Bold);
doc.FooterFont = new Font("Arial", 8, FontStyle.Regular);
doc.LeftHeader = "Test Header";
doc.Logo = System.Drawing.Image.FromFile(@"Z:\Home\Kurt\Y&M Logos\ymlogo_63x18.png");
doc.LeftFooter = "[Logo]";
doc.Landscape = true;
doc.AssociatedObject = radGridView1;
doc.Print();

If I had the ability to set the Width of the LeftFooter, or force the size of the Logo, I'd be set, but I can't find a way to do this. Any ideas?
Stefan
Telerik team
 answered on 02 Mar 2016
4 answers
64 views
hi want show text with right to left in rad print document please help me.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Mar 2016
1 answer
224 views

Hello,

I want to make use of the AutoCompleteBox so the user has a nice autocomplete feature, without him being able to input other values then the ones in the autocomplete items. I've been looking for this some time now, but it seems like in WPF and Web it's the SelectionMode property. But in my Winform project, there is no such a property.

Can you tell me if this is possible and if so, how (which winform property i need to set). I'm using latest .net, latest telerik updates etc. Control is RadAutoCompleteBox.

Thanks a lot!

best regards,

Francois

 

Dimitar
Telerik team
 answered on 02 Mar 2016
1 answer
637 views
I have data grid , When the form loads, the grid is just an empty because there are no data . Is there any way to display the grid lines when there are no data ? like that excell page. Thank you!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Mar 2016
1 answer
141 views

Hi there,

There seems to be a bug with the PivotGrid when using the Export to Excel function.

Using the Demo Application for WinForms, you can just open the PivotGrid - Export to Excel example and then export one.

After that, minimize the Demo Application to task bar, and maximize it back. Some of the rows will be missing. If you keep minimizing and maximing, the rows that are disappearing will keep changing.

I'm not sure if this bug is just on my machine or if there's anything that that needs to be installed.

Thanks!

Ralitsa
Telerik team
 answered on 02 Mar 2016
6 answers
657 views
Hi,

    I'm looking for a way to have a tree dock to the left side in a collapsible panel, and a panel on the right side to fill.  If the left side panel is collapsed I'd like the right side to consume the free space?   Any hints on how to do this?

thanks
Mike
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Mar 2016
0 answers
79 views
How can I auto height header of Grid?
Feri
Top achievements
Rank 1
 asked on 02 Mar 2016
5 answers
65 views

I have tried all sorts of things and I can get this to *almost* work.

I have a grid with "stacked" data entry columns, as such it can be a little tricky to see which one you are in.

I am wanting to highlight the header column for whichever column I am in, sort of like Excel does.

I can change the individual header colors through checking:

if (e.CellElement is GridHeaderCellElement || e.CellElement is GridGroupContentCellElement)
{
if (e.CellElement.ColumnInfo.Name == "podName")

 

But I cannot seem to get it to work just when I am in that cell.

I have tried setting a variable telling me when the cell is selected by doing something like:

private void radGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e)
{
var test = e.NewCell;

if (test.ColumnInfo.Name == "podName")
{
//currentcolor = System.Drawing.Color.Black;
currentCellIs = 1;

 

But that does not work correct either.

Has anybody else done this or have any suggestions?

Thank you,

 

Joe

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Mar 2016
2 answers
171 views

Hi All,

I have a RadPanel on my form, and it contains several rad buttons, a toggle switch, etc. I noticed that in order to get a theme to be applied to the child controls, I have to set it individually on each one. I was expecting that if I set the theme on the parent panel, that the child controls would all use it as well. I just wanted to make sure that I'm not doing something wrong here...am I supposed to set the theme separately on all child controls within a panel? Thank you!

Emily
Top achievements
Rank 1
 answered on 01 Mar 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
AI Coding Assistant
+? 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?