Telerik Forums
UI for WinForms Forum
4 answers
156 views
Hi,

Some questions re WinForms Q2 2007 menustrip.

1. Is there a away to change the order of menu items using the designer?

2. Is there a dedicated menu designer somewhere? I.e. not the inline designer

3. Is there an easy way to show all opened MDI windows in the Window menu?


thanks
Jack
Telerik team
 answered on 26 Feb 2008
17 answers
358 views
Hi,

mabe I'm to dumb, but I haven't figured out how I can select a tab with code.

In the Tabcontrol object from VS05 it's working like this: TabControl1.SelectTab(TabPage2)

How can I realize this with the Ribbonbar?

Thanks for your help.

Dennis
KMBah
Top achievements
Rank 1
 answered on 25 Feb 2008
3 answers
101 views
Hi, I only want to know if is possible make a drag drop between RadPanelBarGroupElement. I see allowdrop property in this one and in RadPaneBar. I insert two radbuttonelement, for examplo, but I can't drag anything.

thanks
Boyko Markov
Telerik team
 answered on 25 Feb 2008
5 answers
457 views
Problem :
The Child records in Winforms radgrid hierarchy should show at the first click expand and it shouldn't collapse automatic.

At  Design Time, I create Strongly Typed dataset containing two tables
Master table--Company
Child Table---Branch
having Relation in these tables by "Company Id"

At Form load , if we use "AutoGenerateHierarchyFromDataSet" , it takes More time
as it has  almost 10000 Company Records and 40000 Branch Records.I think The RadGrid  take time to rearrange the records according To hierarchy.

So I tried another alternative:
At time of loading the form ,I fill only Company table.
When I expand any Company ID row, I fill the Branch table only for selected(Iscurrent row) Company Id .Then refresh the Radgrid by
radGrid.Rows(RowIndex).ViewInfo.UpdateView()
As well as

radGrid.GridElement.Update(True)

But the problem is, when i expand the row first time ,The row expands, But does't show branch records for current row Comapny ID.After some time the row automatically collapse.
When I expand ,the same row second time ,it shows the branch(child) records .

This on demand fascility will be helpful for handling large data.

Kindly see in this.
Thanks
sagar
 
Julian Benkov
Telerik team
 answered on 22 Feb 2008
3 answers
175 views
I have a class, Employee with two fields, EmployeeID (integer) and EmployeeName (string).  There is an override to the ToString() method to return just the employee name.

I need to a number of instances of this class to a RadComboBox such that when a row is selected, I can obtain the selected employee id
Nikolay
Telerik team
 answered on 22 Feb 2008
1 answer
65 views
Just installed Q3 SP1 and it appears the ElementVisibility.Collapsed property for ListBoxItems is no longer functioning correctly.

I use Collapsed to remove the item from selection without having to do another callback to the database.

Is there any workarounds for the time being?

Also the Rad Checkboxes seem to be very flaky when binding to a boolean via a Binding source as the ToggleState binding doesn't fire off to the underlying object.
Angel
Telerik team
 answered on 21 Feb 2008
1 answer
91 views
hi,
i have the latet download (yesterday) on the winform control.

I founf this bug, let me explain

I have data from a Datatable bound to the grid.  A simple code, decription.  I wnt to be able to add new codes and descriptions but once added I want he code to be readonly.  So I add this code to the form


    Private Sub rg_States_CellBeginEdit(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles rg_AssumptionGroupsTypes.CellBeginEdit
        'Cancel edit if we are on an existing row and column 0
        ' turns the State abr to readonly
        If e.RowIndex > -1 Then
            If e.ColumnIndex = 0 Then
                e.Cancel = True
            End If
        End If
    End Sub

The purpose of the code is to check if the current column is 0 and we have a rowindex then I want to cancel the edit using the GridViewCellCancelEventArgs method cancel

This is great works first time but if you click very fast on the cell it exceptions . 

Here is the error

System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="Telerik.WinControls.GridView"
  StackTrace:
       at Telerik.WinControls.UI.GridDataCellElement.SetEditorFocus()
       at Telerik.WinControls.UI.GridDataCellElement.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
       at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseBubbleEvent(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.DoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(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.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(Int32 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(ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at HousingCashFlow.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()


I have found other bugs in the grid as well but this one is cheesing me off.


Greg

Jack
Telerik team
 answered on 21 Feb 2008
9 answers
225 views
I'm using the following code to set the current row in the RadGridView. When I set the CurrentRow property, then get it directly after, I'm finding that the CurrentRow is never the same as the row that I set. The code is always returning true though, so the set is happening. I've tried this after the DataBound event happens and still it doesn't work. What am I doing wrong?

public bool SetCurrentRow(DataRow r, string fieldname, object val)
        {
            if ((this.Columns.FindByDataField(fieldname) == null
                 || r[fieldname] == null))
            {
                string m = string.Format("{0} failed. Grid columns or row columns did not contain '" + fieldname + "'."
                  , "SetCurrentGridRow");
                throw new ApplicationException(m);
            }

            System.Diagnostics.Debug.WriteLine("");

            System.Diagnostics.Debug.WriteLine("Looking for: "+ r[fieldname].ToString());

            foreach (GridViewRowInfo v in this.Rows)
            {
                if (v.DataBoundItem is DataRowView)
                {
                    if ((v.DataBoundItem as DataRowView).Row != null)
                    {

                        DataRow row = (v.DataBoundItem as DataRowView).Row;
                        System.Diagnostics.Debug.WriteLine(row[fieldname]);
                        if (row[fieldname].Equals(val))
                        {
                            this.CurrentRow = v;
                            this.GridElement.Update(false);
                            return true;
                        }                      
                    }
                }
            }

            return false;
        }

I've even tried this.CurrentRow = this.Rows[2] and it's not working.
Jack
Telerik team
 answered on 21 Feb 2008
6 answers
794 views
Dear all,

We are pleased to announce the immediate availability of the first public beta of the Telerik CAB Enabling Kit!

The Composite UI Application Block (CAB) is designed to help in building complex, enterprise-ready Windows Forms solutions. As part of WinForms UI component development, Telerik is strongly committed to provide seamless and easy integration with the CAB infrastructure for developers. In fact Telerik is one of the first vendors to provide support for the CAB and the SCSF.

The Telerik CAB Enabling Kit features 
  • Workspaces 
    • RadDockableWorkspace 
    • RadTabWorkspace 
       
  • UIElementAdapters
    • RadMenuUIAdapter 
    • RadMenuItemsCollectionUIAdapter 
    • RadToolStripElementAdapter 
    • RadToolStripItemAdapter 
    • RadTreeViewUIAdapter 
    • RadTreeNodeUIAdapter 
       
  • CommandAdapters 
    • RadMenuItemCommandAdapter 
    • RadTreeNodeCommandAdapter 
       
  • CAB Application Classes
    • RadWindowsFormsApplication 
    • RadFormShellApplication 
    • RadApplicationContextApplication 
       
  • Supported Telerik components in this version
    • RadTreeView 
    • RadDock 
    • RadMenu 
    • RadPanelBar 
    • RadTabStrip 
    • RadToolStrip 
    • (coming soon) RadGridView wrapper

Download Telerik CAB Enabling Kit Beta 1

You can find more information on the Can Enabling Kit on our CAB Support page.

The beta of the Telerik CAB Enabling Kit includes the early bits of the upcoming Q2 2007 RadControls for WinForms suite. It comes with a Finance Application modeled after Microsoft's WPF WoodGrove Finance Application.

Since this is the first beta of the CAB Kit we expect some glitches, and your comments and opinions will be much appreciated. Feel free to post all ideas, suggestions and feedback in this Forum. The most active beta users will be awarded with up to 5,000 Telerik Points.

Resources

Vassil Petev
Telerik team
 answered on 21 Feb 2008
1 answer
225 views
Instead of having long, single line buttons, I would like to have multiple lines but I cannot figure out the magic.
Nikolay
Telerik team
 answered on 20 Feb 2008
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?