Telerik Forums
UI for WinForms Forum
3 answers
138 views
Dear Friends,

1.We have MDI form in our project. when we open a child form and on maximizing it,we are getting address bar with improper design(all min,max and close buttons in address bar are with double lines). and unwanted another address bar is getting opened.
2.If we open 2 child forms in MDI,second child form is getting first child's text if both are  maximized.


I am providing screen shot for reference.
Please have a look on it and help us as soon as possible.

Thanks,
Regards,
Pradeep
Martin Vasilev
Telerik team
 answered on 11 May 2010
1 answer
76 views

Good morning.

            Regarding this problem, I tried to use your new RadControls for WinForms Q1 2010. If you try with the same test project as above, you will notice that the vertical scrollbar doesn’t appear, as before. The only improvement is that now, when you click on a groupitem, the vertical scrollbar appears and doesn’t disappear anymore, but when you programmatically add groupitems to the radPanelBar, again no vertical scrollbar is displayed. Any suggestion? Thank you very much.

Nikolay
Telerik team
 answered on 11 May 2010
1 answer
146 views
I'm using RadControls for WinForms Q3 2009 SP1, and I'm running Windows XP.

I've dropped a RadTabStrip and a RadListBox onto a simple form.  I've added sample items to the RadListBox and a few sample tabs to the RadTabStrip .  Both controls are set to use the ControlDefault Theme.

When the form is displayed, I can select an item in the RadListBox and it is highlighted.  If I drag the mouse over the other items, these too become highlighted.  There is no way to distinguish the 'selected' item visually.  If I pass the mouse back over the list items, the highlighting changes; even so, it would confuse me as a user.  The RadListBox still seems to have multiple items selected.

The RadTabStrip exhibits similar behavior.  I can select a Tab and it will be highlighted.  If I select another Tab, the original Tab still appears highlighted, unless I drag the mouse over it.

I'm aware that I can modify this behavior using VisualStyleBuilder.  But my gut feeling is that I'm missing something; I'm wondering if I'm the only one who thinks the default behavior is odd.  Is this something that looks and acts differently in different contexts (e.g. the app running in Vista or something)?

Regards,
John
Deyan
Telerik team
 answered on 11 May 2010
1 answer
117 views
Hi ! I hope this post will have its place here...

I realised a tree view in asp.net, and now I need to do the same for a winform... the matter is that there aren't the same properties.

For example I am using these methods in the asp version :
private void Filter() 
        { 
            try 
            { 
                LoadAllNodes(); 
                if (accountTextBox.Text.TrimEnd().Equals("*") || string.IsNullOrEmpty(accountTextBox.Text.TrimEnd())) 
                    return
 
                //Get all nodes matching the filter 
                List<RadTreeNode> matchingNodes = new List<RadTreeNode>(); 
                IList<RadTreeNode> nodesToFilter = ((List<RadTreeNode>)radTreeView.GetAllNodes()).FindAll(delegate(RadTreeNode rdTNode) { return rdTNode.Tag.Equals("Account"); }); 
                for (int i = 0; i < nodesToFilter.Count; i++) 
                { 
                    if (nodesToFilter[i].Text.StartsWith(accountTextBox.Text.TrimEnd(), StringComparison.OrdinalIgnoreCase)) 
                        matchingNodes.Add(nodesToFilter[i]); 
                } 
 
                IList<RadTreeNode> allNodes = radTreeView.GetAllNodes(); 
                for (int i = 0; i < allNodes.Count; i++) 
                { 
                    if (IsToFilter(allNodes[i], matchingNodes)) 
                        allNodes[i].Remove(); 
                } 
            } 
            catch (Exception ex) 
            { 
                throw ex; 
            } 
        } 

private bool IsToFilter(RadTreeNode radTreeNode, List<RadTreeNode> matchingNodes) 
        { 
            if (radTreeNode.Text.StartsWith(accountTextBox.Text.TrimEnd(), StringComparison.OrdinalIgnoreCase)) 
                return false
 
            foreach (RadTreeNode item in matchingNodes) 
            { 
                if (radTreeNode.IsAncestorOf(item)) 
                    return false
            } 
 
            return true
        } 

But for winform version there is no method "GetAllNodes()" for RadTreeView, and I have the same problem with "IsAncestorOf".

Could you help me and explain me which property/metho I can use without changing all my code ?

Thanks a lot !

Jean
Victor
Telerik team
 answered on 11 May 2010
3 answers
197 views
Me Again!!
I don't know if i'm doing something wrong, or if this is a bug. 
I am trying to make my scheduler only show a given appointment.
I wanted to display the hour before and after the appointment. To do so I am using this code:

private void showAppointment(DateTime dt1) 
            rsAppointments.ActiveView.StartDate = Convert.ToDateTime(dt1.ToShortDateString()); 
            ((SchedulerDayView)rsAppointments.ActiveView).RulerStartScale = dt1.Hour - 1; 
            ((SchedulerDayView)rsAppointments.ActiveView).RulerEndScale = dt1.AddMinutes(Convert.ToDouble(appointDuration)).Hour + 1; 

It works fine the first time its called, however after its been called a few times, it starts showing more and more time and will show the 3-6 hours before the appointment. 

Any suggestions?

Thanks!
Dobry Zranchev
Telerik team
 answered on 11 May 2010
5 answers
293 views
Hi!
I am new to RadTools, so feel free to laugh. I am using the RadScheduler, however I don't want to use the context menu for adding a new appointment. I would just like to be able to highlight the area and double click (or another shortcut key).   I cannot seem to figure out how to get the highlighted time slot to save the appointment. 

Any suggestions?

Thanks!
Dobry Zranchev
Telerik team
 answered on 11 May 2010
6 answers
376 views
How would one override the context menu when you right click on the top caption bar of a floating dock window.
Adrian
Top achievements
Rank 2
 answered on 11 May 2010
3 answers
243 views

Hi,

I have a grid which I populate using the below method

 

this.gvSheet.MasterGridViewTemplate.LoadFrom(q.ExecuteReader());

            for (int i = 0; i < gvSheet.MasterGridViewTemplate.Columns.Count; i++)

            {

                this.gvSheet.MasterGridViewTemplate.Columns[i].Width = 150;

                this.gvSheet.MasterGridViewTemplate.Columns[i].WrapText = false;

            }

 

I then add three checkbox columns using the below

GridViewCheckBoxColumn cb1 = new GridViewCheckBoxColumn();

            cb1.UniqueName = "ucb1";

            cb1.HeaderText = cb1";

            cb1.Width = 150;

            cb1.WrapText = false;

            cb1.ReadOnly = false;

            this

 

.gvSheet.Columns.Add(cb1);

 

 

            this.gvSheet.Columns.Add(cb2);

 

 

            this.gvSheet.Columns.Add(cb3);

 

 

 

 

I’m trying to get the values of these three GridViewCheckBoxColumn on the gvSheet_ValueChanged(

I’ve tried

gvSheet.CurrentRow.Cells["ucb1"].Value.ToString() and gvSheet.CurrentRow.Cells["cb1"].Value.ToString() and I get nothing back.

 

What I’m trying to achieve is if I select cb1 and cb2 column I should get true, true, false returned. I have some business logic which works off the values of these three check boxes.

 

Any help or pointers would be great.

 

Thanks

Karl
Top achievements
Rank 1
 answered on 10 May 2010
1 answer
505 views
Hi,

I have a winforms radGridView with a group summary row that sums various fields.  From reading other posts I understand that to format the summary row I need to use the viewCellFormatting event.  My question it why does the text (numeric data) not get aligned to the middleRight by the following code?

 private void rgvFinancials_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
            if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
            {
                float f = 8.25f;
                                
                e.CellElement.Alignment = ContentAlignment.MiddleRight;
                e.CellElement.Font = new Font("Microsoft Sans Serif", f, FontStyle.Bold, GraphicsUnit.Point);
                e.CellElement.UpdateLayout();
            }
        }



The Font size and bold properties are being set correctly but the text alignment appears to be centered not to the right.





Jack
Telerik team
 answered on 10 May 2010
5 answers
518 views
Hi there,

My windows application includes Checked List box and Picture box in the forms. I am trying to migrate my application using RAD controls. I have looked into the Telerik RAD tool box but i couldnt find the Checked list box and Picture box. Could you please assist where could i find these controls.
Could you please provide few samples/Links which could help me migrate the controls.

Also could you please let me know how to handle Checked events in Telerik RadDatagridView check box column.

Thanks,
Prasad.
Svett
Telerik team
 answered on 10 May 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?