Telerik Forums
UI for WinForms Forum
1 answer
227 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
949 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
188 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
884 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
151 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
236 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
472 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
150 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
110 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
1 answer
119 views

Hi,

It seems that the RadMarkupEditor never gets focus (Focused = false) even when you are typing something (in DesignView). Is this normal behavior?

Thanks,

Tom

Stefan
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)
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?