Telerik Forums
UI for WinForms Forum
4 answers
128 views
Hi,

still messing around with the problem with "ingore minsize"
http://www.telerik.com/community/forums/thread/b311D-bbthde.aspx

I tried to build a "brute force workaround" by disabeling the user to resize the panel when in AutoHide.

I set FixedSplitters (just to check) to true on my docking manager.
This works so far as if with that setting the splitter can no longer be moved.

After setting the left panel to "AutoHide" - I can change it's size :(

To disable AutoHide is not possible since some users have "small" screens where they have to AutoHide to get enough working space in the right panel.

By the - this would bring me to Forms.SplitContaier - which does all the things without errors / bugs --- except the "AutoHide".

It seems to me, as if the DockingManager has a lot of serious problems.
By playing around with it just for a few days I failed to build a very simple layout (Explorer) with some simple settings (MinSize, no ContextMenu, AutoHide).

Since my project has to be finished - it looks as if it is not really possible with this control.
I guess to create my own thing based on "SplitContainer" is less work than trying to overcome the bugs.


Regards

Manfred
Julian Benkov
Telerik team
 answered on 12 Feb 2008
1 answer
95 views
Hi,

in the last weeks I reported a lot of errors with the controls.

I got in serveral cases the information that this will be fixed with SP1.

BUT - I see no difference (no fix) at all.
So my idea - did'nt I correctly install SP1?

Telerik.WinControls says: v2.0.50727 -- 5.0.3.0.
So do all used controls.

Is this SP1??

Regards

Manfred
Nikolay
Telerik team
 answered on 12 Feb 2008
5 answers
137 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
259 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
219 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
102 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
206 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
113 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
287 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
625 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
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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?