Telerik Forums
UI for WinForms Forum
2 answers
165 views
Hi guys,
beforehand, i use my radtreeview without binding it to another object.
It works very nice, and i also use drag & drop facility, is very userfriendly.
No additional code needed to use this drag & drop.

and then, i use a radtreeview and bind it to datatable. the datatable has hierarchy inside it.
I use parentmember and childmember property and it works very nice.

but, when i try to use drag & drop between nodes, it becomes weird.
e.g : 
i've 5 node, A, B, C, D, E
when i try to move node C after the node A (become the second node), it move to the last node (after E).
the new position not exactly what i want.

i open the Telerik demo application for Winforms, with the chapter Treeview/Self Referencing, and i also find the same condition with my situation.
can anyone explain me about this ?

thx alot for your attention, sorry if my english is not good enouh....
Howard
Top achievements
Rank 1
 answered on 18 Dec 2012
3 answers
221 views
Hi,

Your help manual said "You need not call merge method if you want to use menu merge in a MDI application. RadMenu automatically discovers that it is placed in a child MDI form."
 But, RadDock in my application can not merge child menu atumatically.
Please, show me how to merge menu of child form in menu of parent form.

Jaehong.
Boryana
Telerik team
 answered on 17 Dec 2012
3 answers
193 views
Hello,

When you assign negative number to the textbox control  and set the property RightToLeft to true,
the minus sign appears in the right side instead of the left side as you can see at the attach image.
How can I fix it?

Thanks,
Nikolay
Telerik team
 answered on 17 Dec 2012
2 answers
342 views
Hi,

We are changing our existing application to use RadForm and other Telerik controls to make it more UI appealing. But, I run into a problem. We had used windows UserControl very widely and now it seems like Telerik doesn't have such control that can replace windows UserControl. Could you please help me finding out some solution to this problem?

Thanks in Advance,
Prashant
Prashant
Top achievements
Rank 1
 answered on 17 Dec 2012
2 answers
332 views
Hi, guys.
I am really sorry if I am asking something that is already is answered. But I swear I tried to search for it using Google and internal forum search.

Ok, I am using RadListView control in  ListViewType.IconsView view. And I am placing my items into groups and I do show groups.

It all started when I placed many items to the list. I immediately saw that the list is displayed with vast scroll and user see only the top of the list and only the first group. So I decided to collapse all groups when I load my items into list.
/// <summary>
/// Collapses all groups in channel pair list
/// </summary>
private void CollapseAllListGroups()
{
    foreach (var group in PairControlList.Groups)
        group.Expanded = false;
}

By the way, if it is not the best way to do so - you can tell me, because I was looking for some function like "Collapse all groups" and didn't find it. If I missed it - tell me, if not - it would be good to have one already implemented for RadListView control.

Oh.. back to things. My groups all appeared collapsed, and then I saw that it is hard for user to decide where to go, since some groups might be empty and some may have hundreds of items. So, what I want to do is to display the count of items in each group on the group item. (See attached picture)
I didn't found how to do such a thing. I believe that it has to be built in functionality of  group item in RadListView. Again, if I've missed it - just tell me.
And I tried to implement it, but no success...  was thinking about changing group item text on VisualItemCreating event, but at the same time I may not know the number of items that will be placed to each group... and items will be removed/added to the groups later.

Best regards
Artem
Top achievements
Rank 1
 answered on 16 Dec 2012
1 answer
145 views
 private void gvFiles_RowFormatting(Object sender, RowFormattingEventArgs e)
        {
            if (e.RowElement.RowInfo is GridViewDataRowInfo)
            {
                //mandatory conditions
                if ((string)e.RowElement.RowInfo.Cells["OrderPay"].Value == "1" && e.RowElement.RowInfo.Cells["FID"].Value == DBNull.Value)
                {
                    //if the "Extended" nothing is written
                    if (e.RowElement.RowInfo.Cells["Extended"].Value.Equals(DBNull.Value))
                    {
                        //then to the current date add 14 days and to compare the date in "DateEnd".
                        if (DateTime.Now.AddDays(Properties.Settings.Default.WarningDays) >= Convert.ToDateTime(e.RowElement.RowInfo.Cells["DateEnd"].Value))
                            //if it is greater than or equal, display a red line.
                            e.RowElement.ForeColor = Color.Red;
                    } //otherwise, if the "Extended" is not equal to zero
                    else if (!e.RowElement.RowInfo.Cells["Extended"].Value.Equals(DBNull.Value))
                    {
                        //then compare with segdonyashney date have "Extended" and "DateEnd".
                        if (DateTime.Now.AddDays(Properties.Settings.Default.WarningDays) >= Convert.ToDateTime(e.RowElement.RowInfo.Cells["DateEnd"].Value) &&
                            DateTime.Now.AddDays(Properties.Settings.Default.WarningDays) >= Convert.ToDateTime(e.RowElement.RowInfo.Cells["Extended"].Value))
                            e.RowElement.ForeColor = Color.Red;
                    }
                    else
                        e.RowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
                }
                else
                    e.RowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
            }    
        }

It works.
But when you press the grouping and gruppiruesh on a particular column, it starts to produce the correct lines in red and those that it should be allocated.
Moreover, hide and reveal to the grouping and each time he paints in red color different rows.

And more.
In the GridView I have built a hierarchy. After grouping near the rows, press the + to see the subitems, instead udlenit write down, it hides all the items below. Shown.

1 - Normal GridView
2 - After grouping the first element is painted red, although it should not be released under the terms of
3 - If during the press groups see subitems, then the rows disappear from the bottom somewhere O_O
Nikolay
Telerik team
 answered on 15 Dec 2012
2 answers
210 views
Hello, I'm Chuki2 and I new in here.

I have create a custom form from scratch. Usually when we click right mouse, it will show "new appointment" then it will open form Edit Dialog right? How to do if when user click "new appointment" then it will open my custom form?

Sorry if I ask. But I have spend many hour to looking answer but still not found. Hope someone can help me to resolved this problem.

Thank again.
Chuki2
Top achievements
Rank 1
 answered on 14 Dec 2012
3 answers
116 views
Hi there,

we wanted to download the trial for a colleague of mine, but since yesterday the download is not available. When will it be available again, please?

Kind regards!
Fabian
Nikolay
Telerik team
 answered on 14 Dec 2012
4 answers
318 views
Hi 

I am using desktopalert control in my windows form. I want to know how I can redirect to a new page on clicking the desktopalert (by clicking anywhere on the desktopalert or on the captiontex or on the caption image).

Also I want to know how can I make this application which would wake up every x minutes and check our database for some condition and display the desktopalert.

Thanks
VIJESH
Top achievements
Rank 1
 answered on 14 Dec 2012
1 answer
1.5K+ views
HI,

I was wondering how to change background color of whole RadGridView, i'm using C#.

Cheers
Anton
Telerik team
 answered on 14 Dec 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)
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
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
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?