Telerik Forums
UI for WinForms Forum
5 answers
409 views

I have some RadToggleButtonElements in a RadRibbonBar, and I'm trying to apply a theme to them. I already have a theme manager assigned to the ribbon bar, and it appears to be working correctly for the other control types on the ribbon bar. The RadToggleButton theme is loaded into the theme manager but it isn't being applied to the toggle buttons. I've checked the IsThemeApplied property on the buttons at runtime just to be sure, and it's always false. I found a previous post (http://www.telerik.com/forums/toggle-button-style) about how to add a RadStylesheetRelation to the RadToggleButton theme's xml file, and I tried that, but it's still not working. Is there something else I'm missing?

Note: This same RadToggleButton theme is used on another form as well, and it's working there, so I don't believe there's anything wrong with the theme itself. The only difference that I can see is that the toggle buttons on the other form are not being used in a ribbon bar.

 

Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Mar 2016
1 answer
299 views

Hi,

I am having trouble sorting a ListView with Custom Items and Custom Groups.

I have Created a SortDescriptor and Enabled Sorting. I have also got a ListViewCustomComparer.

My ListViewCustomComparer is being called and it does appear to be comparing items fine but the ListView never appears sorted.

I did find this article http://www.telerik.com/forums/sorting-items which seems to describe my issue perfectly and it was deemed a problem in the ListView.

I am using version 2016.1.216.40 and was wondering if this was ever fixed and if so what might I still be doing wrong?

Thanks

 

 

 

 

 

Dimitar
Telerik team
 answered on 03 Mar 2016
4 answers
417 views
I'm using RadChart v2011.3.11.1219 with a .Net 4.0 WinForms app using VS 2010 sp1. In this app I am displaying a couple of charts, but I am wondering if it is possible to generate a line chart and save it to png without ever displaying the chart?

How would I go about doing that?
Stefan
Telerik team
 answered on 03 Mar 2016
11 answers
511 views
I have tried searching everywhere and I have found no mention of the issue I am running into. Using a winforms application I add a png image to a radgridview. Then I export the Radgridview to a pdf file. However, in the pdf the image only shows up as the text "System.Drawing.Bitmap". Any idea what could cause the image to not render for the pdf? It looks just fine within the radgridview. I'm currently using version 2010.2.10.914 of the winform controls. Any help would be greatly appreciated.


This is the code I used to produce the Pdf.
private void AddImage(RadGridView TheGrid, MemoryStream mStream)
        {
            Image TheImage = System.Drawing.Image.FromStream(mStream);
            GridViewImageColumn ImageColumn = new GridViewImageColumn();
            ImageColumn.ImageLayout = ImageLayout.Stretch;
            ImageColumn.Width = 1095;
            ImageColumn.IsVisible = true;
 
            radGridView1.MasterGridViewTemplate.Columns.Add(ImageColumn);
            radGridView1.MasterGridViewTemplate.Rows.Add(TheImage);
            radGridView1.Refresh();
        }
 
            radGridView1.MasterGridViewTemplate.Columns.Add(Chart);
            radGridView1.MasterGridViewTemplate.Rows.Add(ChartImage.Image);
            radGridView1.Refresh();
        }
 
 
 
 
private void radGridView1_Click(object sender, EventArgs e)
        {
             
            if (this.radGridView1.Rows.Count != 0)
            {
                ExportToPDF exporter = new ExportToPDF(this.radGridView1);
                exporter.FileExtension = "pdf";
                exporter.ExportVisualSettings = true;
                exporter.PageTitle = "Chart";
                exporter.FitToPageWidth = true;
                exporter.PdfExportSettings.EnableCopy = true;
                 
 
                exporter.SummariesExportOption = SummariesOption.ExportAll;
 
                string fileName = "C:\\ExportedData.pdf";
                exporter.RunExport(fileName);
 
            }

Stefan
Telerik team
 answered on 03 Mar 2016
2 answers
150 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
317 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
78 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
253 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
667 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
171 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
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?