Telerik Forums
UI for WinForms Forum
2 answers
272 views

Hello,

Is it possible to change the height of my CheckedDropDownList and then wrap the items inside? I'd like to have multiple rows of checked items.

Thank you!

Ryan
Top achievements
Rank 1
 answered on 04 Mar 2016
5 answers
272 views

Hi,

   On click on Gridview cell , rad scroll able panel scrolls to left .

   Controls tree

   (Parent) Rad scrollable panel --> panel --> rad page view --> rad grid view (child )

 

Please find attached image.

 

Thanks.

Dimitar
Telerik team
 answered on 04 Mar 2016
5 answers
326 views
Hello,

I'm using the RadPageView component with the "explorerBar" ViewMode.
I'd like to hide the title bar which indicates the active page, but I didn't found any usefull property, nor any UI element in the Visual Style Builder.

How should I do this ?

Best regards
Patrice
Jesica
Top achievements
Rank 1
 answered on 03 Mar 2016
5 answers
420 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
313 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
428 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
526 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
156 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
332 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
80 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
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?