Telerik Forums
UI for WinForms Forum
3 answers
150 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
306 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
288 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
111 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
179 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
85 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
291 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.4K+ 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
1 answer
92 views
Hi Support,

I have 10 RadMaskedEditBox that use the same event handler on the KeyUp event. In my handler I need to know the name of the component it was called from.

private void radMaskedEditBox_KeyUp(object sender, KeyEventArgs e)
...

I would like to use something like that ((RadMaskedEditBox)sender).Name but it's not working since the sender is from type RadMaskedEditBoxElement and the Name property is empty.

How can I found the sender component name from the KeyUp event?

Regards,
Nadia
Peter
Telerik team
 answered on 14 Dec 2012
1 answer
128 views
Hi,

I am trying to get a RadRichTextBox to be automatically populated with the contents of a field from an Oracle database. I have set up the properties in the same way that I would for a regular Windows Forms Rich Text Box - by setting the DataBindings Text property to be the BindingSource followed by the field name.

This is working for a regular RichTextBox, however the RadRichTextBox remains empty.

I have attached a screenshot of the Properties window so you can see exactly what I've set.

Any ideas would be appreciated.

Thanks,
Ashley
Svett
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?