Telerik Forums
UI for WinForms Forum
1 answer
90 views
I hope this is the right forum for this.  I posted a separate thread for

It would be really nice if the RadMaskedEdit control provided the ability to implement custom behavior based on fields where a field is defined as the region between two mask delimiter characters.   That is, say my mask is "##:##:##".  Then my delimiter is the colon (:) and there are three fields.

I'd like to be able to extract or replace any of the three fields.  Something like this method:
Get/SetFieldText - Get/Set text in the field that includes the current SelectionStart position.

Alternatively, be able to pass the position you want the field for (e.g. GetFieldText(0) for getting the text in the 1st field).  I would think that ideally the integer represent the field# (e.g. above I could say either GetFieldText(0), GetFieldText(1) or GetFieldText(2) to get field 1, 2 and 3 respectively.

It might also be useful to expose a Get/SetFieldPos method to get the field # for the current selection start.

Note: I would think that there would need to be some ability to warn the user if the selection spans multiple fields. Maybe raise an exception or make this an optional property to indicate (IgnoreIfSpanningFields - probably not the ideal solution but you get the idea).

Having these methods, I could override the KeyUp/KeyDown behavior to whatever I wanted.  For example, if I knew I had numbers in a given field, I could use KeyUp/Down to increment/decrement the value by 1 and Shift+KeyUp/Down to incr/decr by 5.

Georgi
Telerik team
 answered on 02 Jul 2010
2 answers
197 views
Hi,
If the dropdown of a radcombobox is displayed, when the user press the backspace key the dropdown is closed.
How I can disable/override this behavior? I want the dropdown to remain visible .

Thank you
Lighthouse Developer
Top achievements
Rank 1
 answered on 02 Jul 2010
1 answer
130 views
I have a gridview that I am trying to send updates to a database from. The problem I am having is that if the user does not select a different row than the row being edited in the grid before trying to update the database, the changes are not sent to the database. What am I missing?
Daniel
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
85 views

Hi,
I have two comboboxs in my Grid and i have 2 tables which stores bank name in the 1st table and the bank branch in the second table.i want that when i select bank name in the 1st combobox it will shows me the assigned branches for the selected bank in the 2nd Combobox in the Grid?

Which means every row will have different data in the 2nd Combobox

Is it possible? Please reply as soon as possible

Thanks in advance

Svett
Telerik team
 answered on 01 Jul 2010
1 answer
200 views
Hi, I have used the "RadSlider" in a WPF app, and have starting re-coding in a straight up Windows app - the RadTrackbar doesn't seem to give me the ability to have a range like the WPF control does.  I need to have two thumbs, so the user can slide the track bar along a range of values.  Can I do this with this control?
Boryana
Telerik team
 answered on 01 Jul 2010
1 answer
965 views
Hello All,

Currently I am using a rad gridview and the themeName of the gridview is Control Default. When the user selects a row, it turns into orange color.

May I ask how do I change the color of the selected row to green? I have tried exploring the options when I click on "Edit UI Elements" of the gridview but I do not seem to find an option that allows me to do this.

Could anyone please advise me?

Thank you.

Dave Tan
Svett
Telerik team
 answered on 01 Jul 2010
1 answer
295 views
Hi everybody,
I'm new in telerik control. When i read code in the forum:
Telerik.WinControls.UI.SplashForm splashForm = new Telerik.WinControls.UI.SplashForm();
 splashForm.BackgroundImage = Resource.splash; //The name 'Resource' does not exist in the current context
 splashForm.Show();

and i can't found the Resource class in line 2. Where can i found it?

Boryana
Telerik team
 answered on 01 Jul 2010
1 answer
158 views
Hi,

is it possibly to implement a GridViewSummaryItem with a AggregateFunction like "Sum / 4.0" ?

Thanks

Edit: I solved the problem.

I implemented a derived class from GridViewSummaryItem and overrided void EvaluateAggregate(GroupSummaryEvaluationEventArgs e)
Alexander
Telerik team
 answered on 01 Jul 2010
1 answer
184 views
Hi,
   i have a problem canceling the ActiveWindowChanging events.
When i enter in this event i check if the last ActiveWindow is updated. If not i ask user to chose to save, or not, data to db.
If user chose to save, i update data in db, and proced changing the Active Window, as user wants. But when i save data, if i get an exception, i send a msgbox to user, and i want to "reactivate" the last ActiveWindow. In this way, the user can edit data to complete it or discard it.
How can i cancel the window changing?
I try with e.cancel = true, but the program loops :(
    Private Sub RadDock1_ActiveWindowChanging(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.Docking.DockWindowCancelEventArgs) Handles RadDock1.ActiveWindowChanging 
        ' Salvo il Layout del tab che sto chiudendo 
        For Each c As Control In RadDock1.ActiveWindow.Controls 
            Select Case c.GetType.ToString 
                Case "Commesse" 
                    Dim mycontrol As AnagraficaCommesse = TryCast(c, AnagraficaCommesse) 
                    mycontrol.SaveGridLayout() 
                Case "Articoli" 
                    Dim mycontrol As Commesse_Articoli = TryCast(c, Commesse_Articoli) 
                    mycontrol.SaveGridLayout() 
                    If mycontrol.RadGridView1.IsInEditMode() Then 
                        If MsgBox("Un record non Ã¨ stato salvato! Si desidera salvarlo ora?", MsgBoxStyle.YesNo, "Salvare i dati?") = MsgBoxResult.Yes Then 
                            Try 
                                mycontrol.RadGridView1.EndEdit() 
                                mycontrol.UpdateDataSource() 
                            Catch ex As Exception 
                                MsgBox("Si Ã¨ verificato un problema durante il salvataggio dei dati. Controllare che i dati inseriti siano corretti", MsgBoxStyle.Critical, "Errore"
                                e.Cancel = True 
                            End Try 
                        Else 
                            mycontrol.RadGridView1.EndEdit() 
                        End If 
                    End If 
            End Select 
        Next 
    End Sub 

I'm sorry if code is not clear; this is only for understand if i wrong something in it, with the e.cancel = true.

Thanks
Martin Vasilev
Telerik team
 answered on 01 Jul 2010
1 answer
136 views

Hi, i'm having trouble trying to export the grid. Whenever i export the data i only get the visible part of it. I cannot find to much info about how i have to do it. Could someone please help me?

Regards.

Martin Vasilev
Telerik team
 answered on 01 Jul 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
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?