Telerik Forums
UI for WinForms Forum
1 answer
152 views
Hi,

When using a CommandBarDropDownButton and having two menu items, the sizing appears to be off (see attached image) and there is a lot of extra padding at the bottom.  This works fine with 3 or more menu items.  Is there a way to correct this?

Thank you.
Ivan Todorov
Telerik team
 answered on 22 Jun 2011
1 answer
386 views
I have a RadTreeView with top nodes and each top node may have children (subnotes) depending on my database data source.

Top node 1
    |___ Sub node 1
    |___ Sub node 2
    |___ Sub node 3
Top node 2
    |___ Sub node 1
    |___ Sub node 2
    |___ Sub node 3
    |___ Sub node 4
Top node 3
    |___ Sub node 1

I have consigured all my top nodes to have a ContextMenu (radContextMenu1) associated with it.
For all the Sub notes of any top node (so for Sub node 1, 2, 3 of Top node 1; Sub node 1, 2, 3, 4 of Top node 2 and Sub node 1 of Top node 3 and any other subsequent Sub note of any other possible Top node), I want a context menu (radContextMenu2) to appear and I want to do this through C# code, not at design time.
The only example that you seem to provide is how to acomplish this at design time and only with predefined nodes; not database driven ones, like mine.

Here is the only example that you provide:

RadTreeView1.Nodes[0].ContextMenu = radContextMenu2;

This will NOT work in my case since my menu is constantly changing based on my dasaset.
In essence, I am looking for something like this:

RadTreeView1.AllSubNodesAtLevel[0].ContextMenu = radContextMenu2;
(where level 0 would be ALL the Sub nodes in the above pictured schema)

Thank you!
Nikolay
Telerik team
 answered on 22 Jun 2011
6 answers
197 views
HI,

I have a GridView with a checkbox column. When I would click on the column header checkbox checks all stay true.
Could anyone help me?
Francois
Top achievements
Rank 1
 answered on 22 Jun 2011
10 answers
543 views
Hi,

I have list control with data on a user control.

I have subscribed for a double click event for a listcontrol.

as there are lot of items in the controls, when the user clicking on scroll bar to go donw the list. it is firing the double click event and thus selecting the wrong item, instead of continue scrolling down as the click was on the scroll bar and not on the item.

please advice.

Regards,
khizar
Martin Vasilev
Telerik team
 answered on 22 Jun 2011
1 answer
84 views
I have tried setting the ThousandsSeparator both in the Property Builder and in code, but it has no effect on the display of the grid's numbers.  I am referencing GridView v2011.1.11.315.

Is this a known issue or am I missing something? 

Private Sub gridIssues_DataBindingComplete(sender As Object, e As Telerik.WinControls.UI.GridViewBindingCompleteEventArgs) Handles gridIssues.DataBindingComplete
      CType(gridIssues.Columns("balance"), GridViewDecimalColumn).ThousandsSeparator = True
End Sub




Nikolay
Telerik team
 answered on 22 Jun 2011
5 answers
245 views

Hi,

When I move by mistakes a node on the node over him, the application crash with the error bellow.

To reproduce this,
> Create a treeView with 2 nodes inside!
> Move the second node into the first one,
> Do it again (Move the second node that is already into the first one exactly as you did before)

I hope you can reproduce it and tell me how to avoid this problem.

Best regards, Fred




System.ArgumentOutOfRangeException was unhandled
  Message="Index must be within the bounds of the List.\r\nParameter name: index"
  Source="mscorlib"
  ParamName="index"
  StackTrace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       at System.Collections.Generic.List`1.Insert(Int32 index, T item)
       at Telerik.WinControls.UI.RadTreeNodeCollection.InsertItem(Int32 index, RadTreeNode node)
       at System.Collections.ObjectModel.Collection`1.Add(T item)
       at Telerik.WinControls.UI.RadTreeView.FinalizeDrop(RadTreeNode targetNode, RadTreeNode draggedNode, ArrowDirection arrowDirection, RadTreeView endTree)
       at Telerik.WinControls.UI.RadTreeView.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(Form mainForm)
       at WindowsApplication1.Program.Main() in C:\Documents and Settings\badoux0f\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Program.cs:line 17
       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()



Svett
Telerik team
 answered on 22 Jun 2011
1 answer
205 views
Is it possible to customize Group By labels in the group panel?
I've looked and the following example (http://www.telerik.com/help/winforms/gridview-grouping-formatting-group-header-row.html) and it only demonstrated how to customise group heading rows, not the labels in group panel.
Martin Vasilev
Telerik team
 answered on 22 Jun 2011
1 answer
148 views
Hi all
 I downloaded the trial version of 2011Q1 and made some small sample applications in VB.net in VS2010.
Now I want to make a setup project using Installshield 2011 LE available with VS2010.I made a setup project and installed in another machine without any prior rad controls and it was not working.(I took the primary output of my project in the APP folder of Installshield and also added the necessary telerik files like Win.UI.dll,Win.grid,win.themes etc.

Later I made a setup with windows setup and deployment project and it was working perfect.

So can any one shed some light on making an Installshield installer package with telerik components


Kind Regards

Renju
Peter
Telerik team
 answered on 22 Jun 2011
7 answers
159 views
Hi,

like the title it says. is there a property / way to disable the inline editor? Cant find such an option.


greetz
Stefan
Telerik team
 answered on 22 Jun 2011
1 answer
148 views
Hello,
I have a dataset containing two tables. One of the tables is the Customer table and the other one is the customer Purchases table. They have a one to many relationship; each customer can have more than one purchases.
I can't get the RadTreeView to dispay anything related to the Customer or Purchases. They only thing the TreeView displays is the following: System.Data.DataViewManagerListTypeDescriptor. That looks like an error message!?
What am I doing wrong?
I've been struggling with this for an entire day; trying anythign under the sun.
I am using the newest RadTreeView control.

My datbase tables look as follows:

Customer table
====================
ID (autoincrement unique ID)      
CustomerName

Purchases table
=============
PurchasesID (autoincrement unique ID)
Customer_ID (foreign key to ID in Customer table)

In the tree view, the customer's purchases should show up underneath each customer's name.
Here is my code:

private void frmMain_Load(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();
            DataRelation relation;
            string connectionString = "server=MYSQLSERVER;database=MyStore;uid=FakeUserID;pwd=FakePassword";
            SqlConnection mySqlConnection = new SqlConnection(connectionString);
  
            string strCustomer_Query = "Select * from Customer";
            string strPurchases_Query = "Select * from Purchases";
  
            try
            {
                SqlCommand sql_Customer = new SqlCommand(strCustomer_Query, mySqlConnection);
                SqlDataAdapter da = new SqlDataAdapter(sql_Customer);
  
                da.Fill(ds, "Customer");
                da.SelectCommand.CommandText = strPurchases_Query;
                da.Fill(ds, "Purchases");
  
                // Add the relation. Maybe this is not needed because we use the RelationBindings of the RadTreeView
                DataColumn parentCol = ds.Tables["Customer"].Columns["ID"];
                DataColumn childCol = ds.Tables["Purchases"].Columns["Customer_ID"];
                relation = new DataRelation("Customer_Purchases", parentCol, childCol);
                ds.Relations.Add(relation);
  
               treeView1.ShowLines = true;
               treeView1.RelationBindings.Add(new RelationBinding(ds, "CustomerName", "Customer_ID", "PurchaseID", "ID"));
               treeView1.DataSource = ds;
               treeView1.DisplayMember = "CustomerName";
               treeView1.ValueMember = "ID";
               treeView1.ParentMember = "ID";
               treeView1.ChildMember = "PurchaseID";
               treeView1.ExpandAll();
}


Please help.
Thank you!
Julian Benkov
Telerik team
 answered on 22 Jun 2011
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?