Telerik Forums
UI for WinForms Forum
1 answer
473 views

I have a from with a number of RadButton elements each of which contains a square Image.

When the application is maximized I want all of the images to remain square when the elements are resized.

Can I re-adjust the sizes after the RadButton elements are resized?

If not, can I lock the aspect ratio of the Images so that resizing the RadButton elements does not distort them?

Stefan
Telerik team
 answered on 07 Jul 2015
1 answer
184 views

I am having an issue with the filter option crashing with radgridview.

To reproduce, create a radgridview as I describe below.

Run the program

Quickly click around in the cells of the table a few times, making sure to drag your mouse a bit so to select a few rows on some of the clicks.

Then quickly click the filter. (sometimes takes a few tries)

I get the following error

 

System.NullReferenceException: Object reference not set to an instance of an object. 

   at Telerik.WinControls.UI.GridRowBehavior.DoMultiFullRowSelect(GridCellElement currentCell, Point currentLocation)
   at Telerik.WinControls.UI.GridRowBehavior.DoMouseSelection(GridCellElement currentCell, Point currentLocation)
   at Telerik.WinControls.UI.GridRowBehavior.ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)
   at Telerik.WinControls.UI.GridRowBehavior.OnMouseMove(MouseEventArgs e)
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseMove(MouseEventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at BeaconQuerySource.Program.Main(String[] args)

 

To create the grid do the following.

 Make a RadGridView with the following options (not sure if all are important but the filter and multiselect are) 

this.gridConnectedSessions.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;

this.gridConnectedSessions.MasterTemplate.EnableAlternatingRowColor = true;
this.gridConnectedSessions.MasterTemplate.EnableFiltering = true;

this.gridConnectedSessions.MasterTemplate.MultiSelect = true;

(leave the rest as the default options)

Add 3 columns to the grid

Add 5 rows of data to the grid (I used the following)

radGridView1.Rows.Add("test1","test1","test1");
radGridView1.Rows.Add("test2", "test2", "test2");
radGridView1.Rows.Add("test3", "test3", "test3");
radGridView1.Rows.Add("test4", "test4", "test4");
radGridView1.Rows.Add("test5", "test5", "test5");

 

Any help would be appreciated, thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jul 2015
11 answers
834 views
Hello

I'm actually meeting a problem with Telerik control disposing, using the Q3 2010.3.10.1109.

I joined a screenshot showing an Ant Profiler Analysis, after we disposed manually all our Telerik Controls.

Actually, some RadPropertyValues and others things are not disposed.
Maybe We are doing something wrong while disposing.

Can you pelase tell is where these RadPropertyValues are coming from, and if it's possible to dispose it as all others telerik resources on the screenshot?

For your information, we added dispose() methods for each telerik controls.

Thanks for your lights
Hristo
Telerik team
 answered on 06 Jul 2015
1 answer
166 views
how can i get transparent color on dockstrip? i change back color on RadPageViewContentAreaElement to transparent and switch gradient style to solid but nothing happen.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jul 2015
1 answer
830 views

This is a question specifically for WinForms but the question is the same as below: 

http://www.telerik.com/forums/radgridview-scroll-position-reset-after-rebind 

Basically, what object and parameters do I have to access within the RadGridView to get my scroll position, so that I can reset it to that position after a rebind.

Stefan
Telerik team
 answered on 02 Jul 2015
3 answers
121 views

Hello Telerik,

I tried to translate the control into german.

How can I prevent the behavior, which is shown in the picture. (Wordwrap and cut off).

 

Greetings

 

PS: Yes, we used also font scaling.

Stefan
Telerik team
 answered on 02 Jul 2015
1 answer
195 views

Hi,

 In my code I'm adding appointments to a radScheduler like this:

 Dim app As New Appointment

app = New Appointment(Convert.ToDateTime(dr("StartTime")), Convert.ToDateTime(dr("EndTime")))

app.ToolTipText = "Some text"

 

How can I set a delay time for the tooltip, i.e. how long the tooltip text is displayed?

 

Regards,

Pirjo

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jul 2015
9 answers
413 views

How do I prevent a ToolTabStrip from being disposed when it has no child panels? I'd like to allow users to redock child panels into a ToolTabStrip even if there are no child panels left.

At the moment I am getting an error "Changing children collection of an already disposed element" when the redocking is attempted.

Thanks,

 

 -Lou

Lou
Top achievements
Rank 1
 answered on 01 Jul 2015
1 answer
121 views

Hello.

After a few tries, I came to a method that dynamically changes shades depending on the amount of characters MaskedEditBox:

public partial class RadForm6 : Telerik.WinControls.UI.RadForm
    {
        public RadForm6()
        {
            InitializeComponent();
            this.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
            this.radMaskedEditBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;
            this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
            this.radMaskedEditBox1.Mask = "000,000,000-0099";
            this.radMaskedEditBox1.PromptChar = ' ';
        }
 
        string initialValue = string.Empty;
        private void radMaskedEditBox1_TextChanged(object sender, EventArgs e)
        {
            if ((radMaskedEditBox1.Value + "").Length <= 11 && this.radMaskedEditBox1.Mask != "000,000,000-0099")
            {
                this.radMaskedEditBox1.TextChanged -= radMaskedEditBox1_TextChanged;
                initialValue = this.radMaskedEditBox1.Value + "";
                this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
                this.radMaskedEditBox1.Mask = "000,000,000-0099";
                this.radMaskedEditBox1.PromptChar = ' ';
                this.radMaskedEditBox1.Value = initialValue;
                this.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
            }
            else if ((radMaskedEditBox1.Value + "").Length >= 12 && this.radMaskedEditBox1.Mask != "00,000,000/0000-00")
            {
                this.radMaskedEditBox1.TextChanged -= radMaskedEditBox1_TextChanged;
                initialValue = this.radMaskedEditBox1.Value + "";
                this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
                this.radMaskedEditBox1.Mask = "00,000,000/0000-00";
                //this.radMaskedEditBox1.PromptChar = ' ';
                this.radMaskedEditBox1.Value = initialValue;
                this.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
            }
        }
 
    }

 

I hope it helps.

Regards,
Felipe

 

Hristo
Telerik team
 answered on 01 Jul 2015
1 answer
87 views

Is it possible to set the displayed text of an appointment to be right justified? I am using the scheduler control somewhat differently, with only one appointment displayed for each day, and the text of the appointment is simply a number that tells the user the number of openings on that day. Clicking on the appointment displays further details in other controls. For the text, I am setting the Summary property of the appointment (although I could do something different if necessary).

Numbers are typically right justified, and I would like to do this in the displayed text of the appointment.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jul 2015
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?