Telerik Forums
UI for WinForms Forum
5 answers
522 views
Hi,
I have a requirement for subtotals on a gridview with databinding and grouping enabled (One extra row at the bottom of each grouped section with totals for all numerical fields).
I could of course adapt the DataTable, but it seemed more performant to me if I could use the GroupingChanged Event and just add the needed rows in the gridview.
But obviously, since I am writing this :-), I ran into some troubles trying to achieve this:
- The GroupingChanged event does not fire, even if it seems to be properly defined in the designer class
- I found out about the nested rows in the grouping structure and was able to get the code in place for calculating the subtotals row, but I cannot figure out how to add this new row without touching the underlying DataSet. Apparently it's just a bit more complicated than adding cells -and I am a bit confused about the relation between the row.Cells, row.rowInfo and row.Rows properties-.
- I will also be trying this for horizontal totals (1 per row), which is pretty easy to do on a data level, but if you have any remarks on how to do it on clientside, I am all ears :-)
Jack
Telerik team
 answered on 23 May 2007
1 answer
173 views
I have installed my application in windows 2000 professional and when i click on my Telerik.WinControls.UI.RadMenu I have this error message:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: Parametro non corretto
   at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()
   at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, Int32 classStyle)
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.set_CaptureInternal(Boolean value)
   at System.Windows.Forms.Control.set_Capture(Boolean value)
   at Telerik.WinControls.UI.RadPopupControl.SetVisibleCore(Boolean value)
   at Telerik.WinControls.UI.RadDropDownMenu.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.Show()
   at Telerik.WinControls.UI.RadDropDownMenu.ShowPopup(RadDirection popupDirection, Int32 ownerOffset)
   at Telerik.WinControls.UI.RadMenuItemBase.ShowChildItems()
   at Telerik.WinControls.UI.RadMenuItemBase.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadMenuItem.OnClick(EventArgs e)
   at Telerik.WinControls.RadItem.DoClick(EventArgs e)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ezencryption_lib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
License
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
License
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/License.DLL
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
SolutionScan
    Assembly Version: 1.0.2694.30671
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
log4net
    Assembly Version: 1.2.9.0
    Win32 Version: 1.2.9.0
    CodeBase: file:///C:/Programmi/SolutionScan/log4net.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.EasyViewLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/Interop.EasyViewLib.DLL
----------------------------------------
AxSHDocVw
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/AxSHDocVw.DLL
----------------------------------------
SHDocVw
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/SHDocVw.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
AxInterop.EasyViewLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/AxInterop.EasyViewLib.DLL
----------------------------------------
SolutionFileRecenti
    Assembly Version: 1.0.2627.33131
    Win32 Version: 1.0.2627.33131
    CodeBase: file:///C:/Programmi/SolutionScan/SolutionFileRecenti.DLL
----------------------------------------
SolutionDocCore
    Assembly Version: 1.0.2627.33131
    Win32 Version: 1.0.2627.33131
    CodeBase: file:///C:/Programmi/SolutionScan/SolutionDocCore.DLL
----------------------------------------
Interop.MODI
    Assembly Version: 11.0.0.0
    Win32 Version: 11.0.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/Interop.MODI.DLL
----------------------------------------
System.Web.Services
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
twrbuwra
    Assembly Version: 1.0.2694.30671
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AxInterop.MODI
    Assembly Version: 11.0.0.0
    Win32 Version: 11.0.0.0
    CodeBase: file:///C:/Programmi/SolutionScan/AxInterop.MODI.DLL
----------------------------------------
Telerik.WinControls.UI
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Programmi/SolutionScan/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Programmi/SolutionScan/Telerik.WinControls.DLL
----------------------------------------
Telerik.WinControls.Docking
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Programmi/SolutionScan/Telerik.WinControls.Docking.DLL
----------------------------------------
6gkhv4r6
    Assembly Version: 1.0.1.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
TelerikCommon
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Programmi/SolutionScan/TelerikCommon.DLL
----------------------------------------
f0mpatgn
    Assembly Version: 1.0.1.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Anybody can help me?

thanks.

Mirko
Jack
Telerik team
 answered on 23 May 2007
1 answer
184 views
Hi.
I can't change the radtreeview's backcolor...it's color is allaways equal to the backcolor of it's container. Is this a bug? Or I'm doing anything wrong?
Thanks.
Boyko Markov
Telerik team
 answered on 23 May 2007
3 answers
85 views
I am using a shaped form for a multimedia application where I do not want to show the window's content while dragging.  Is there a way to do this?  I have it turned off in the desktop properties and only a form with RadControls will still show its contents while I'm dragging the form around the desktop.  Also is there an event in the form or .NET it self to detect when the form has finished moving, like "onMoved".

Please let me know how to turn "Show window contents while draging" off.

Thank you
Jack
Telerik team
 answered on 23 May 2007
1 answer
59 views
Hi,
Your controls are very good and you could make some of them for Mobile Devices - Compact Framework, like Charts, Grids, Trees, Tabs, Buttons, etc.
Good work.
Vassil Petev
Telerik team
 answered on 23 May 2007
3 answers
110 views
Hi, i'm new in your controls. 

I need know how i can add an new tab with code in the radTabStrip.

Thanks
Boyko Markov
Telerik team
 answered on 23 May 2007
1 answer
84 views
Using the SP1 RadStrip control and adding a RadComboBoxElement how do I control the select color in the Text entry?

Thanks.
Georgi
Telerik team
 answered on 23 May 2007
1 answer
268 views
After reviewing your WinControls example application, I would like to try to reproduce some of the functionality that is used if possible.

When viewing individual control examples, i see that you have a "zoom and drop" animation effect on the following buttons: "Load Theme", "Theme Builder", "Control Spy".  Is this possible with your RadButtons today?

In addition, you have another effect on your "Launch Example" effect that slides down and drops into position.

Are these animation effects avaiable today for RadControls... specifically buttons to draw users attention to new buttons?
Mike
Telerik team
 answered on 23 May 2007
3 answers
237 views
Hi,
I need to save/load the structure and dockpanels of my dockingmanager without using savexml and readxml.

I need some code like this:

save panels:
For Each d As DockPanel In DockingManager1.DockingSites(0).ManagedDockables
  comando.Parameters.Clear()
  comando.Parameters.Add(New SqlClient.SqlParameter("@Codigo", i))
  comando.Parameters.Add(New SqlClient.SqlParameter("@CodigoVista", vista))
  comando.Parameters.Add(New SqlClient.SqlParameter("@Indicador", i))
  comando.Parameters.Add(New SqlClient.SqlParameter("@DockPosition", d.DockPosition))
  comando.Parameters.Add(New SqlClient.SqlParameter("@Altura", d.Size.Height))
  comando.Parameters.Add(New SqlClient.SqlParameter("@Largura", d.Size.Width))

  comando.CommandText = "INSERT INTO TbPaineis (Codigo,CodigoVista,Indicador,DockPosition,Altura,Largura) VALUES(@Codigo,@CodigoVista,@Indicador,@DockPosition,@Altura,@Largura)"
  If sqlConn.State <> ConnectionState.Open Then
    sqlConn.Open()
  End If
  comando.ExecuteNonQuery()

  i += 1
Next


load panels:

For Each d As Object In DockingManager1.DockingSites(0).ManagedDockables
  DockingManager1.DockingSites(0).Remove(d)
Next

For Each dr As DataRow In dsVistas.Tables(0).Rows
  Dim dock As New DockPanel
  dock.Tag = dr("Codigo")
  dock.Text = dr("Indicador")
  DockingManager1.SuspendLayout()
  dock.Size = New Size(dr("Largura"), dr("Altura"))
  DockingManager1.ResumeLayout()
  DockingManager1.SetDock(dock, dr("DockPosition"))
Next

I tried this code but the structure loaded is different from the saved one.
What is missing?
Thanks in advance.

Julian Benkov
Telerik team
 answered on 22 May 2007
3 answers
388 views
Hello,

I want to check all the nodes in my treeview. I searched if a method to do it existed but I haven't found anything.
Should I do a recursive loop on my node collection to check all the nodes of my treeview ?

I know it's the first version of the WinForm Treeview but a method to check or uncheck all the nodes could be useful.
There is also some nice methods available in your ASP.NET RadTreeView that should be included in the WinForm version like the GetAllNodes method. It's only an example I haven't listed all the difference.

I'm waiting for your answer and feedback
Best regards

Boyko Markov
Telerik team
 answered on 22 May 2007
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?