Telerik Forums
UI for WinForms Forum
5 answers
204 views
I am using the background worker class in VS 2005. The worker's job is to get the data from the server every so often and update the grid data. Everything works fine. However, when user interacts with the grid layout i.e resize columns, grouping column, an exception is thrown. I tried the same code with MS data grid and the problem does not occur. Here's the code snippet.

Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                thdProcessing.RunWorkerAsync()
End Sub

    Private Sub thdProcessing_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles thdProcessing.DoWork
        While True
             thdProcessing.ReportProgress(0, mobjConnection.Conductor.GetAllTasks)
             Threading.Thread.Sleep(5000)
        End While
    End Sub

    Private Sub thdProcessing_ProgressChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles thdProcessing.ProgressChanged
        Telerikgrid.DataSource = e.UserState
        DataGridView1.DataSource = e.UserState
    End Sub

Here's the call stack of the exception

"   at Telerik.WinControls.UI.GridHeaderRowElement.OnMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.UI.GridRowElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)\r\n   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   at Telerik.WinControls.RadControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.Run(ApplicationContext context)\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at CivilAutoManagerDeveloperEdition.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81\r\n   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"
Hristo
Telerik team
 answered on 17 Sep 2018
5 answers
178 views

Hello All, 

is gridview possible to make fix row and column,

i need to make first column fix with default text "Type" 

and 2 fix rows "A" and "B" 

 

can this possible to apply ? 

 

Thanks ....

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
30 answers
498 views
I need to order groups by something other than the field used to group by.  For example, assume I have a list of Customers with non-unique names.  I group on Customer Id, but display Customer Name.  I need to order on the customer's name, not the Id.  What's the recommended approach for doing this with Q1 2008?
Vladimir Stoyanov
Telerik team
 answered on 17 Sep 2018
2 answers
196 views

how do I remove the excessive white space around the  gauge controls?

In the attached image all  want is a thin gauge representing a battery but the control is huge,  and cant be sized smaller.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
0 answers
71 views

I've add a button to titlebar to allow the user set the form to fullscreen.

var screen = Screen.FromControl(this);
this.MinimumSize = screen.Bounds.Size;
this.Bounds = screen.Bounds;

But seems shapedform don't allow me to do that. Is there anyway to achive that?

Leandro
Top achievements
Rank 1
 asked on 15 Sep 2018
11 answers
226 views
I am assigning numerical value to the barcode value but when scanning special characters were appended at the end.
Dimitar
Telerik team
 answered on 13 Sep 2018
1 answer
139 views

I am having this situation: when click on the scroll bar to up or down the RadListView the SelectedItemChanged event is raised. I have a work around in my client code to prevent it but it's ugly... somebody deal with it.

Steps to reproduce:

1) Have a RadListView in your form with many data to it shows the scroll bar 

2) Subscribe your for to the SelectedItemChanged event 

..
list.SelectedItemChanged += ListCheckedItemChanged;
..
protected void ListCheckedItemChanged(object sender, EventArgs e)
{
...
}

3) Run your form and select an item before use the scroll bar

4) click in the button to Up/Down the scroll bar. The subscribed is called (use some break point to check it)

Dimitar
Telerik team
 answered on 13 Sep 2018
2 answers
251 views

Hi,

How to assign RadCalculatorDropdown.Value always with number decimal digit each equals button click.

for example:

i have input 22 / 7

but result is 3,1428571428571428571428571429

i want the result is 3,1429 with 4 digit decimal

thanks

Agung
Top achievements
Rank 1
 answered on 13 Sep 2018
1 answer
172 views

When the user selects rows on the grid, tis very hard to figure out which ones are selected or not.

Is there a way at design time I can play with the color to be used for this?

 

Thanks

Deasun

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2018
1 answer
162 views
Hello,

When setting the property this.IsMdiContainer = true;
the main form changes color, how can I change the color?

       private void MenuPrincipal_Load (object sender, EventArgs e)
         {
            this.IsMdiContainer = true;
            this.radDock1.AutoDetectMdiChildren = true;
         }
        private void radButton1_Click (object sender, EventArgs e)
         {
             radForm1 form = new radForm1 ();
             form.Text = "Test Form" + DateTime.Now.ToShortTimeString ();
             form.MdiParent = this;
             form.Show ();

         }

Here I show the photo

Thank you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2018
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?