Telerik Forums
UI for WinForms Forum
21 answers
743 views
I have  a series of RadDropDownList controls whose contents are dynamically assigned at form load time.  Right after the form loads, and one attempts to select an item in any of the RadDropDownList controls, the control does not respond.  It will display the list of items, but it is impossible to select any of them.  The moving highlight bar does not appear, and the first item in the list remains selected.  However, on the second attempt, and all those afterward, it works correctly.  This is true and consistent for every control of this type.

I have tried various hacks to set the selected index to a different value, and then set it back, but that changed nothing.

I'm using 2010 Q3 (when I upgraded to the 2011 Q1 version the RadTreeView no longer functioned properly and I didn't have the time to figure out why.  All I know is that a call to the RadTreeView.Clear() method caused a null object exception that did not happen with 2010 Q3).

The only event I monitor is the selected index changed event.  I don't need it to fire if the index doesn't change, so there was no need to monitor another event.

All I'm doing on a load is to say something like:

radDropDownList.Items.Clear();

 

 

for (int i = 0; i < matrixDateCount; i++)

 

{

entry =

 

new RadListDataItem();

 

entry.Text =

 

ConversionMethods.GetDropDownListFormatDateTime(this.allMatrixDateTimes[i]);

 

radDropDownList.Items.Add(entry);

}


Any suggestions would be welcome.

Peter
Telerik team
 answered on 22 Mar 2012
1 answer
365 views
Hello, I can't figure out how to change the the page buttons height while in outlook mode.
I've look through the all UI elements but I didn't manage to find anything. Please help me! :)

Thank you.
Stefan
Telerik team
 answered on 22 Mar 2012
4 answers
147 views
I seem to be experencing alot of crashes with the Grid.  When I try to click on a filter to start typing in what I want to seach for it will crash the application.

The grids will load just fine and in most cases you can search the first 2-4 cells from left to right, but the closer you get to the right side of the grid the more cells you try to filter will crash the application.

I havent tried any other version yet, any ideas?

(It looks like it could be related to columns that I have moved the position in the property builder from how the query was written?)
Stefan
Telerik team
 answered on 22 Mar 2012
5 answers
203 views
Hi Teletik Team. I have an issue that need your help. I has a Form with RadScheduler1 (ActiveViewType=Month). When I run application, It will show RadScheduler on Month View with each header column is the week-date and each header row show the period of day. However, header row show vertical text, I want header row is horizontal  text. What should I do.

Thanks

Tran Dat
Stefan
Telerik team
 answered on 21 Mar 2012
5 answers
123 views
I am trying to export the grid to an HTML format.I do not want the default export behavior of defining col fixed widths during the export.  I set ExportVisualSettings to false in hopes that it might prevent the use of the fixed widths.  What is the correct way to not have fixed widths exported when working with HTML?
Ivan Petrov
Telerik team
 answered on 21 Mar 2012
6 answers
206 views
Saludos,


Como estan, tengo un problema. Agrego una columna llamada clnAsignatura al control RadGridview, pero desde el codigo no puedo hacer referencia a la misma por si sola, por ejemplo clnAsignatura.higth.  En el control estandar de vb.net el gridview, si puedo hacer esto, puedo poner en codigo el nombre de mi columna del grid directamente sin necesidad de referenciar el grid. Alguna idea de como puedo hacer esto?


regards,

As are, I have a problem. I add a column called clnAsignatura RadGridview control, but since the code I can not refer to it alone, for example clnAsignatura.higth. In standardcontrol vb.net gridview, if I can do this, I can put into code the name of my column in thegrid directly without referencing the grid. Any idea how I can do this? 
Stefan
Telerik team
 answered on 21 Mar 2012
1 answer
139 views
Hi-hi,

After row reorder (sorting in RadGridView), from my code I'm trying to set a value in selected rows.

for(int i=0;i<myGrid.SelectedRows.Count;i++)
myGrid.SelectedRows[i].Cells[0].Value = ":)";

before row reorder (rows sorting from RadGridView control, by pressing on appropriate column) it works.
after reorder - the only first row is available to edit, others are skipped.

Why?
Robb
Top achievements
Rank 1
 answered on 21 Mar 2012
3 answers
147 views
Hi,

I'm using richtextbox with TelerikEditor and have come across the following problem. If I use Text Highlight Color on my text, the highlight color is not saved. ie when reloading the record which was saved in xaml the highlight is gone. Any one else come across this one.

Thanks,
Karl
Stefan
Telerik team
 answered on 21 Mar 2012
2 answers
326 views
I have a TreeView that I would like to display a set of objects where they each contain a list<> or BindingList<> of objects of the same type as the base class. It is a recursive type. I am having a hell of a time getting this list to display anything other than the root list. The more I tinker with the ChildMember or DisplayMember I get either nothing displayed or I get an error:

System.InvalidOperationException was unhandled
  Message=Failed to compare two elements in the array.
  Source=mscorlib
  StackTrace:
       at System.Collections.Generic.ArraySortHelper`1.BinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
       at System.Array.BinarySearch[T](T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
       at System.Collections.Generic.List`1.BinarySearch(Int32 index, Int32 count, T item, IComparer`1 comparer)
       at Telerik.WinControls.UI.BindingProvider.TreeNodeList.GetOrAdd(Object key)
       at Telerik.WinControls.UI.BindingProvider.BuildIndex(Int32 index)
       at Telerik.WinControls.UI.BindingProvider.GetNodes(RadTreeNode parent)
       at Telerik.WinControls.UI.RadTreeNode.get_Nodes()
       at Telerik.WinControls.UI.BindingProvider.Reset()
       at Telerik.WinControls.UI.BindingProvider.root_PropertyChanged(Object sender, PropertyChangedEventArgs e)
       at Telerik.WinControls.UI.RelationBinding.OnPropertyChanged(String propertyName)
       at Telerik.WinControls.UI.RelationBinding.set_DataSource(Object value)
       at Telerik.WinControls.UI.BindingProvider.set_DataSource(Object value)
       at Telerik.WinControls.UI.RadTreeView.set_DataSource(Object value)
       at WorkBreakdownStructure.Forms.frmWorkBreakdownStructureEditor..ctor() in C:\[Development]\CSLA_Research_Program\WorkBreakdownStructure\Forms\frmWorkBreakdownStructureEditor.cs:line 33
       at CSLA_Research_Program.Form1.button2_Click(Object sender, EventArgs e) in C:\[Development]\CSLA_Research_Program\CSLA_Research_Program\Form1.cs:line 29
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.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(IntPtr 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 CSLA_Research_Program.Program.Main() in C:\[Development]\CSLA_Research_Program\CSLA_Research_Program\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.ArgumentException
       Message=Argument_ImplementIComparable
       Source=Telerik.WinControls.UI
       StackTrace:
            at Telerik.WinControls.UI.BindingProvider.TreeNodeList.NodeComparer.Compare(Node x, Node y)
            at System.Collections.Generic.ArraySortHelper`1.InternalBinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
            at System.Collections.Generic.ArraySortHelper`1.BinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
       InnerException:


This is my code...
Thanks



        public frmWorkBreakdownStructureEditor()
        {
            InitializeComponent();

            this.radTreeView1.ChildMember = @"Things";
            this.radTreeView1.DisplayMember = @"Name";
            this.radTreeView1.DataSource = GetDefaultThings();
        }


        private Things GetDefaultThings()
        {
            Thing t = new Thing("Object 1");
            Thing tc = new Thing("o2");
            t.Things.Add(tc);
            t.Things.Add(new Thing("o3"));
            t.Things.Add(new Thing("o4"));
            t.Things.Add(new Thing("o5"));
            t.Things.Add(new Thing("o6"));
            t.Things.Add(new Thing("o7"));
            tc.Things.Add(new Thing("gc1"));
            tc.Things.Add(new Thing("gc2"));
            tc.Things.Add(new Thing("gc3"));
            tc.Things.Add(new Thing("gc4"));
            Things ts = new Things();
            ts.Add(t);
            ts.Add(new Thing("Object2"));
            ts.Add(new Thing("Object3"));
            ts.Add(new Thing("Object4"));
            ts.Add(new Thing("Object5"));
            return ts;
        }
    }

    public class Things : BindingList<Thing>    {    }

    public class Thing
    {
        public Thing() { }
        public Thing(String name) : this() { _name = name; }

        private String _name = "";
        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private Things _things = new Things();
        public Things Things { get { return _things; } }
    }

Julian Benkov
Telerik team
 answered on 21 Mar 2012
1 answer
175 views
Hi,

I am currently evaluating the radgridview in UNBOUND mode.

I have used .Relations.AddSelfReference which works in my scenario very well

My question is, is it possible to make the indent smaller for the sub rows

+ My Top Row
        My Top Rows Relation #1
        My Top rows Relation #2

I would like to make this indent smaller

+ My Top Row
    My Top Rows Relation #1
    My Top rows Relation #2

Thanks
Stefan
Telerik team
 answered on 21 Mar 2012
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?