Telerik Forums
UI for WinForms Forum
1 answer
158 views
Hello.

My Some own class have EnumValue Property.

that is showing like a combobox.

but that combobox doesn work before press enter key.

My boss want see preview about change value(that value make some design to another control)
when change combobox value..

please tell me how i can use change value without enter key at enumValue.

Thank you...
Ivan Petrov
Telerik team
 answered on 15 Feb 2012
1 answer
127 views
Hi,

I have a long HeaderFormat string for day view but when I change the ActiveView I would like to change the HeaderFormat to a shorter string such as mm/dd.  I tried this in the ActiveViewChanged by doing the following without any luck.

Is it possible to do this?

Thank you.
David

private void Scheduler_ActiveViewChanged(object sender, SchedulerViewChangedEventArgs e)
        {
 
            if (e.NewView.ViewType == SchedulerViewType.Week)
                Scheduler.GetWeekView().HeaderFormat = "mm/dd";
        }
Ivan Todorov
Telerik team
 answered on 15 Feb 2012
1 answer
144 views
Hi,
I have a fairly simple object model:

public class Location
{
           public string Name { getset; }

        readonly List<Location> _locations = new List<Location>();
        public List<Location> Locations
        {
            get { return _locations; }
        }
 
        readonly List<Printer> _printers = new List<Printer>();
        public List<Printer> Printers
        {
            get { return _printers; }
        }
}
 
public class Printer
{
        public string Name { get; set; }
        public string Mapping { get; set; }
        public string AdditionalInfo { get; set; }
        public string Guid { get; set; }
}

So a location can have any number of sub-locations,  and each location can have any number of printers.

I'd like to bind this to a RadTreeView, such that the 'Name' property of the location/printer is shown 

e.g
   Location#1
   Location#2
       Location#3
            Location#4
                 Printer#1
                 Printer#2
            Location#5
                 Printer#3

etc.

The object model is loaded from xml at the moment,  a sample of which can be seen here:

<Locations>
  <Location Name="Basingstoke">
    <Location Name="Development Office">
      <Printer Name="HPPSC950" Mapping="\\DEVPRT002\HPPSC950" Guid="064ceeef-7495-4ac2-8ba4-eb5b1c546a1b"/>
      <Printer Name="LaserJet" Mapping="\\DEVPRT002\LaserJet" Guid="65b0c6be-f251-4100-81c9-eb7535df1371"/>
    </Location>
    <Location Name="Accounts Department">
      <Printer Name="Payroll Printer" Mapping="\\ACCPRT005\XPrinter999" Guid="7eea423a-ac97-4245-9c4d-850d559b3ff9"/>
      <Printer Name="XPrint12346576" Mapping="\\ACCPRT005\XPrint12346576" Guid="7a19adf2-654a-4732-8f35-c168bb7f92f9"/>
      <Printer Name="XPrint00650" Mapping="\\ACCPRT005\XPrint00650" Guid="fa4f1367-f18d-4459-82ae-ac78e6d2ba5e"/>
    </Location>
    <Location Name="Sales Office">
      <Printer Name="Colour LaserJet" Mapping="\\SALPRT001\ColLaser" Guid="b1395465-72b7-42d6-ad26-078600a7a8f8"/>
      <Printer Name="HP6732/2344" Mapping="\\SALPRT001\HP6732" Guid="a0b6cd21-42f0-435a-8870-30107472b041"/>
    </Location>
    <Location Name="HR Department">
      <Printer Name="OKI452224/332/2C" Mapping="\\HR001\Oki" Guid="af4da720-6ccf-4f37-8b9e-e996b71d6e3b"/>
    </Location>
  </Location>
  <Location Name="Dagenham"/>
  <Location Name="Glasgow">
    <Location Name="Main Office">
      <Printer Name="MO32423/2" Mapping="\\GLASP001\MO2" Guid="f48b97e9-abea-43cb-887b-c7b3dc164154"/>
      <Printer Name="MO23432/3" Mapping="\\GLASP001\MO3" Guid="a4c50255-39ac-4c86-beb6-abe90096caf2"/>
    </Location>
  </Location>
  <Location Name="London Southbank">
    <Location Name="1st Floor">
      <Printer Name="XPrinter178" Mapping="\\SALPRT001\XPrinter178" AdditionalInfo="This is an A3 Colour Printer, with 2 paper trays" Guid="95829976-6363-4a46-8a8c-0c3655344913"/>
      <Printer Name="XPrinter192" Mapping="\\SALPRT001\XPrinter192" Guid="51c4a69c-5941-401a-b14f-3d215f077642"/>
      <Printer Name="XPrinter193" Mapping="\\SALPRT001\XPrinter193" Guid="0fd5a42c-5c2a-4fd1-8f8a-91ad17e70725"/>
      <Printer Name="XPrinter145" Mapping="\\SALPRT001\XPrinter145" Guid="0da3f62c-929a-4bb8-9a4e-a7c9795360a8"/>
      <Printer Name="XPrinter156" Mapping="\\SALPRT001\XPrinter156" Guid="1271c159-8715-4a6d-afe3-e773cdbae94d"/>
    </Location>
    <Location Name="2nd Floor">
      <Printer Name="XPrinter198" Mapping="\\SALPRT004\XPrinter198" Guid="6364d0a7-d98e-460b-907a-b591b931fc46"/>
    </Location>
    <Location Name="3rd Floor">
      <Printer Name="XPrinter218" Mapping="\\SALPRT003\XPrinter218" Guid="cdc3013b-172b-4ceb-b6bb-f9279963a3e4"/>
      <Printer Name="XPrinter219" Mapping="\\SALPRT003\XPrinter219" Guid="13606f67-3263-41bc-8b1b-d1a99423f5e5"/>
    </Location>
  </Location>
  <Location Name="London Central">
    <Location Name="Accounts">
      <Printer Name="FG23453" Mapping="\\LONACC\FG23453" Guid="b8b299f6-627a-41e7-949f-ce483e760382"/>
      <Printer Name="YM3443533" Mapping="\\LONACC\YM3443533" Guid="0d3de23e-ae86-4cdc-8461-11c01413bea2"/>
    </Location>
    <Location Name="Sales">
      <Printer Name="Colour Laser" Mapping="\\LONACC\XYX13434" Guid="bdd7f360-255c-42d2-ac58-5e92aa364e0a"/>
    </Location>
  </Location>
</Locations>


Can this be done with RadTreeView ???

Thanks.
Julian Benkov
Telerik team
 answered on 15 Feb 2012
1 answer
66 views
Hi,

We are trying to replace a previous third party calendar control with your RadCalendar.  We have a calendar that is on a form that can be resized.  If the form is maximized, we expect the # of months (rows)  to increase.  The MultiViewRows looks like a fixed value, so we really don't know how many rows to display based on the resolution of the user.

Is there a way to make this function like Outlook where changing the window size automatically adjusts the number of months to display?

Thanks,
David
Ivan Todorov
Telerik team
 answered on 15 Feb 2012
2 answers
92 views
I am trying to create a line chart that will be filled in real-time over a 2hr time period. It will be something like PerfMon in that I will start with just 1 data point and each minute I will add a new one until I reach 2hrs, at which time the first data point is removed, and from then on I show the last 2hrs of data with the line data scrolling each minute.

I have made this work by simply adding to the list the chart is data bound to. But the xaxis changes every minute to accommodate the new data point, up until 2hrs. I'd like to preset the xaxis to show 2hrs in 1min increments even though I don't have data yet. Is this possible?

I thought about prefilling the databound list with values of 0, but then the line chart looks odd because it goes to zero for all future points. How else could I accomplish this?
Brett Robichaud
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
88 views
Hi Every Body!!

I want to export to Excel in VS 2010 And Telerik 2011 Q3
But when doing Using Telerik.Wincontrol.UI.Export
I can't see ExportTo Excel Class And this Class is unknow for VS2010 Ultimate Version
But I Can see In VS2008 By Telerik 2008

Please Help Me!!!!
Stefan
Telerik team
 answered on 15 Feb 2012
5 answers
472 views
I have a piece of code that refreshes a RadTextBox Text property depending on external events. In order not to change the Text property while the user is typing in the text box I check the Focused property first and proceed in overwriting the Text property only if it is false, the relevant code looks like this:

private void event_ExternalUpdate(object sender, EventArgs args) 
    if (!textBox.Focused) 
        textBox.Text = "foo"
 

However in Telerik 2010Q1 this does not seem to work. I have tried to check at runtime and apparently the Focused property is always false even though I am editing that particular text-box. I have made a super-simplified test case and tried it with both Telerik 2009Q3 and 2010Q1 and it works correctly under version 2009Q3 (Focused is set to true when I'm typing in the field) but not on 2010Q1. Is this a bug or is there another way to check if a specific control has the input focus?

As a temporary workaround I noticed that the FocusedElement property is null when the text-box doesn't have the input focus and points to the embedded RadTextBoxItem when it has focus so I'm using it instead. However because FocusedElement is not documented I am a bit wary of using it.
Nikolay
Telerik team
 answered on 15 Feb 2012
1 answer
107 views
Hello,

I understand the RichTextBox in conjunction with a RibbonBar can be used to create an Editor for WinForms applications.  Can you direct me to any video detailing its capabilities.  I want to build an integrated Editor solution within the WinForms application and want to ensure I get most of the functionality you would get with MSWord such as paragraphs, formatting, bullets, tables, headers, footers etc.

Also I believe this is only available with framework 4.0?

Thank You,

Kerry
Stefan
Telerik team
 answered on 15 Feb 2012
1 answer
114 views
I've applied a theme to the application using  
ThemeResolutionService.ApplicationThemeName = "MyTheme";

All works as expected, my theme is applied.

Later on in the application, one specific RadButton needs to have a different theme applied programatically, say "MyThemeWarning"

So I try
myButton.ThemeName = "MyThemeWarning";


but nothing changes, the button remains with the theme that was applied to the application. I have verified MyThemeWarning is being loaded by the ThemeResolutionService. 

What is the correct way to change the theme of a specific RadButton after the ApplicationThemeName has been set?

JDLC
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
248 views
I'm sure I'm missing something very simple here but I want to add a RadDropDownList to a RadGridView at design time but can't find where I change the default RadGridViewTextBox column to something else. I've looked at several code examples for doing this dynamically but want to know how to do it at design time please. I also want to be able to add CheckBox columns etc. but figure once I get an answer to the first question the others will be relatively similar. My environment is WinForms.

Thanks and best regards
Stefan
Telerik team
 answered on 14 Feb 2012
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?