Telerik Forums
UI for WinForms Forum
1 answer
137 views

Hello Telerik Team,

I would like to know how I can add a UserControl in a ToolWindow. its not working for me like this:

The user control has a Panel and inside a Chart.

ToolWindow window = new ToolWindow();

window.controls.add(usercontrol);

How can I solve my problem?

Thanks very much,

Kind regards,

Alfonsina

Stefan
Telerik team
 answered on 10 Jul 2012
7 answers
144 views
Hi,

i try change appointmet text use AppointmentFormatting event but it is not working properly

    Private Sub RadScheduler1_AppointmentFormatting(sender As Object, e As Telerik.WinControls.UI.SchedulerAppointmentEventArgs) Handles RadScheduler1.AppointmentFormatting

        e.AppointmentElement.Text = "custom text"
    End Sub

appointment text: "date from" - "date to" custom text;summary
see the attached image
how to change it to "custom text"

scheduler settings:

Me.RadScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.Timeline
Me.RadScheduler1.GetTimelineView().ShowTimescale(Timescales.Months)
Me.RadScheduler1.GetTimelineView().GetTimescale(Timescales.Months).DisplayedCellsCount = 12

Thank You

Marek Kruk
Top achievements
Rank 1
 answered on 09 Jul 2012
1 answer
161 views
Hello!
I am using a RadMultiColumnComboBox. When i'm searching an item from datasource, i want to filter the combobox's elements. For example, when i search "ccc" in combobox's datagridview, i want the items to be filtered so that the datagridview will contain only the rows with "ccc". I attached a picture. Thank you!


Stefan
Telerik team
 answered on 09 Jul 2012
3 answers
195 views
I have a problem focusing the Telerik RadGridView by keyboard,

I need to accomplish the following :-

if the grid is empty it should add a new row and select the first visible row and column in edit mode
else
it should not add a new row but select the first visible row and column in edit mode.

I tried many currentrow, currentcell , isselected and beginedit() but to no avail :(


Stefan
Telerik team
 answered on 09 Jul 2012
3 answers
138 views
Good afternoon.
With the old RadListBox I could write code like this:
    _radListBox.Items.Sort(comparer)
with my custom comparer. How can achive this with the new RadListControl?

Thank you very much.
Gianfranco
Peter
Telerik team
 answered on 09 Jul 2012
3 answers
182 views
I'm currently using the grid.Rows.Add() method to add a new row when a particular event fires inside my application.

This works fine.

However, I am now trying to set the ForeColor of the row after I add it, but the VisualElement property is null, in the following code sample:
int rowIdx = traysGrid.Rows.Add( 
                        tray.TrayID, tray.Barcode, 
                        dataContext.Locations.Where(loc => loc.LocationID == trayHistory.LocationID).First().Name 
                        , 
                        trayHistory.ArrivalDate, 
                        AuthenticationController.GetLoggedInUserName(), 
                        tray.Notes 
                        ); 
GridViewDataRowInfo row = traysGrid.Rows[rowIdx]; 
 
traysGrid.GridElement.BeginUpdate(); 
row.VisualElement.BackColor = Color.Green; 
traysGrid.GridElement.EndUpdate(); 
 

I have used this method successfully when inside a foreach loop, but using it doesn't seem to work as above.

Any advice or ideas?

Thanks
Jack
Telerik team
 answered on 09 Jul 2012
5 answers
330 views
Hello,

Is it possible to have the AutoCompleteText box display mult-columns, eg
USD  |  US Dollars
GBP  |  British Pounds
EUR  |  Euro's

Also is it possible to have the auto complete work on both columns so I can start to type GBP or  Briti... and it will work as per single items?

Thanks

Terry
Svett
Telerik team
 answered on 09 Jul 2012
1 answer
185 views
I just upgraded to the latest version 608.40 and there seems to be a change in the animatedpropertysettings. What changes do I have to make adapt? 

Thanks, Karl
private void ZoomItem(RadButtonElement button)
{
    shouldZoomSelectedItem = false;
    Size size = this.radCarousel1.CarouselElement.ItemsContainer.Size;
 
    CarouselContentItem contentItem = (CarouselContentItem)button.Parent;
 
    zoomedItem = contentItem;
 
    button.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
 
    currScaleFactor = Math.Min(
        ((float)size.Width) / button.Size.Width / 2f,
        ((float)size.Height) / button.Size.Height / 2f);
 
    AnimatedPropertySetting scaleChange = new AnimatedPropertySetting(
        RadElement.ScaleTransformProperty,
        new SizeF(currScaleFactor, currScaleFactor),
        5,
        20
        );
 
    scaleChange.AnimationFinished += new AnimationFinishedEventHandler(scaleChange_AnimationFinished);
 
    SizeF offset = new SizeF(
        (size.Width - contentItem.Size.Width * currScaleFactor) / 2f - contentItem.Location.X,
        (size.Height - contentItem.Size.Height * 0.50f * currScaleFactor) / 2f - contentItem.Location.Y);
 
    AnimatedPropertySetting positionChange = new AnimatedPropertySetting(
        RadElement.PositionOffsetProperty,
        offset,
        5,
        20
        );
 
    scaleChange.ApplyValue(contentItem);
    positionChange.ApplyValue(contentItem);
}
Jack
Telerik team
 answered on 09 Jul 2012
3 answers
186 views
Hi,

I have a RadDropdownlist which should allow the user to type in only numeric values in it. Validations in Key_Down and Key_Press event does fire but it is not working. I have similar validations for normal textboxes and it is working.

Is there are any ways to restrict the user to type only numeric values in RadDropDown?

private bool nonNumberEntered = false;
 protected void radDDLAccountNo_KeyDown(Object sender, KeyEventArgs e)
        {
            ValidateNumericField(e);
        }
        private void radDDLAccountNo_KeyPress(Object sender, KeyPressEventArgs e)
        {
            KeyPressEvent(e);           
        }
private void ValidateNumericField(KeyEventArgs e)
        {
            nonNumberEntered = false;
            if (e.KeyCode < Keys.D0 || e.KeyCode > Keys.D9)
            {
                if (e.KeyCode < Keys.NumPad0 || e.KeyCode > Keys.NumPad9)
                {
                    if (e.KeyCode != Keys.Back)
                        nonNumberEntered = true;
                }
            }
            if (Control.ModifierKeys == Keys.Shift)
                nonNumberEntered = true;
        }
        private void KeyPressEvent(KeyPressEventArgs e)
        {
            if (nonNumberEntered == true)
            {
                e.Handled = true;
            }
        }
   

Thank you in advance for the help.

Stefan
Telerik team
 answered on 09 Jul 2012
1 answer
187 views
I have read on this forum other users asking for the possibility of showing summary on a fixed footer at grid bottom. On version Q2 2012 there is no footer. Right? When we will have it?
Thanks
Stefan
Telerik team
 answered on 09 Jul 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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?