Telerik Forums
UI for WinForms Forum
2 answers
150 views
I need to get the splitter width for all the windows in a raddock to default to a bigger area.
I tried editing the UI element tree from the smart tag and even tried it in code

((

Telerik.WinControls.UI.SplitterElement)(this.dockMain.GetChildAt(1).GetChildAt(0))).AutoSize = false;

 

((

Telerik.WinControls.UI.SplitterElement)(this.dockMain.GetChildAt(1).GetChildAt(0))).SplitterWidth = 15;

 



however although I get no exceptions , my splitter widths remain the default width.
Is there a different property that needs to be applied to change the splitter width ?
Kenneth Jackson
Top achievements
Rank 1
 answered on 01 Sep 2009
5 answers
154 views
I am trying to use the property builder to add colums and their headers in the latest Telrik WinControls and either the property builder close while doing this or when i click to add a new colum it closes down without saving. I therefore can't save any new colums using the property builder.

Has anyone else encountered this?
Nick
Telerik team
 answered on 01 Sep 2009
1 answer
457 views
Hey everyone, hope you can help with this request because I don't know how to quite word it correctly, but I'm going to try my best.

I'm wondering if there is a way to code the combo box so that when a user selectes a value...and the box closes again, If you reopen the box, the selected value is either at the top or bottom of the list?  

for example lets say your drop down contains the following:

1
2
3 Selected Value
.
.
.
.
20

And then you select 3.   The drop down will close with that value selected, and then if you click to drop down again, your list now looks like this:


3 Selected Value
4
5
6
7
8
.
.
.


Same in reverse, so like if 6 was selected, then it would look like this:

1
2
3
4
5
6 selected value.


I hope that kinda makes sense.

Thanks.
Deyan
Telerik team
 answered on 01 Sep 2009
1 answer
135 views
Hello,

Using Q1 2009 Demos...  
When we add a new row to the  child grid, the same value is updated in the last row.
When I click the right button on that row, an error appears.

--------------------------------------------------------
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en Telerik.WinControls.UI.GridViewCellInfo.get_CellElement()
   en Telerik.WinControls.UI.GridDataCellElement.MergeMenus(IContextMenuManager contextMenuManager, Object[] parameters)
   en Telerik.WinControls.UI.GridViewContextMenuManager.ShowContextMenu(IContextMenuProvider contextMenuProvider)
   en Telerik.WinControls.UI.BaseGridBehavior.OnContextMenu(MouseEventArgs e)
   en Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownRight(MouseEventArgs e)
   en Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)
   en Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)
   en System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   en Telerik.WinControls.RadControl.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------------

Note: For the first child grid this not happen.

Regards
Phenicy
Jack
Telerik team
 answered on 01 Sep 2009
1 answer
100 views
Hello,
Why when I change gridViewTemaplate1 name to for example gridViewTemplateMachinesEvents in designer, after a while designer changes it back to gridViewTemaplate1. How can change gridViewTemplate name for good? When I have more templates it's to know which one to use.
Jarek
Jack
Telerik team
 answered on 01 Sep 2009
2 answers
421 views
Hey everyone.

I am upgrading my skills into winform development from asp.net and need a little help....I think asp.net is much easier when it comes to grids and data layout....but hey its only early days.

I have created a grid and I am wanting to add a couple of buttons to the right of the actual data however I am struggling...I dont want to use standard buttons I want to use images and have an onclick event on each of them.

My binding class looks like this

 public ItemDetail(int itemID, string itemDescription, int itemsRequired)  
        {  
            ItemID = itemID;  
            itemDescription = itemDescription;  
            ItemsRequired = ItemsRequired;  
        }  
        public int ItemID { getset; }  
        public string ItemDescription { getset; }  
        public int ItemsRequired { getset; } 

Within my win form I have this

  public List<ItemDetail> _itemDetails = new List<ItemDetail>();  
 
 
       
        public MainForm()  
        {  
            InitializeComponent();  
       
 
            BindItems();  
             
          
             
        }  

private

 

void BindItms()

 

{

gridItems.DataSource = _itemDetails;

 

GridViewCommandColumn addColumn = new GridViewCommandColumn();

 

addColumn.DefaultText =

"Hello";

 

 

RadDataGridViewButtonColumn buttonColumn = new RadDataGridViewButtonColumn();

 

buttonColumn.Text =

"Press Me";

 

 

 

this.gridItems.Columns.Add(addColumn);

 

 

this.gridItes.CommandCellClick += new CommandCellClickEventHandler(gridItems_CommandCellClick);

 

}


 

If I run the above code it a runs fine....As you can see I have tried adding buttons....
What do I need to do to add the columns.....Ideally when I pressed either of them they would return the selected item ID i.e ItemID


Sorry if this is all asic stuff however still getting my head around win forms

Thank you for your help

Shane P
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
83 views
How to remove inner grid header?
Robert
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
103 views
Hello,

I have an unbound grid with 30 columns and not more than few hundred rows. When the application is in full screen mode (grid takes almost whole screen), the grid is reacting quite slow. When using keyboard to navigate it takes up to 2 seconds to move to next cell even on a relatively fast PC (Intel Core 2 Duo, 1,86 Ghz, 2 GB RAM). It  happens only when navigating left/right, up/down works fine. I noticed that when going into edit mode then all visible rows are refreshed, then when leaving edit mode visible rows are refreshed, and finally when the focus moves to another column all visible cells are refreshed. There is quite a lot of cells to refresh and that seems to be causing the slowdowns. Is there any way to make the grid respond faster to keyboard actions (refresh only the affected cells/columns/rows) ?
I'm using Telerik Controls for WinForms (.net 2.0), tried it on 2008 Q3 SP2 and the newest demo 2009.2 729 (Jul 29, 2009)

Thanks in advance
Jack
Telerik team
 answered on 31 Aug 2009
1 answer
130 views
I have a private instance of a collection of business objects on a form.  On form load, I fill the collection with data and bind it to a treeview.  In reaction to user input elsewhere on the form, I add and remove items from the collection.  At that point I need to refresh the binding of the TreeView.  I tried resetting the DataSource property and I've tried the Refresh and Update methods, but nothing I do makes the TreeView display the new data.

How do I do this?
Victor
Telerik team
 answered on 31 Aug 2009
1 answer
142 views
I seem to have a small problem with the CellDoubleClick event with the GridView.  It seems that when I doubleclick anywhere in the header for each of the rows it processes the event.   How can a prevent this from happening?  Can the header for the GridView be disabled so that when a user doubleclicks any header it won't fire the event? 

Thanks


Victor
Telerik team
 answered on 31 Aug 2009
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?