Telerik Forums
UI for WinForms Forum
1 answer
277 views
I have a RadGridView in Winforms and a date time cell which when clicked will show the text edit mode and a drop down arrow to the right. On clicking the drop down arrow the nice calendar date picker shows.

I'm trying to get the calendar to show straight away but can't find a method on the calendar object. My current code is as follows;

Private Sub OrderGridView_CellEditorInitialized(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles OrderGridView.CellEditorInitialized
    Console.WriteLine("Editor init: {0}", e.ToString())
 
    Dim editor = TryCast(OrderGridView.ActiveEditor, RadDateTimeEditor)
    If (editor IsNot Nothing) Then
        Dim calendar = DirectCast(editor.EditorElement, RadDateTimeEditorElement)
        calendar.GetCurrentBehavior().DateTimePickerElement.Visibility = Telerik.WinControls.ElementVisibility.Visible
        calendar.PerformClick()
        calendar.Select()
    End If
 
End Sub


Is there a way to do this? Perhaps if not possible, I'll fake a click to the drop down button.

Thanks in advance
Peter
Telerik team
 answered on 25 Jun 2012
1 answer
437 views
gdi error (generic error) occurs when i tried to load data from database which contains Unicode characters to a crystal report. I have tried all Unicode supporting fonts including Arial Unicode MS, AnjaliOldLipi, Thoolika etc.data set ds contains Unicode strings such as "മറ്റ് അര്‍ച്ചന", "അര്‍ച്ചന", etc.  Please find me a solution asap.  
AssetBLL objAssetBLL = new AssetBLL();
            AssetBOL objBOL = new AssetBOL();
            objBOL.tno = Convert.ToInt16(lblTno.Text);
            objBOL.flag = lblflag.Text;
            DataSet ds = objAssetBLL.getDonationBill(objBOL);
            DonationBillReport rpt = new DonationBillReport();
            rpt.SetDataSource(ds.Tables[0]);
            crystalReportViewer1.ReportSource = rpt;
Peter
Telerik team
 answered on 25 Jun 2012
1 answer
113 views
Hi, i have a self-referencing hierarchy grid with 1000 rows and 14 columns and the vertical scrolling is very, very poor. I have tried the app.mda.exe.config solution i have read in this forum but no sense.
Any help?

Thanks
Jack
Telerik team
 answered on 25 Jun 2012
1 answer
165 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
336 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
309 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
146 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
199 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
688 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
333 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?