Telerik Forums
UI for WPF Forum
3 answers
212 views

Hello!

In my application I have a ListBox and RadScheduleView. I can create a new appointment by drag'n'drop from ListBox. Default duration for new appointment is 1 hour.

I have a  ScheduleViewDragDropBehavior class and I tried to set End property for new appoinment here, but Start and End properties are equal 1000/01/01. 

public class ScheduleViewDragDropBehavior : Telerik.Windows.Controls.ScheduleViewDragDropBehavior
    {
        public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
        {
            if (DataObjectHelper.GetDataPresent(data, typeof(Campaign), false))
            {
                var campaigns = DataObjectHelper.GetData(data, typeof(Campaign), true) as IEnumerable;
                if (campaigns != null)
                {
                    var appCollection = campaigns.OfType<Campaign>().Select(c => new AppointmentCampaign { Subject = c.Name, Campaign = c, Category = new Category("", c.Brush) });
 
                    return appCollection;
                }
            }
            return base.ConvertDraggedData(data);
        }
    }
 

So, how can I change default duration?

Andrey
Top achievements
Rank 1
 answered on 29 Nov 2012
7 answers
119 views
Hello, can anyone give me a hint what is the best way to calculate one cell, which is read only, from two others cells which are changeable in a GgridView.
Intuitive I would take the CellEditEnded event, but maybe there is a smarter way? 
Thank you in advance Uwe

Dimitrina
Telerik team
 answered on 29 Nov 2012
6 answers
196 views
Has anyone else noticed that when you left mouse click to change the caret position for example from page 1 to page 3 that the RadRichTextBox scrolls back up to page 1 and that the caret doesn't position itself to location it was intended to be?

However, if the caret is located at the bottom of page 1 and I left mouse click to position the caret at the top of page 2 then it works fine.

RadRichTextBox only seems to randomly scroll when trying to reposition the caret over a large distance, i.e. from page 1 to 3.

I'm using library version 2012.2.912.40.

Thanks for your time,

Rob
Robert
Top achievements
Rank 1
 answered on 29 Nov 2012
4 answers
171 views
There is sample code in the docs for hiding the match case button here: 
http://www.telerik.com/help/silverlight/gridview-how-to-hide-match-case.html

It appears to be out of date as this code does not build.  I get the following error: 
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<System.Windows.Controls.Primitives.ToggleButton>'

For this line of code in the docs:
 ((StringFilterEditor) sender).ChildrenOfType<ToggleButton>()[0].Visibility = Visibility.Collapsed;

Any ideas how to accomplish this with the latest build of the gridview control?
Mohammad
Top achievements
Rank 1
 answered on 29 Nov 2012
1 answer
221 views
Hi,

I am trying to setup a form that will validate whether a combo box (as well as other inputs) is filled or not.  It seems that the Binding of RadComboBox only happens after PropertyChanged or LostFocus.  What if the input hasn't been touched by the user at all - hence the binding couldn't be triggered?

I can't seems to get it to work.  Please help.

Cheers~
Vladi
Telerik team
 answered on 29 Nov 2012
0 answers
124 views
Hello! Is there way to get default font family from theme for controls like Label, TextBlock etc?

Maybe you have predefined styles for Header/Outline/Simple text controls(Font family, size, color)?
Vladimir
Top achievements
Rank 1
 asked on 29 Nov 2012
1 answer
289 views
Hello, someone could help me with my graphics viewing, I have attached two images to demonstrate what happens, as I have a value over 9000 other minors are not displayed.

Sorry Google Translator :D
Petar Marchev
Telerik team
 answered on 29 Nov 2012
9 answers
538 views
Hi,

I visited your Q3 2011 features site and I'm happy to see that barcode will be included in your tool set soon. Nonetheless, I am disappointed to see that 2-d codes especially QR-code is not included. I really hope that the support for QR-code will be included in the release.

Can you share the roadmap for barcode tool? Thanks.

Zaly
Markus Hopfenspirger
Top achievements
Rank 2
 answered on 29 Nov 2012
1 answer
499 views
Hello,
is it possible to put the language file (Telerik.Windows.Controls.resources.dll) in a other directory

default is;
<apppdirectory>\de
<apppdirectory>\it ...

and i like to put it in 
<apppdirectory>\res\de
<apppdirectory>\res\it

is that possible?

thanks

Remco





Maya
Telerik team
 answered on 28 Nov 2012
1 answer
271 views
Hi,

Is there a way to change font color with RGB and can apply custom color not just the pre programmed one?

Thanks,

Pat
Petya
Telerik team
 answered on 28 Nov 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?