Telerik Forums
UI for WinForms Forum
1 answer
135 views
Hi,

I am using a tree view with parent child nodes, and have out the tab order of treeview , however it doesnt work.

I want tab should put focus on the treeview and i should be able to move through nodes using tab itself.

Thanks for help in advacne

Anuj
Victor
Telerik team
 answered on 04 Feb 2010
1 answer
214 views
I'm getting an exception in a RadForm based class with the following call stack:

The operation completed successfully
   at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
   at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
   at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
   at BPCommon.BPForm.WndProc(Message& m)
   at BPMonitorWall.BackgroundWnd.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

BackgroundWnd is a very simple window that just shows a solid background color.  It is based on RadForm.  Unfortunately, I can't provide a simple code sample to make this happen.  It can occur after many hours of operation doing lots of different things.  I found the following discussion on this type of error:

http://nomagichere.blogspot.com/2008/03/systemcomponentmodelwin32exception-is.html

However, I don't know if it's applicable.  I couldn't find a call to CreateGraphics in your source code in the RadForm project.  I don't call CreateGraphics in my code either.  Have you seen this issue before or have any idea what could cause it (or fix it)?



Deyan
Telerik team
 answered on 04 Feb 2010
3 answers
213 views
I am building an MDI application, in which i want to add tabs specific to the active mdi window to the ribbonbar.
I got this working by capturing the window's activated event. When a window is activated it removes the tabs associated with the previous active window, and adds new tabs which are associated with the new window. After the new tab(s) are added I activate one by using the tab.IsSelected property.

This works, however for some reason the title of the tab isn't highlighted if i switch between MDI windows.
For example, I open a window which lists orders for example. The associated tab gets added, selected, and is properly highlighted. If I then click on an order, it opens a detail window. The detail window gets activated, so the tab associated with the "order list" window gets removed, and a new tab gets added. Again, the tab is properly added, selected and highlighted. If i now select the "order list" window again, the "order detail" tab gets removed, the "order list" tab is added, and gets selected. However, for some reason it doesn't highlight the tab title.

Any ideas what might be causing this peculiar behaviour? As far as i know i'm not capturing "lost focus" events which might cause problems.
Nikolay
Telerik team
 answered on 04 Feb 2010
5 answers
188 views
I'm using RadControls for WinForms 2008.3 1204.

Assume the following: I have a DateTimePicker and set the MinDate and MaxDate properties.

1. Is it possible to show the "invalid dates", means all dates not between MinDate and MaxDate, in the calendar popup with a certain format, for example strike out or red?

2. Is it possible to prevent the closing of the calendar popup, if no valid date has been selected? Although I can listen to the DateTimePicker's Closing event I don't see how to determine which date has been selected in the calendar popup.

3. If I don't prevent closing the popup (like at the moment) and the user did select an invalid date which has not been applied to the DateTimePicker, the date even stays selected in the calendar popup if I re-open it. Let's say the DateTimePicker's MinDate is set to 2009/01/10. I open the calendar popup and select 2009/01/01. The value will not be applied when the popup closes. But when I re-open it, 2009/01/01 is still shown as selected.

Any helpful hints?

Regards,
ReneMT

Nikolay
Telerik team
 answered on 04 Feb 2010
2 answers
80 views
I dragged a new WinForms RadCalendar control onto a WinForms 2008 form.

Selecting the control and viewing its properties in the Visual Studio Properties pane, I set the control's NavigationNextImage and NavigationPrevImage properties to .bmp resources.

The images I assigned show in the designer.

When I run the application the images do not show.  All that shows is the < and > text.

Is setting the images all I need to do to have the images show in runtime or have I missed something?

Thank you,

Mike McIntyre
Mike
Top achievements
Rank 1
 answered on 03 Feb 2010
1 answer
66 views
Hi
i am trying ur gridview control i want to know is this is possible to create child grids based on multiple columns viewed in single grid
for example if i can show  months in grid view and want to enter some data in each month with child grid if is it possible
???
coze till now i can make child grid based on one column only i want multi column child grid so that if i click on rows of any column i can get its child grid
Martin Vasilev
Telerik team
 answered on 03 Feb 2010
4 answers
276 views
Hi all

I am evaluating Telerik wincontrols and have this problem...

I have an embedded theme (MyTheme.xml) resource in my own Class Library (MyDll.dll),
The "MyTheme.xml" is set as an embedded resource and I refrence it in my main program.

I try to load the resource from my main VB program (MyProgram) but I cannot get the theme to load.

I am able to load a LOCAL theme resource from inside my main program (MyProgram) using the following

"ThemeResolutionService.RegisterThemeFromStorage(storageType.Resource,

"MyProgram.MyTheme.xml")"

 

 


But when I try to get the theme from my DLL this does NOT work ?
"ThemeResolutionService.RegisterThemeFromStorage(storageType.Resource, "MyDll.MyTheme.xml")"


I have exhausted all the examples on the help & support website and I ned help with this

If you know the answer please reply !.
Nikolay
Telerik team
 answered on 03 Feb 2010
1 answer
295 views
I want to start off by apologizing for my many posts recently.  A project that was dead for about a year has become a top priority so I have to learn a lot and real fast.  Thank you for everyones help.

My current situation is kind of tricky.  I have a grid view that has many users with State and City columns.  I'm dynamically creating these columns on load of the form.  I'm pointing to all the right field names.  My problem is that I need to be able to populate my city combobox based on my state combobox.  So the user has Florida as State and Orlando as city when the user goes to change the city the drop down should have the rest of the florida cities.  If he changes the state the city combo should populate with all those cities.  I need just the combobox within the current rows datasource to change not every combobox in that column.  Is this possible?
I have a table with StateId, StateName and another table with CityId, CityName.

Anything to lead me in the right direction would be greatly appreciated.

Thanks in advance for any help
Nikolay
Telerik team
 answered on 03 Feb 2010
1 answer
101 views
I have a RadCalendar which I dynamically change the SpecialDays whenever  the month view changes to add a series of custom controls to that month.  Each day in the month gets the custom control inserted whenever the month changes. The performance isn't great but it is acceptable except when I navigate to the month containing the FocusedDate when the adding of the custom controls takes close to 5 seconds to insert and draw the controls.  Is there anything I can do to speed up the rendering of the FocusedDate month?

Incidentally, if I change months by clicking the navigation button the specialday controls populate for the following month fairly quickly.  If I try to navigate to the next month by pressing the arrow key I get the same very slow update as navigating to the FocusedDate month...

Any solutions?
Dobry Zranchev
Telerik team
 answered on 03 Feb 2010
1 answer
99 views
We build rather complicated applications that need to be deployed to remote users. We're not especially fond of (or experienced with) browser based app dev, and would prefer to use a technology that has a richer interface and good wysiwyg design tools. Long term I may pick up silverlight and ria services, but it's not obvious that they're ready for the kind of cut to the chase development that I prefer.

I know some developers use winforms deployed via clickonce which would be fine for us. But one aspect I've had a hard time getting a clear picture of is how the client winforms app would interact with the database on the remost server. Does anyone here have exposure to that? It's not an approach that really took off, but was promoted briefly by Microsoft in the .Net 2.0 period. Data access technologies have evolved a lot since then and I am not sure what would be regarded as the best current practices. I wish Microsoft had something like RIA Services for winforms. Basic crud functionality is what is needed; there are other aspects like local caching and retry routines that come into play. I don't want to write all of that and so I am hoping to fine a framework or something like that to work with.

Does anyone here have recommondations to make re basic technologies to use, or frameworks that may exist that expidite this approach? I don't think the Telerik OpenAccess ORM deals specifially with actual connectivity - it's just an ORM, right?

I hop it's ok that I'm going to post this query to both winforms and the OpenAccess ORM forms.
Nikolay
Telerik team
 answered on 03 Feb 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)
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?