Telerik Forums
UI for WinForms Forum
1 answer
151 views

Hi,

I have a problem with the most simplest thing with RadDateTimePicker (2009.3.9.1203). I only want to set date, at form opening, like this :

 

 

 

Me.radDateTimePickerStart.Value = DateTime.Now.AddDays(-7)

 

 

 

Me.radDateTimePickerEnd.Value = DateTime.Now

if I set property of format to System.Windows.Forms.DateTimePickerFormat.Custom, the render is not updating on the form, but if i debug the control, the value is ok. With custom format the problem disappear.

Here is the complete control setup :
Me.radDateTimePickerStart.AutoSize = True

 

 

 

Me.radDateTimePickerStart.Culture = New System.Globalization.CultureInfo("fr-CA")

 

 

 

Me.radDateTimePickerStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom

 

 

 

Me.radDateTimePickerStart.Location = New System.Drawing.Point(782, 531)

 

 

 

Me.radDateTimePickerStart.MaxDate = New Date(9998, 12, 31, 0, 0, 0, 0)

 

 

 

Me.radDateTimePickerStart.MinDate = New Date(1900, 1, 1, 0, 0, 0, 0)

 

 

 

Me.radDateTimePickerStart.Name = "radDateTimePickerStart"

 

 

 

 

Me.radDateTimePickerStart.NullDate = New Date(1900, 1, 1, 0, 0, 0, 0)

 

 

 

Me.radDateTimePickerStart.Size = New System.Drawing.Size(150, 22)

 

 

 

Me.radDateTimePickerStart.TabIndex = 5

 

 

 

Me.radDateTimePickerStart.Text = "RadDateTimePicker1"

 

 

 

 

Me.radDateTimePickerStart.Value = New Date(2010, 2, 12, 14, 18, 35, 101)

thx,

 

 

 

Dobry Zranchev
Telerik team
 answered on 15 Feb 2010
8 answers
179 views
If I have a gridview and want to export it to excel it does export all values correct.
But if I have a column that is a lookup I get the ID and not the displayed value of the lookuptable value.
Where do I set that settings for my export?

My exportfunction from your VB examples
    Private Sub ExportToExcel(ByVal ExportAsML As BooleanByVal Exportfor2007 As BooleanOptional ByVal exportVisual As Boolean = True)  
        If ExportAsML = False AndAlso saveFileDialog.ShowDialog() = System.Windows.Forms.DialogResult.OK Then 
            'Export To Excel  
            If (Not saveFileDialog.FileName.Equals(String.Empty)) Then 
                Dim file As New FileInfo(saveFileDialog.FileName)  
                If file.Extension.Equals(".xls"Then 
                    'Här skall det bli Ã¤ndring till gamla Excel  
                    '  Export(saveFileDialog.FileName)  
                Else 
                    MessageBox.Show("Felaktig filtyp")  
                End If 
            Else 
                MessageBox.Show("Välj ett filnamn.")  
            End If 
        ElseIf ExportAsML = True AndAlso saveFileDialog.ShowDialog() = System.Windows.Forms.DialogResult.OK Then 
            'Export To ExcelML  
            If (Not saveFileDialog.FileName.Equals(String.Empty)) Then 
                Dim fileName As String = Me.saveFileDialog.FileName  
                Dim exporter As New ExportToExcelML()  
                If Exportfor2007 Then 
                    exporter.RunExport(Me.RadGridView1, fileName, ExportToExcelML.ExcelMaxRows._1048576, exportVisual)  
                Else 
                    exporter.RunExport(Me.RadGridView1, fileName, ExportToExcelML.ExcelMaxRows._65536, exportVisual)  
                End If 
                MessageBox.Show("Export klar.")  
            Else 
                MessageBox.Show("Välj ett filnamn.")  
            End If 
        End If 
    End Sub 
 
Thomas Ossowski
Top achievements
Rank 1
 answered on 15 Feb 2010
1 answer
131 views
Hi,

The contents of the panelBar in ExplorerBarStyle do not resize, if a scrollbar is visible. The vertical scrollbar stays at the current location until one of the contained groups is collapsed or expanded.

Steps to reproduce the problem:

1. Create a new form and add a Panelbar with DockStyle.Fill and set the GroupStyle to ExplorerBarStyle
2. Add a few groups to the Panelbar and set the EnableHostControlMode to true
3. Make sure the CanScroll Property of the Panelbar ist set to true
4. Start the Application
5. Resize the window so that the vertical scrollbar is displayed
6. Drag the right border of the window and resize it (now the scrollbars should be at the location they were before the resizing)
7. Click one of the groups to place the scrollbars in the correct location

Is this behaviour a bug or am I missing something really simple? What do I have to do to always place the Scrollbars at the right border of the window?

My System:
  • OS: Windows 7 64bit
  • Framework: Version 2 0

Edit: Sorry, wrong forum. I've posted it in the Panelbar forum.
Nikolay
Telerik team
 answered on 15 Feb 2010
1 answer
113 views
Hi,

The contents of the panelBar in ExplorerBarStyle do not resize, if a scrollbar is visible. The vertical scrollbar stays at the current location until one of the contained groups is collapsed or expanded.

Steps to reproduce the problem:

1. Create a new form and add a Panelbar with DockStyle.Fill and set the GroupStyle to ExplorerBarStyle
2. Add a few groups to the Panelbar and set the EnableHostControlMode to true
3. Make sure the CanScroll Property of the Panelbar ist set to true
4. Start the Application
5. Resize the window so that the vertical scrollbar is displayed
6. Drag the right border of the window and resize it (now the scrollbars should be at the location they were before the resizing)
7. Click one of the groups to place the scrollbars in the correct location

Is this behaviour a bug or am I missing something really simple? What do I have to do to always place the Scrollbars at the right border of the window?

My System:
  • OS: Windows 7 64bit
  • Framework: Version 2 0
  • Telerik RADControls for WinForms: Q3 2009 SP1 (2009.3.9.1203)
Uwe Honermann
Top achievements
Rank 1
 answered on 15 Feb 2010
8 answers
458 views
Hello Telerik team.

NOTE: this issue appies to  RadCheckBox (and derived/related) in general.

I've noticed that when using a RadCheckBox in either a winform or a as RadCheckBoxkElement (as custom cell edit control in a grid cell) it shows a checkmark when it is set the value Indeterminate.

This occurs as well as for invokation by the user as well as programatically.

MS's checkbox has a nice square to indicate that the value of the checkbox is indeterminate. So Telerik showing a checkmark for both checked and indeterminate is quite confusing to a user.

On a usercontrol / winform the workaround is simple: Just use the MS checkbox instead.
However, as a RadCheckBoxElement in a gridview, there is no workaround for this....??????:


Please let me know how I can use the RadCheckBoxElement in the radgridview cell and see the differnce between Checked, Unchecked and Indeterminate visually.

Kind regards,

Jack
Nikolay
Telerik team
 answered on 15 Feb 2010
1 answer
245 views
Hi Experts,
I want a solution regarding telerik gridview.

I have one Master Grid and one Child Grid view. And i Want a Conditional Column Merging in Child Grid View Template according to the value in one cell.

I have Attached two screen shots for it. 1 Named "Current - Output" is Current Output and 2nd one named "Expected - Output" is Expected  Output.
Waiting for the Positive Response.

Thank You,
Jignesh Patel.
Jack
Telerik team
 answered on 15 Feb 2010
2 answers
293 views

I have control inherited from RadTreeView.

In my constructor i have set

 

AllowDragDrop =

true;

 

void

 

TreeView_ItemDrag(object sender, RadTreeViewEventArgs e)

 

{

 

   //Does nothing

 

}

 

void

 

TreeView_DragEnter(object sender, DragEventArgs e)

 

{

e.Effect =

DragDropEffects.Move;

 

}

 

void

 

TreeView_DragDrop(object sender, DragEventArgs e)
{
  //My business logic....
}

TreeView_DragDrop even is never get executed when i drop a RadTreeNode before/after another RadTreeNode in the view.

Please help...

 

Victor
Telerik team
 answered on 15 Feb 2010
1 answer
159 views
Hi..
     I have RadGridView that takes input from user on runtime. when user clicks new row, instead of completing the first, he must be restrained to enter in new row, I am able to prompt the user to complete the input in first row, but second row is created on clicking on it. I have used Janus Grid before, it has event 'e.cancel = true' option in RowsAdded event. but no such thing in RadGridView. Any solution to restrain empty rows being entered by user..Please Help...?????
Nick
Telerik team
 answered on 15 Feb 2010
3 answers
127 views
What is the control used for the left hand menu in the Run Demo main application?
Nick
Telerik team
 answered on 15 Feb 2010
2 answers
210 views

I have created a control derived from Telerik.WinControls.UI.RadTreeView (Latest trial version)

I am also creating the RadTreeNode on fly..

I am setting below properties at runtime.

groupTreeView.AllowArbitaryItemHeight =

true;

 

 

 groupTreeView.AllowPlusMinusAnimation = 

true;

 

 

 groupTreeView.DropFeedbackColor = 

Color.Black;

 

 

 groupTreeView.Enabled = 

true;

 

 

 groupTreeView.ExpandAnimation =

ExpandAnimation.Opacity;

 

 

 groupTreeView.Focusable =

true;

 

 

 

groupTreeView.PlusMinusAnimationStep = 10;

 

groupTreeView.ShowExpandCollapse =

true;

 

 

 groupTreeView.ToggleMode =

ToggleMode.SingleClick;

 

 

 groupTreeView.UseNewLayoutSystem =

true;

but this does not show me the Expand(+) and collapse(-) sign.


Note my TreeViewXML..
<?xml version="1.0" encoding="utf-16"?>
<TreeView xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" UseDefaultSelection="true" AllowDragDrop="true" AllowPlusMinusAnimation="true" ThemeName="Office2007Black" AllowDrop="true" BackColor="Window" DropFeedbackColor="Red" LineColor="ActiveCaption">
</TreeView>
Please help..

 

 

 

 

Raj Sharma
Top achievements
Rank 1
 answered on 12 Feb 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)
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?