Telerik Forums
UI for WinForms Forum
1 answer
155 views
Hi

I'm trying to retrieve a list of special days held in a table on an SQL server and use those dates as Special Days - how do I do this? I can retrieve the dates into, say, a dataset or gridview but I'm unclear how to then add these as Special Days at run time.

Also I have some code I found that completely disables Sundays on the calendar. How can I adapt this so the same applies to any Special Days? I ask because the code completely greys out Sundays yet Special Days are still 'clickable' and I want them to also be greyed out.

Here's the code:

 

 

 

 

Dim calTable As Telerik.WinControls.UI.CalendarTableElement = TryCast(RadCalendar1.RootElement.Children(0).Children(0).Children(2).Children(0).Children(1), Telerik.WinControls.UI.CalendarTableElement)
        If calTable IsNot Nothing Then
            For Each cell As Telerik.WinControls.UI.CalendarCellElement In calTable.Children
                If (cell.[Date].DayOfWeek = DayOfWeek.Sunday) Then
                    cell.Enabled = False
                End If
            Next
        End If

Thanks for any help
Dan
Jack
Telerik team
 answered on 29 Jan 2013
1 answer
188 views
I am trying to replicate the code listed in the examples fro importing a file to a richtextbox, like

Dim document As RadDocument = Nothing
        Dim provider As IDocumentFormatProvider = New DocxFormatProvider()
        Dim openDialog As New OpenFileDialog()
        openDialog.Filter = "Documents|*.docx"
        openDialog.Multiselect = False
        Dim dialogResult As DialogResult = openDialog.ShowDialog()
        If dialogResult = System.Windows.Forms.DialogResult.OK Then
            Using stream As New FileStream(openDialog.FileName, FileMode.Open)
                document = provider.Import(stream)
            End Using
        End If
        Return document


I am unable to find what are the correct namespaces for RadDocument and  IDocumentFormatProvider, 

I have tried 

imports telerik.wincontrols
imports telerik.wincontrols.ui

etc, but I am kind of lost,

Can you please provide some help?

Stefan
Telerik team
 answered on 29 Jan 2013
17 answers
480 views
Hello,

I'm searching and looking for a solution or idea howto implement a Listbox column with MultiSelect in GridView.

We want cover this aspects:

a) GridViewCell.Value holds an Array of String
b) GridViewCell show a concatenated String of Value
c) Edting cell opens an editor with a RadList control and MultiSelect; MultiSelect handles Shift and Ctrl
d) Editor closes on Popup-Button Click or LostFocus of Popup

First choice was to use GridViewMultiComboBoxColum and depending Editor/Element. But Popup closes on first Click. May be we can overwrite this behavior?

Otherwise in my mind I have to do:

1.) Create new GridViewCellElement, covering Array value and display of it
2.) Create new GridViewColumn with depending Editor/Element

The second part I tried to inherit PopupEditorElement, but got the ListElement not shown in Popup. Popup was always empty. May be I can handle it in the right way?

Please send any hints that let me go on the right track!


Regards from Leipzig

Holger
Philippe
Top achievements
Rank 2
 answered on 28 Jan 2013
2 answers
93 views
How would i add rounded corners to the highlighted item similar to "recent projects" in the visual studio start page?

http://www.telerik.com/community/forums/winforms/dropdownlist-and-listcontrol/dropdownlist-shape-roundrect-c.aspx

I've read the following post, but i can't seem to figure out how to change the selection, rather than the control

Thanks
Andre
Top achievements
Rank 1
 answered on 28 Jan 2013
3 answers
93 views
Hi,

I found interesting error:
1. Run demo from menu start: Telerik -> RadControls for WinForms Q3 2012 -> Demo Application - RadControls for WinForms.
2. From menu select Scheduler.
3. From expanded list of category select Grouping.
4. Change view to Timeline View.
5. From context menu change Time Scales to Year or Month or Week.
6. Change view to Week View.
7. Change back view to Timeline View.
8. You will get "System.NullReferenceException: Object reference not set to an instance of an object".

The same error appear in my application.

Can someone help me how to avoid this?
Ivan Todorov
Telerik team
 answered on 28 Jan 2013
3 answers
165 views
Hi,

I am using a RadGridView where I have two columns ,First columns where all Lables are dispalyed (This is a readonly column) and the Second column all the value can be entered some thing like below:
Description  Value
First Name : Tom
Last Name : Richarson
Passport Number: #########
Age : 12
Weight : 125 Pounds
DOB : mm/dd/yyyy

Actual:
I have a cell validating event where I have validation for Passport Number Value Field  that it has to be 9 digits , I am able to display the error message to the user when user enter less than 9 digits in the Passport Number Value Field   and tries to Tab out, then after the user enters a valid passport number and clicks on tab the focus to set to DOB value field.

Expected: When user enter a valid  Passport Number and clicks on tab then , focus should be set on next editable cell i.e. Age Value Field.

Any help or suggestion on how to fix this issue.


Jack
Telerik team
 answered on 28 Jan 2013
3 answers
222 views
Is there a way to do this?
Jack
Telerik team
 answered on 28 Jan 2013
0 answers
71 views
I have a Multi DocTabStrip;
and each DocTabStrip contain multi DocumentWindow;

I want only one DocumentWindow selected.
(other DocumentWindow in other doctabstrip all deselected.)
Is Possible ?

please help me.
lee
Top achievements
Rank 1
 asked on 28 Jan 2013
2 answers
145 views
Is it possible to prevent users from moving and reordering tiles?
Jack
Telerik team
 answered on 25 Jan 2013
9 answers
255 views
Is there a way to put a date picker in a ribbon bar chunk?
Peter
Telerik team
 answered on 25 Jan 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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?