Telerik Forums
UI for WinForms Forum
1 answer
130 views
I have a simple class that I am binding to a RadListView. Is there a way, after binding occurs, to programmically reorder the columns? I want my ID property field to always show first, followed by the rest of the fields.

Thanks,

Alan
Alan
Top achievements
Rank 1
 answered on 23 Jun 2012
1 answer
280 views
Morning,

I'm wondering if there is an easy way of setting the image based on a node level in a tree?

GrandParent    -|
                          |
                          Parent  -|
                                        |
                                        Child
                                        Child
                                        Child

So for each level, I would be able to use the image list and assign 0 to GrandParent, 1 to Parents and 2 to child.  I do not care what the values of the 3 levels are, just its placement in the tree.

Thanks

James
James
Top achievements
Rank 1
 answered on 22 Jun 2012
5 answers
246 views

Hi

How can I filter radGridView (2012.1.321.40) with BindingList<IPresenceLog> on nullable DateTime field "SystemEnd" to get entries with

SystemEnd.Hasvalue=false?  Neither the simple FilterDescriptor nor the DateFilterDescriptor seems to work with any of the available FilterOperators.

//public class PresenceLogModel : PresenceLog, INotifyPropertyChanged, IValidatable
//public class PresenceLog : IPresenceLog
//private BindingList<IPresenceLog> _PresenceLogList = new BindingList<IPresenceLog>();
  
       private void BindDataSource()
        {
            if (radGridViewPZE.Columns.Count == 0)
            {
                radGridViewPZE.MasterTemplate.AutoGenerateColumns = false;
  
                radGridViewPZE.DataSource = _PresenceLogList;
  
                radGridViewPZE.Columns.Add(CommonFunctions.NewTextCol("ResourceNo", "Resource", 100, true));
                radGridViewPZE.Columns.Add(CommonFunctions.NewTextCol("ResourceName", "Resourcen Name", 120, true));
                radGridViewPZE.Columns.Add(CommonFunctions.NewDateTimeCol("SystemBegin", "Begin", 100, true));
                radGridViewPZE.Columns.Add(CommonFunctions.NewDateTimeColWithNull("SystemEnd", "Ende", 100, true));
  
            }
            else
                radGridViewPZE.DataSource = _PresenceLogList;
        }
  
  
         public static GridViewDateTimeColumn NewDateTimeCol(string fieldname, string title, int width, bool isvisible)
         {
             GridViewDateTimeColumn col = new GridViewDateTimeColumn(fieldname);
             col.Name = fieldname;
             col.HeaderText = title;
             col.Width = width;
             col.IsVisible = isvisible;
             col.DataType = typeof(DateTime);
             col.FormatString = "{0:dd.MM.yy HH:mm}";  //dd/MM/yyyy HH:mm
             return col;
         }
  
         public static GridViewDateTimeColumn NewDateTimeColWithNull(string fieldname, string title, int width, bool isvisible)
         {
             GridViewDateTimeColumn col = new GridViewDateTimeColumn(fieldname);
             col.Name = fieldname;
             col.HeaderText = title;
             col.Width = width;
             col.IsVisible = isvisible;
             col.DataType = typeof(System.Nullable<DateTime>);
             col.FormatString = "{0:dd.MM.yy HH:mm}";  //dd/MM/yyyy HH:mm
             return col;
         }
  
  
  
        private void cmbTBFilterOpenEntries_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (cmbTBFilterOpenEntries.ToggleState == ToggleState.On)
            {
                if (resourceFilterOpenEntries == null)
                {
                    //resourceFilterOpenEntries = new DateFilterDescriptor("SystemEnd", FilterOperator.IsEqualTo, new DateTime?(),true);
                    resourceFilterOpenEntries = new DateFilterDescriptor();
                    resourceFilterOpenEntries.PropertyName = "SystemEnd";
                    resourceFilterOpenEntries.Operator = FilterOperator.IsNull; //FilterOperator.IsEqualTo
                    resourceFilterOpenEntries.Value = null;
                    //resourceFilterOpenEntries.IsFilterEditor = true;
                }
                this.radGridViewPZE.FilterDescriptors.Add(resourceFilterOpenEntries);
                if (!(radGridViewPZE.EnableFiltering)) 
                    radGridViewPZE.EnableFiltering = true;
            }
            else
            {
                this.radGridViewPZE.FilterDescriptors.Remove(resourceFilterOpenEntries);
            }
        }

Any suggestions?
Thanks Daniel
Julian Benkov
Telerik team
 answered on 22 Jun 2012
1 answer
79 views
How to use PrintPreview function to print out the child table row?

radGrid..PrintPreview(); << It does work.

Please refer the picture from attachment.
Thank You.
Ivan Petrov
Telerik team
 answered on 22 Jun 2012
1 answer
141 views
Is there a way to do more content customization than simple HTML?

I'd like to be able to add controls and other types of complex content to the content area.
Ivan Petrov
Telerik team
 answered on 22 Jun 2012
8 answers
581 views
If combobox datasource has not enough items, dropdown is not displayed correctly until we resize it. Image in attachment...
Gezim
Top achievements
Rank 1
 answered on 22 Jun 2012
4 answers
264 views
Hi
I set the autoCompeleteMode=SuggestAndAppend     In DropDownList , but when i filter it,   the filtering description is Startwith not Contain.for example when i write 'b' i want to see all the words which are contain 'b' not only the words which are start with 'b' .is it possible to do it?Is it possible to do the same thing in MultiColumnComboboxes?
 
Stefan
Telerik team
 answered on 22 Jun 2012
3 answers
263 views
Hi,

This is a bit strange, but I cannot get the radCalendar special days to work when adding them from code. The special days just doesn't show up on the calendar. What I want is for them just to be Bolded or marked like when they are added in design time, so nothing fancy.

I have tried the example project from this post: http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/calendar-specialdays.aspx and a bunch of other stuff, but nothing seems to work. Adding them in design time makes them show up just fine though.

Any help is appreciated

/Daniel
Ivan Petrov
Telerik team
 answered on 22 Jun 2012
1 answer
167 views
Hello,

After sticking a while how to use themes dynamicly we found a simple solution, don't imaging why the ThemeResolutionService not instances the required theme.

ThemeResolutionService provides several methods to register a theme so we ware expecting he loads also the theme and instances it if required by setting ApplicationThemeName. It doesn't do so.

Our solution is quiet simple. Take a Dictionary<string, RadThemeComponentBase> in class being alive the whole time your application runes (static class or like us in the AddIn class). If a theme is required so check your dictionary if theme is loaded otherwise create object (f.i. with Activator.CreateInstance<...>()) and add it to the dictionary. Now the theme is alive and each change on ThemeResolutionService.ApplicationThemeName uses the living theme.

private void AddinModule_OfficeColorSchemeChanged(object sender,
                                     OfficeColorScheme theme)
{
  string themeName = string.Format("Office2010{0}",
                          theme);
 
  if (!this.themes.ContainsKey(themeName))
  {
     switch (theme)
    {
      case OfficeColorScheme.Black:
        this.themes.Add(themeName,
                    Activator.CreateInstance<Office2010BlackTheme>());
        break;
 
      case OfficeColorScheme.Blue:
        this.themes.Add(themeName,
                    Activator.CreateInstance<Office2010BlueTheme>());
        break;
 
      case OfficeColorScheme.Silver:
        this.themes.Add(themeName,
                    Activator.CreateInstance<Office2010SilverTheme>());
        break;
    }
  }
 
  ThemeResolutionService.ApplicationThemeName = themeName;
}

Hope it helps others


Regards from Leipzig

Holger Boskugel
Jack
Telerik team
 answered on 22 Jun 2012
5 answers
392 views

[Completely new with Telerik]
Hi

I have a Category column in Employee Table as of type GridViewComboBoxColumn and i have assigned a datasource to it.  
The values of this column can be "Male" or "Female". The datasouce contains these two values.

While adding new record I want to pick up 1st available value in datasource as default selected.

How can i do this?

 

Regards

Raghu.

Bob
Top achievements
Rank 2
 answered on 21 Jun 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?