Telerik Forums
UI for WinForms Forum
4 answers
123 views
I want to display a message for the user, with the option for the user to see a detailed message.

does RadMessageBox have an option for this?

Thanks,
Ezequiel
Stefan
Telerik team
 answered on 16 Feb 2012
2 answers
251 views
Hi all,

knows somebody how to :
1) zoom-in, zoom-out chart by mous click ?
2) scrool min and max values in X axes ?

For scrolling I have used :

                myChart.PlotArea.XAxis.AutoScale = false;
                myChart.PlotArea.XAxis.IsZeroBased = false;
                myChart.PlotArea.XAxis.AddRange(0, 20, 1);

                myChart.HorizontalScroll.Enabled = true;
                myChart.HorizontalScroll.Visible = true;
                myChart.HorizontalScroll.Minimum = 0;
                myChart.HorizontalScroll.Maximum = 2000;
                myChart.HorizontalScroll.SmallChange = 1;
                myChart.HorizontalScroll.LargeChange = 100;

but i see only fisrt 20 values...is not possible scrool to another.

Thanks for your help
David
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
108 views

Boryana
Telerik team
 answered on 15 Feb 2012
4 answers
144 views
I am getting the following exception when scrolling a self referencing hierarchy grid.  I am using version 2010.3.10.1215.  Any suggestions or tips for working around this issue?

This only occurs after I expand the rows with:
WorkItemOneHopGridView.TableElement.BeginUpdate();
 
foreach (GridViewDataRowInfo row in WorkItemOneHopGridView.ChildRows)
{
    row.IsExpanded = true;
}
 
WorkItemOneHopGridView.TableElement.EndUpdate();


System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls.GridView
  StackTrace:
       at Telerik.WinControls.UI.GridTraverser.StepInHierarchyBackward()
       at Telerik.WinControls.UI.GridTraverser.MovePreviousCore()
       at Telerik.WinControls.UI.GridTraverser.MovePrevious()
       at Telerik.WinControls.UI.ItemScroller`1.ScrollUp(Int32 step)
       at Telerik.WinControls.UI.ItemScroller`1.thumbTimer_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at WorkItemWizard.Program.Main() in C:\TFS\WorkItemWizard\Program.cs:line 33
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Stefan
Telerik team
 answered on 15 Feb 2012
1 answer
147 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
119 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
139 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
63 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
87 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
86 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
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
ProgressBar
CheckedDropDownList
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?