Telerik Forums
UI for WinForms Forum
2 answers
259 views
Hi Telerik support,

IWhen using drag-drop in the treeview, there is an auto expand behaviour to be able to move a node inside another. Currently, the time required on a node to exapand it is very short. Is it possible to modify this time to expand the node only after a longer time.

I found a post to disable this behaviour (http://www.telerik.com/community/forums/winforms/treeview/prevent-auto-expand-of-nodes-during-drag-and-drop.aspx) but not to modify the delay.

Thanks.
Amand
Top achievements
Rank 1
 answered on 11 Jul 2013
8 answers
422 views
I was working on summary totals of the columns in the gridview and successfully got them at the end of the gridview.

The problem I am facing is the font of the summary column is too small to read properly. I have set the theme as breeze and also seen with other themes and without theme also but it's the same as small(doesn't change). Is there any way to increase the font size and to set the font family(Arial), background color/foreground color.

Also if possible, the alignment of the summary totals. 

All my grid data is looking too god but the only think what is lacking behind is the summary column. I have just recently bought the telerik premium controls(Q3 2009 SP 1).

Please see attached file for more understanding and reference.

Anyone help here will be appreciable. Thanks in advance.

Cheers,
Dimitar
Telerik team
 answered on 11 Jul 2013
3 answers
793 views

 I have a gridview with the datasource set to a bindinglist.  My goal is for the gridview to accurately reflect changes in the bindinglist’s composition (specifically additions at this point).  When I add objects to the bindinglist I get an error saying “Bounds cannot be changed while locked”.   I believe this is an issue with the Gridview because if I do not set the datasource, the bindinglist is populated as expected.  After a lot of searching I came across a few other posts which were similar to my situation:

However these deal with updating data already present in the bindinglist.  My application starts with an empty bindinglist set as the datasource and is populated through code.

 

My C# .Net 3.5  winforms program uses multiple threads to search through all the directories on the machine and return files that meet certain criteria.   The recursive search creates a new thread for each directory found to iterate over it's files:

private  static void IndexDirectory(string directory)
 {
   foreach (string d in Directory.GetDirectories(directory))
       {
           try
             {
                Thread t = new Thread(new ParameterizedThreadStart(GetFiles));
                 t.Start(d);
                 IndexDirectory(d);
              } catch(System.UnauthorizedAccessException){ }
        }
}

These files are used to create objects which are stored in a custom collection object which inherits from System.Collections.ObjectModel.Collection<T>.  I’ve created an event that fires when an object is added to the collection and subscribe to it in my form.  The arguments for the event include the object being added to the collection, so in the event handler I add the object to the bindinglist:
//form field variable used as the datasource for the gridview.
BindingList<MyFileObj> bindingList = new BindingList<MyFileObj>();
 
MyCollectionChangedEventHandler(MyEventArgs e)
{
  bindingList.Add( (MyFileObj) e.GetMyFileObj);
}


When that didn’t work I modified the program to use a backgroundworker and queue hoping that putting the code in the WorkerCompleted method would force it to all execute on the UI thread:

 

Queue<MyFileObj> addMe = new Queue<MyFileObj>();
 
MyCollectionChangedEventHandler(MyEventArgs e)
{
   addMe.Enqueue ( (MyFileObj) e.GetMyFileObj);
   if(!backgroundworker.IsBusy)
       backgroundworker.RunWorkerAsync ();
}
 
 backgroundworker_DoWork(object sender, DoWorkEventArgs e)
{
   Try{
       e.Result = (MyFileObj) addMe.Dequeue();
   }Catch()
   {   //queue empty
   }
}
 
backgroundworker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
     bindingList.Add((MyFileObj) e.Result);
}

Both of these methods of updating the bindinglist result in the same error.

How can I get my changes to the bindinglist to not crash my program when it is set as a datasource? Preferably, without sacrificing the speed gained through multithreading.   

Thanks for any help you can provide. 
Anton
Telerik team
 answered on 11 Jul 2013
1 answer
73 views
Hi everyone ,
i need to display my document in attach file in a windows forms application,
which is the component that I use ?
thank you in advance
sorry for my english
Dimitar
Telerik team
 answered on 11 Jul 2013
6 answers
110 views
how do i get a TimePicker to take a null value?  not the datetime picker, just the time one.  i have the date one working.

i tried setting it to null
timSatStart.Value = null;
and it didn't work, i also tried binding a nullable datetime from the database to it and it won't work either.

both ways set the time picker to the current time.

thanks.
Stefan
Telerik team
 answered on 11 Jul 2013
1 answer
115 views
Hi,
i use LineSeries to display temperature history over time. Because of big data, I would like to build up a DrillDown ChartView where the first view should be categorized by "MMM yyyy" and when I click on each data point I will drill down to "dd/MM/yyyy". However it seems to be that the radChartView1_Drill event wasn't fired when I click on data point.

My question is: How can I make a Drilldown effect for LineSeries Chartview?

I attach below my first view categorized by "MMM yyy"

My code snippet is

private DrillDownController drillDownController = new DrillDownController();
private DateTime lastSelectedMonth;
 
private void InitializeChart()
{
    radChartView1.ShowTitle = true;
    radChartView1.ShowLegend = true;
    radChartView1.ShowSmartLabels = true;
 
    radChartView1.Controllers.Add(drillDownController);
    radChartView1.Drill += new DrillEventHandler(radChartView1_Drill);
    radChartView1.ShowDrillNavigation = true;
    radChartView1.Views.AddNew();
}
 
private void radChartView1_Drill(object sender, DrillEventArgs e)
{
    switch (e.Level)
    {
        case 0:
            GroupByMonthYear(e.View);
            break;
 
        case 1:
            if (e.SelectedPoint != null)
                lastSelectedMonth = Convert.ToDateTime((e.SelectedPoint.DataItem as System.Data.DataRowView).Row.ItemArray[0]);
            GroupByDay(e.View, lastSelectedMonth);
            break;
    }
}
Peter
Telerik team
 answered on 11 Jul 2013
1 answer
153 views
Hello,

I am using "RadDateTimePicker" for choosing only time. The issues is that when i change the hour in the "RadDateTimePicker" control,
the time automatically changes from PM To AM. Suppose the Time shown is "6:44:33 PM", Now if i select "6" (hour) and type 1 using keyboard, the PM part of date automatically changes to AM. Below is the code regarding how i have declare the RadDatetimePicker.

this.radDateTimePicker1.Culture = new System.Globalization.CultureInfo("en-CA");
this.radDateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Time;
            this.radDateTimePicker1.Location = new System.Drawing.Point(135, 176);
            this.radDateTimePicker1.MaxDate = new System.DateTime(9998, 12, 31, 0, 0, 0, 0);
            this.radDateTimePicker1.MinDate = new System.DateTime(2000, 12, 31, 0, 0, 0, 0);
            this.radDateTimePicker1.Name = "radDateTimePicker1";
            this.radDateTimePicker1.NullableValue = new System.DateTime(2012, 9, 11, 9, 28, 9, 125);
            this.radDateTimePicker1.NullDate = new System.DateTime(((long)(0)));
            this.radDateTimePicker1.ShowUpDown = true;
            this.radDateTimePicker1.Size = new System.Drawing.Size(138, 20);
            this.radDateTimePicker1.TabIndex = 93;
            this.radDateTimePicker1.TabStop = false;
            this.radDateTimePicker1.Text = "radDateTimePicker1";
            this.radDateTimePicker1.Value = new System.DateTime(2012, 9, 11, 9, 28, 9, 125);
Stefan
Telerik team
 answered on 11 Jul 2013
1 answer
307 views
I'm using a radgridview to display search results for metadata for files. The grid has 6 columns and for any search I try, whenever I'm adding results to the grid, the whole UI is freezing until the results are added.

I've tried it with a background worker and adding the rows in the report progress event., but it still doing this.

The grid is placed on a tabpage control.
Anton
Telerik team
 answered on 11 Jul 2013
1 answer
77 views
Hi All,

I'm looking for a way to create a gallery as show in the attached image. The screenshot isn't from a Telerik Ribbonbar, but from an other component. Is there a way to get this result with a Telerik RadRibbonbar?

I haven't seen any of this in the demo files.

greetings
George
Telerik team
 answered on 11 Jul 2013
1 answer
109 views
Dear Mr/Mrs
 i bind full name of company in RadDropdownList from database . in auto complete property i have to enter part of first name to get some suggests names. what i want is enter part of S.name Or last name to get some suggests names. for example:
RadDropdownList items are:
-"Rami Ahmed Ziad"
-"Anas Rafik Ibrahim"
-"Ahmed Hany Ali"
-"Reham Morsy Ali"

when i write "r" all items starting with 'r' listed "Rami Ahamed Ziad" and "Reham Morsy Ali" .but what i want is "Rami Ahmed Ziad"
,"Anas Rafik Ibrahim" and "Reham Morsy Ali" i hope it si clear now.
Thank you
Rami
Dimitar
Telerik team
 answered on 10 Jul 2013
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?