Telerik Forums
UI for WinForms Forum
5 answers
127 views
Hi,

with a workaround I could force the "MinSize" when the containing window is resized.

But now another problem comes up.
If a panel has the state "AutoHide" it ignores the MinSize totally.
So you don't need to resize the whole window.

Simply make the panel smaller.

I guess this has something to do with the "missing" splitter.
When a panel is on AutoHide it shows some kind of border instead of a splitter.
What I think is that you check for MinSize in "SplitterMove" (or somewhere around there).
BUT - in this case no "SplitterMoved" is fired.

So my workaround fails if the Panel is on AutoHide!!
I think this is a bug!

Is there another way to enforce MinSize with a workaround?
Any event that I can handle?

Regards

Manfred
Julian Benkov
Telerik team
 answered on 12 Feb 2008
5 answers
220 views
Hi,

by trying to fix the problem with "ingore minsize"
http://www.telerik.com/community/forums/thread/b311D-bbthde.aspx

I found another problem.

When a panel with "AutoHide" is resized it does not fire the events
Resize / SizeChanged if the size is smaller than MinSize.

To reproduce:
Create a winform app.
Add a dockingmanager with two panels.
Set MinSize for the left panel to 200.
Add a listbox to the right panel.
Add a handler for Resize / SizeChanged for the left panel.
In the handlers add:
 listbox1.Items.Add(dockingpanel1.Witdth.ToString());
Now run the app and make the left panel autohide.
Drag the panels "splitter".
Every time you release the splitter two listbox entries are generated.
Drag the panel smaller than 200 (it becomes smaller) - and no entries are generated!

Regards

Manfred
Julian Benkov
Telerik team
 answered on 12 Feb 2008
1 answer
190 views
On my Windows form, I have a RadDateTimePicker control.  When I first load the form, I'm retrieving data from our database, based on the value of a .NET ComboBox control, and populating the RadDateTimePicker control from a date column in the return result set.  If I then change the value in my ComboBox, which initiates a fresh hit to the database, and the date column is null, it clears the RadDateTimePicker control as I want it to.

The problem comes when I change the ComboBox back to the value it was when the form first loaded, forcing a retrieval of the original data.  The RadDateTimePicker control stays empty, even though the Value property has a valid date.

If I click the drop down arrow of the RadDateTimePicker control at this point, the text suddenly fills in with the correct date.  Here's the code I'm using:

// Create PMA object 
ProductMarketArea pma = new ProductMarketArea(); 
// Retrieve product data 
DataTable tbl = pma.GetRecordsByProductID(CurrentProduct.ID.Value); 
// Get specific PMA data. 
DataRow row = tbl.Select("MarketAreaID = " + CurrentMarketArea.MarketAreaID.ToString() + " And Expiration Is Null")[0]; 
// Populate PMA object with PMA data. 
pma.LoadFromDataRow(row); 
_ProductMarketArea = pma; 
 
EventHandler datesChanged = DatesChanged; 
rdpStartDate.ValueChanged -= datesChanged; 
rdpEndDate.ValueChanged -= datesChanged; 
 
// rdpStartDate and rdpEndDate are the two RadDateTimePicker controls 
if (pma.StartDate.HasValue) 
   rdpStartDate.Value = pma.StartDate.Value; 
else 
   rdpStartDate.Value = DateTime.Now; 
 
// PROBLEM SEEMS TO BE HERE.  END DATE STAYS VISUALLY EMPTY AFTER RECORD CHANGE 
if (pma.EndDate.HasValue) 
   rdpEndDate.Value = pma.EndDate.Value; 
else                 
   rdpEndDate.Value = rdpEndDate.MinDate; 
 
rdpStartDate.ValueChanged += datesChanged; 
rdpEndDate.ValueChanged += datesChanged; 

Boyko Markov
Telerik team
 answered on 12 Feb 2008
3 answers
81 views
Hi,

if I set ToolTipText in RadPanelBarGroupElement it works.
This means if I run the program it shows up the tooltip.
This is new (a fix I would say) in Q3 SP1.

But when I close the form (in VS) and open it again I get the following error messsage:

---------------------------

---------------------------
Error setting property "ToolTipText" in class "Telerik.WinControls.RadItem" to value "TestTT".

The error was:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

   bei System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)

   bei Telerik.WinControls.Design.RadObjectCustomPropertyDescriptor.SetValue(Object component, Object value)
---------------------------
OK  
---------------------------

Regards

Manfred

Boyko Markov
Telerik team
 answered on 12 Feb 2008
1 answer
169 views
Hi.
I use dropdownbutton in my application.I add items manulally with code.How can i remove a dropdownbutton item.Is there a way like FindByValue or FindByText?
Georgi
Telerik team
 answered on 11 Feb 2008
1 answer
95 views
Hi

I am using a RadGridView with an empty dataset, in which the user will enter a few rows of data.

Behaviour
The user clicks on "Add new row...", enters values in some of the columns and clicks on other controls on the form.  The new row is in a pending state, unless the user tabs out of it.

Behaviour
How can I programmatically "accept" the new row in the radgridview so that it gets added to the dataset?
Julian Benkov
Telerik team
 answered on 11 Feb 2008
3 answers
254 views
If I am doing a simple bar chart, how can I place a label Middle Center inside the bar and a label at the Top of the bar...?
Nikolay
Telerik team
 answered on 11 Feb 2008
10 answers
556 views
i'm sure this is an easy one, but i can't get it to work in design or runtime.

thanks...
joshuarivers
Top achievements
Rank 2
 answered on 09 Feb 2008
1 answer
113 views
is it coming Q3 SP1?
I still have unresolved problems with BooleanColumn (just reported with a support ticket)...

Thanks in advance,
Emanuele Savarese
Jack
Telerik team
 answered on 08 Feb 2008
1 answer
51 views
Hello,

after installing the Q3/2007 version my programm doesnt work any more.
I get the following error while the main form is loading. I dont`t  know why? When i put the RibbonBar in a new clear Project I don`t get an error.

Hardcopy

THX Daniel
Nikolay
Telerik team
 answered on 08 Feb 2008
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?