Telerik Forums
UI for WinForms Forum
1 answer
154 views
Hello
I need to impalement a tree view  with full row and ShowLines
Like what you see in the picture attached
Is it possible? and How

Thanks
Meir

Victor
Telerik team
 answered on 25 Mar 2010
5 answers
188 views
How do I instruct Combobox to use different type of RadComoboxItem  while still being to able to databind using Databindings or datasource ?
Victor
Telerik team
 answered on 25 Mar 2010
5 answers
151 views
Running your demos for Drag and Drop in the TreeView leaves me puzzled...

When dragging the "Unread Mail" node in the left treeView and then dropping it on the "Inbox" node the textBox on the right ("radTextBox1") displays the previous sibling node "Large Mail". It is also "Large Mail" that is displayed during the actual dragging.

What am I missing here? I really need the correct node as I have a corresponding XML document thet I need to manipulate based on drag and drop in the treeView.

<update>
Just tried running the same code on a couple of other pc's and they are working just fine. The problem is consistent on my own pc though. Any ideas as to what might be wrong?
</update>

Thanks in advance

Claus
Victor
Telerik team
 answered on 25 Mar 2010
1 answer
63 views
I have 3 tables as below.
Terms   (TID, Tname)
TermConditions  (TCID ,  FK_TID,  TCName)
SelectedTermsAndConditions. (RowID,  FK_TID, FK_TCID , SomeDescription)

I have a dataset.xsd  and i have set relation between Terms and TermConditions tables. (Lets say name of Relation is "TTC") 

In a Winform, i have a grid whose datasource =  SelectedTermsAndConditions.
I added Two Lookup columns to display TName and TCName for FK_TID, FK_TCID colums respectively  
I  set  their datasource as below.
FK_TID.DataSource = Terms  
FK_TCID.DataSouce = Terms.TTC   (The Relation).

When the grid is displayed only for 1st row of SelectedTermsAndConditions I get TName and TCName  correctly.
From 2nd Row onwards TCName  remains null.
(Note when I try to edit,  both lookupcolumns as a dropdownbox appear to behave normally. meaning when i choose TName, it filters and displays child values in TCName lookupcolumn).   but somehow it looks like while displaying grid it is not able to get child values for each row.

Hoping my above explaination was clear to understand problem scenario.

-Lee.









Julian Benkov
Telerik team
 answered on 25 Mar 2010
1 answer
193 views
Hello,

when I have a RadComboBox ( DataSource is  ObjectView )  on a RadSplitContainer it works, until I close the Solution. When I reopen the solution, run the program and I want to expand the ComboBox, I get an InvalidOperationException "Element already added". Only if I  completely delete the ComboBox and  create a new one, it works until I close and open the solution again.

WinControls-Version is 2010.1.10.308
OpenAccess-Version is 2010.1.310.2

Regards
Roland 

i found, that, if I make one or more copies  (<Ctrl>C, <Ctrl>V )  of the RadComboBox or if I move the ComboBox to a Windows, which is not a SplitContainer, it works.  The error occurs alwas in the first ComboBox in the SplitContainer.   If I delete the CombBox, where the error happens, the error happens on the next ComboBox.


here the exception-detail:

 

System.InvalidOperationException wurde nicht behandelt.

Message=

"Element already added"

 

 

Source=

"Telerik.WinControls"

 

 

StackTrace:

bei Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(RadElement element)

bei Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value)

bei System.Collections.CollectionBase.System.Collections.IList.Add(Object value)

bei Telerik.WinControls.RadElementCollection.Add(RadElement value)

bei Telerik.WinControls.MeasurementControl.GetDesiredSize(RadElement element, SizeF availableSize)

bei Telerik.WinControls.UI.RadComboBoxElement.GetInitialPopupSize()

bei Telerik.WinControls.UI.PopupEditorBaseElement.ShowPopup()

bei Telerik.WinControls.UI.RadComboBoxElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)

bei Telerik.WinControls.RadElement.CallDoMouseDown(MouseEventArgs e)

bei Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)

bei Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)

bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

bei System.Windows.Forms.Control.WndProc(Message& m)

bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)

bei Telerik.WinControls.RadControl.WndProc(Message& m)

bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

bei System.Windows.Forms.Application.Run(Form mainForm)

bei GUI1.Program.Main()

in C:\Projekte\Test\3TierArchitectur2\GUI1\Program.cs:Zeile 18.

 

bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

bei System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)

bei System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()

bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)

bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)

bei System.Activator.CreateInstance(ActivationContext activationContext)

bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()

bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)

bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading.ThreadHelper.ThreadStart()

InnerException:

 




Victor
Telerik team
 answered on 25 Mar 2010
6 answers
210 views
Hello,

Attached is a screenshot of a problem I'm observing with RadComboBoxElements that I am adding to gridview cells. I have not done anything special to cause the drawing of the textitem component of the RadComboBoxElement to gain precedence over the column headers, but they are, somehow. If I continue to scroll down, they will disappear behind the column headers eventually. I've tried setting the zIndex of the RadComboBoxElements to negative numbers but it's not helping...

Thanks!
Jeremy
Jack
Telerik team
 answered on 25 Mar 2010
1 answer
219 views
Dear friends,

I want to know whether i can get rid of QuickAccess Menu(Drop down which is coming right most side of the QuickAccess Toolbar).

I don't want want to show That drop down and a small down arrow button.
Please let me know if there is any way to hide Quick access menu or to collapse it.

Thanks,
Regards,
Ravi
Nikolay
Telerik team
 answered on 25 Mar 2010
2 answers
232 views
On my Chart I have a Timespan on the Y Axis. So far I managed to use Integer TotalMintues, however, I'd like to Format it
hh:mm for better readability.
Thanks for your help.

Regards
Erwin
Heri .
Top achievements
Rank 1
 answered on 25 Mar 2010
1 answer
140 views
This My Code only set border color by red when select 1 cell:

private void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
            if (!e.CellElement.IsCurrent && e.CellElement.RowInfo.IsCurrent)
            {
                e.CellElement.BorderColor = Color.FromArgb(208, 215, 229);
             }
            else
            {
                 e.CellElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local);
             }
         
             if (e.CellElement.IsCurrent && e.CellElement.BackColor != Color.LightBlue)
            {
               
                e.CellElement.BackColor = Color.White;
                e.CellElement.BackColor2 = Color.White;
                e.CellElement.BackColor3 = Color.White;
                e.CellElement.BackColor4 = Color.White;


                e.CellElement.BorderColor = Color.Red;
            }
            else if (e.CellElement.IsCurrent && e.CellElement.IsSelected && e.CellElement.BackColor == Color.LightBlue)
            {
              
                e.CellElement.BackColor = Color.LightBlue;
                e.CellElement.BackColor2 = Color.LightBlue;
                e.CellElement.BackColor3 = Color.LightBlue;
                e.CellElement.BackColor4 = Color.LightBlue;

                e.CellElement.BorderColor = Color.Red;
            }
}
private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
            e.RowElement.DrawFill = true;
}

* But that code when select 1 cell only set border left,bottom,top but not set color for border right.

* ? * I want set all border of cell when click cell.

Help Me!

Thanks!


Svett
Telerik team
 answered on 24 Mar 2010
1 answer
60 views
hi
i am usng visual studio .net 2005 with rad control win form q3 2009 sp1, how  to load items from database field in rad combo box
plz help me very urgent
Victor
Telerik team
 answered on 24 Mar 2010
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?