Telerik Forums
UI for WinForms Forum
3 answers
109 views
Hello

Is there a simple way to prepopulate the subject field of a new appointment box?

Thanks,
TS
Dobry Zranchev
Telerik team
 answered on 10 Sep 2010
3 answers
92 views
I cannot seem to find this event in the event list.  Is this a known issue?  The API says it should be there...
Dobry Zranchev
Telerik team
 answered on 10 Sep 2010
1 answer
95 views
Hi !

If I hide the Legend I would like the graphs to be expanded, to take the empty place result from hiding the legend.

How I can do that ?

Regards
Hans
Evgenia
Telerik team
 answered on 10 Sep 2010
4 answers
103 views
Hi,

Is there a way to hide some of the GroupBarElements in a PanelBar and have the remaining GroupBarElements reposition themselves accordingly?

For example, I can get the first 3 GroupBarElements to hide using the Visibility property, however the 4th GroupBarElement will appear where it would be if the 3 first buttons were still visible. I'd like the 4th GroupBarElement to appear on top when the previous 3 are hidden.
Stefan
Telerik team
 answered on 10 Sep 2010
1 answer
117 views
Hi !
If I resize the chart through the code, I would like the proportion to be maintained. How I can do that?
Now for example if i make a chart smaller at runtime the title is over the chart bar, I cannot see very well x axis ...

Regards,
Hans



Ves
Telerik team
 answered on 10 Sep 2010
7 answers
176 views
Hello,

Neat control in the demos, but when I come to use it I have some problems. The carousel is inside a splitter panel that is 50% tall and 25% wide of the form.

1) I am loading images at runtime from the sample pictures folder (C:\Users\Public\Pictures\Sample Pictures), these are much larger than the control. I had expected there to be a means to say autosize the image but the autosize property on the carousel item does not appear to do anything.

2) The images are not centered (see attached) nor can I figure out where the borders are coming from.

3) I cannot move the navigation buttons, I want them as they are but half way up (I'm surprised this is not a provided setting).

4) The MSDN documentation is awful, look at the description of the easing types for example: ms-help://MS.VSCC.v90/MS.VSIPCC.v90/telerik.winforms.2010.2/telerik.winforms/Telerik.WinControls~Telerik.WinControls.RadEasingType.html

On re-sizing the splits it seems that image is probably the right size but the borders are messing things up.

All I am after is a slide show. maybe this is not the appropriate control?

Here is my code:
Dim objl_TELERIK_CAROUSEL As New Telerik.WinControls.UI.RadCarousel
ctll_PANEL_3.Controls.Add(objl_TELERIK_CAROUSEL)
objl_TELERIK_CAROUSEL.Dock = DockStyle.Fill
objl_TELERIK_CAROUSEL.Name = ctll_PANEL_3.Name & "_TELERIK_CAROUSEL"
objl_TELERIK_CAROUSEL.AnimationsToApply = Telerik.WinControls.UI.Animations.None
objl_TELERIK_CAROUSEL.AnimationDelay = 0
'objl_TELERIK_CAROUSEL.AnimationFrames = 0
objl_TELERIK_CAROUSEL.EasingType = Telerik.WinControls.RadEasingType.Default
objl_TELERIK_CAROUSEL.ItemReflectionPercentage = 0
objl_TELERIK_CAROUSEL.AutoScroll = False
objl_TELERIK_CAROUSEL.ButtonNext.Location = New System.Drawing.Point(objl_TELERIK_CAROUSEL.ButtonNext.Bounds.X, CInt(objl_TELERIK_CAROUSEL.Height / 2))
 
For Each strl_FILE As String In My.Computer.FileSystem.GetFiles("C:\Users\Public\Pictures\Sample Pictures")
  If strl_FILE.EndsWith(".jpg") Then
    Dim carouselItem As Telerik.WinControls.UI.RadButtonElement = New Telerik.WinControls.UI.RadButtonElement
    carouselItem.Image = New Bitmap(New Bitmap(strl_FILE), objl_TELERIK_CAROUSEL.Size.Width, objl_TELERIK_CAROUSEL.Size.Height)
    carouselItem.Alignment = ContentAlignment.TopLeft
    carouselItem.DisplayStyle = Telerik.WinControls.DisplayStyle.Image
    carouselItem.FitToSizeMode = Telerik.WinControls.RadFitToSizeMode.FitToParentBounds
    carouselItem.ImageAlignment = ContentAlignment.TopLeft
    carouselItem.AutoSize = True
    carouselItem.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.Auto
    objl_TELERIK_CAROUSEL.Items.Add(carouselItem)
  End If
Next


Regards,
Mark Leavesley
Peter
Telerik team
 answered on 09 Sep 2010
6 answers
307 views
I tried to remove my SpecialDays by using functon 'RadCalendar1.SpecialDays.Remove(mday)
but it seems doesn't working
 
Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        Dim mdate As New Date
        mdate = RadCalendar1.SelectedDate
        Dim mDay As New Telerik.WinControls.UI.RadCalendarDay(mdate)
        RadCalendar1.SpecialDays.Add(mDay)
 
    End Sub
 
    Private Sub RadButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadButton2.Click
       
        Dim mDay2 As New Telerik.WinControls.UI.RadCalendarDay()
        mDay2.Date= RadCalendar1.SelectedDate
           mCalendarDay.Date.ToString("dd/MM/yyyy")
        RadCalendar1.SpecialDays.Remove(mDay2)
    End Sub
I wonder if its datetime format cause the problem?...cos it seems if i select a date e.g. '07/08/2010' (I am using en-GB format) it automatically covert it to US Datetime format when you try to remove it (Like '07/08/2010' will become '08/07/2010') , the system wouldn't throw any error, but this special day still in 'Radcalendar1.specialdays 's' List. can anybody please give me example code how to remove certain specialdays by code?
btw, the version i got is "2009.1.9.414"
thanks in advance! its urgent.
zhen
Top achievements
Rank 1
 answered on 09 Sep 2010
1 answer
115 views
Hello every body,

i want to display full size of an control (Panel) within an RadPanelBar.
I just see a part of it. I have set AutoScroll = false, it turn back to true.

How can i display the whole child control of RadPanelBar without seeing
the scrollbar?

Would you kindly help me? 
Alexander
Telerik team
 answered on 09 Sep 2010
5 answers
314 views
Hello Team Telerik,

This is very likely a simple question to answer:

My test winforms application (Telerik Winforms components Q2 2010) has one RadPageView component on Form1. Each Button1 click will create a new PageViewPage and put a RadDock on it (see code below). Running this app from within VS2008 will show in Windows Taskmanager (Windows 7 32 bit) after the application-start approx. 40MB memory working set. Clicking 20 times on Button1 will increase the memory to approx 80MB. Closing all pages by clicking on the X button of the PageView TabStrip will not reduce the amount of used memory (instead creating another set of 20 pages by clicking Button1 will result in further increased memory allocation). 

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            RadPageViewPage page = new RadPageViewPage();
            page.Text = "Page";
 
            RadDock dock1 = new Telerik.WinControls.UI.Docking.RadDock();
            dock1.Dock = System.Windows.Forms.DockStyle.Fill;
 
            page.Controls.Add(dock1);
 
            this.radPageView1.Pages.Add(page);
            this.radPageView1.SelectedPage = page;
        }
    }
}

Trying to  remove dock1 from the page and disposing it when the page is removed did not help:
private void radPageView1_PageRemoving(object sender, RadPageViewCancelEventArgs e)
        {
            RadDock dock1;
            RadPageViewPage page = this.radPageView1.SelectedPage;
            if (page != null)
            {
                Control[] pagecontrols = page.Controls.Find("radDock1", false);
                int numerofpagecontrols = pagecontrols.Length;
                if (numerofpagecontrols == 1)
                {
                    dock1 = (RadDock)pagecontrols[0];
                    page.Controls.Remove(dock1);
                    dock1.Dispose();
                }
            }
        }

Thank you very much for any feedback.
Regards,
Ralf
Nikolay
Telerik team
 answered on 09 Sep 2010
7 answers
1.0K+ views
Hello everybody.

I have a problem with rad drop downlist.
My drop down list is unbound and populated during runtime, every item having text and value.
A valid value to be displayed should be 'no selection' => SelectedValue = null
The selected item should change after the selected node in a tree view is changed

When I first select item which have null as value for the drop down list, everything's ok.
But after an entry from the DrowDownList was selected and the try to change the SelectedValue to null, I have the problem, that even though the SelectedValue seems to be null, the text of the last selected item is still displayed.

I tried setting the value to NULL by using:
  • SelectedValue = null;
  • SelectedIndex = -1;
  • SelectedItem = null;

All produced the same result: The SelectedValue is null when I check, but there is still text displayed.
So, my question is: how can I reset the DropDownList to a state where no item is selected by code.

Thanks for any help

Baldwin
Top achievements
Rank 1
 answered on 09 Sep 2010
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?