Telerik Forums
UI for WinForms Forum
7 answers
735 views
I am using the radMasked editBox for currency entry and am having a few issues.
Mask = c
MaskType = Numeric

1. Negative values are not handled nicely.
   The only way to stop a currency field being negative is to press the - sign.
   You should be able to  a. Most importantly select the - sign and press delete or backspace
                                        b. Select all the text including the - sign and type over it (currently the new value is still negative)
                                        c. press the + sign should make it positive

2. Is there a way to stop the user being able to enter negative values as we don't want them most time, and all i can think to do is try to stop the - keypress before it is filtered to the control.

3. Another important issue is typing over existing values
if you have a value of $800.12 entered and you select just the 8 and change it to another number lets say 7 the result is $7.12, it took out the 0's following the 8.
This is potentially hazardous, a user could easily rush through and not notice the 0's have been removed and then someone could be out quite a bit of money.
Richard Slade
Top achievements
Rank 2
 answered on 26 Nov 2010
6 answers
182 views
Hello, i have this problem that i load the data on separate threads for each template, so when i initialize the datagrid, the caption of my tags have the text loading, and when the data is loaded i want to change it to its original text. The problem is that if i have my row expanded the caption wont change, unless i open another form and then get back to my form again.
Can you please help me on what should i do to solve this? maybe i am missing something.

Thanks for your help and sorry for any error my English may have,
Best regards, Rui Silva
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Nov 2010
15 answers
769 views
i'd like to display two values with the Telerik WinForm Progress bar; one value being the progress of a single action, and the second being the progress of all actions. For example, we're sending 5 emails, and performing an operation on each...one value is the progress of the operation of the individual email and the second is the overall progress.

Is this possible? Is there sample code available? I've looked at the documentation and demo app, but need more info.

Thanks in advance,

Gene
Richard Slade
Top achievements
Rank 2
 answered on 25 Nov 2010
10 answers
912 views
I'm trying to create a master detail view in a radgridview component for data from database. We use a component for database which returns a dataset.
I have RadControls for WinForms Q2 2010 SP2. The tutorial tells me to open the MasterGridviewTemplate from the properties window, but in my properties for radgridview  that property doesn't exist. What am i missing?
Richard Slade
Top achievements
Rank 2
 answered on 25 Nov 2010
12 answers
498 views
i m working on win froms
i need the code for the design attached
plz help me
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Nov 2010
3 answers
257 views
C#.
I have 2  RadListBoxes.( Assign/Unassign process) 
When I Assign items (add items to the right listbox and remove them from the left listbox).
If Assign ListBox has at least 1 item I have to enable contextMenu or radcontextMenu  for this ListBox. 
So when there is at least one item user can right click and open a response window to be able to edit some details. 

My problem is that I can not assign dynamically contextMenu.
At the end of the code to assign the item I wrote:
if (radListBox_SelectLOBs.Items.Count > 0)
{
  radListBox_SelectITMs.ContextMenuStrip = contextMenuStrip_VF; 
}
but nothing happened on the right click.
Menu appears only if I specify in the property of RadListBox (RadContextMenu) at the beginning,and not using the code.
Is there an option to do this from the code?
Thank you,
Victoria.
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Nov 2010
1 answer
62 views
Hi Telerik Team,

We have a radgridview, to that radgridview we added a childgridview template.
Then we tried to open the property builder of the radgridview from the smart tag ,but  visualstudio 2010 gets closed.
We found no problem when childgridview template is not there.
Actually we want to have different colors for Headers for parent and child  templates.
So, kindly help us in this regard at the earliest.

Thanking you.
Stefan
Telerik team
 answered on 25 Nov 2010
2 answers
195 views
I want to change the backcolor of a maskedit control to SystemColors.Control

I do not want to use themes at all.
I found some sample code and it works with all colors except for SystemColors.Control.

To prove this I just blended the Control backcolor slightly and it works correctly then.
This is not a critical issue as I have found a work around but this is quite tricky to do a took me like about an hour to figure it out,
Changing a controls back color is something that should be simple.
I was expecting to turn the EnableTheming = False and then just be able to change a textbox.Backcolor property and that is all.
But I would be happy to have this SystemColors.Control issue fixed.

Here is some sample code I have made to show the issue,
I'm using a wrapper class so i can add controls the way i want them to behave with out setting lots of individual properties everytime.

Public Class RadMaskedEditBoxX
    Inherits Telerik.WinControls.UI.RadMaskedEditBox

    Public Sub New()
        Me.EnableTheming = False
    End Sub

    Protected Overrides Sub OnReadOnlyChanged(ByVal e As System.EventArgs)
        MyBase.OnReadOnlyChanged(e)
        If Me.ReadOnly Then
            SetColor(SystemColors.Control)
        Else
            SetColor(SystemColors.Window)
        End If
    End Sub

    Public Sub SetColor(ByVal clrColor As Color)

        MyBase.MaskedEditBoxElement.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid
        MyBase.MaskedEditBoxElement.Fill.BackColor = clrColor
        MyBase.MaskedEditBoxElement.Border.ForeColor = SystemColors.WindowFrame
       
        '--------------------------------------------------------------------
        ' This Line does not work correctly with the Control Color, it does with any other color.
        ' When set to Control it still blends itself with white so is some light grey color 
        '(very hard to tell difference from white (non-readonly) textbox).
        MyBase.MaskedEditBoxElement.BackColor = SystemColors.Control
        ' -------------------------------------------------------------------
        ' This is my fix for this problem, To blend the color so it is not = SystemColors.Control but very close
        'MyBase.MaskedEditBoxElement.BackColor = modShared.BlendColor(SystemColors.Control, Color.White, 1)

    End Sub

    Public Overrides Property ThemeClassName() As String
        Get
            Return GetType(Telerik.WinControls.UI.RadMaskedEditBox).FullName
        End Get
        Set(ByVal value As String)
            MyBase.ThemeClassName = value
        End Set
    End Property

    Public Function BlendColor(ByVal p_Color1 As Color, ByVal p_Color2 As Color, ByVal p_blend As Integer) As Color

        Try

            Dim r As Single, g As Single, b As Single
            Dim dr As Single, dg As Single, db As Single

            dr = (p_Color2.R - p_Color1.R) / 255
            dg = (p_Color2.G - p_Color1.G) / 255
            db = (p_Color2.B - p_Color1.B) / 255

            r = p_Color1.R
            g = p_Color1.G
            b = p_Color1.B

            BlendColor = Color.FromArgb(r + (dr * p_blend), g + (dg * p_blend), b + (db * p_blend))

        Catch

            Try
                Dim r As Single, g As Single, b As Single
                Dim dr As Single, dg As Single, db As Single

                dr = (p_Color1.R - p_Color2.R) / 255
                dg = (p_Color1.G - p_Color2.G) / 255
                db = (p_Color1.B - p_Color2.B) / 255

                r = p_Color2.R
                g = p_Color2.G
                b = p_Color2.B

                BlendColor = Color.FromArgb(r + (dr * p_blend), g + (dg * p_blend), b + (db * p_blend))
            Catch
                If p_blend < 127 Then
                    BlendColor = p_Color1
                Else
                    BlendColor = p_Color2
                End If
            End Try

        End Try

    End Function

End Class

Scott
Top achievements
Rank 1
 answered on 25 Nov 2010
4 answers
248 views
Hi,

I am working on RadGridView and catching the events based on selection of some cells with SelectedCellsChanged.
Every click on a cell should generate a RadGridView dynamically based on the content of the clicked cell. The format of all the generated RadView will be the same.

I can get the content of the cell clicked in the event handler function. My question is how to generate RadGridView dynamically and to use the values from the event handler function. In the attached file, I have shown the cell and just below in DetailedData groupbox I need to generate the RadGridView.

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 24 Nov 2010
12 answers
572 views
hello all

Please guide me,how can i first bind the radgridview with datatable and then making one of its column as GridViewMultiComboBoxColumn.

Warm regards
Neha
Victoria F
Top achievements
Rank 1
 answered on 24 Nov 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?