Telerik Forums
UI for WPF Forum
8 answers
189 views
Hello,

I have created an application using the ScheduleView control and would like to persist the appointments.  If I try to use typical serialization methods, I get an exception saying that AppointmentBase is not serializable.  Does anyone know what the best approach is to save appointments to a file?

Thanks,
Mark
Yana
Telerik team
 answered on 24 Jun 2011
3 answers
572 views
Hello,

I need to place edit and delete buttons upon display of the appointments/scheduler, to make the scheduler neat, I would like to disable/override mouse over event, so that the little "x" button wouldn't display anymore.

Appointment template editing can be done to insert the edit/delete buttons, but I don't know how to go about overriding the mouse over event on the appointment control. If anyone can assist me how to do it or give me a different way of looking at it. A sample code would be appreciated.
Pana
Telerik team
 answered on 24 Jun 2011
8 answers
255 views
I would like the mask of a maskedtextbox to be bound to a dropdown or other on the viewmodel parent in a gridview.

I need to be able to switch between hh-mm-ss input and mm-ss input.

How do I implement this??

Tina Stancheva
Telerik team
 answered on 23 Jun 2011
6 answers
100 views
Hi.

I am loading a bar chart with data from an SQL connection. I am colouring the bars using the following:

<Setter Property="Template" >
            <Setter.Value>
                <ControlTemplate TargetType="telerikCharting:Bar">
                    <Rectangle x:Name="PART_DefiningGeometry"
                                   Height="{TemplateBinding ItemActualHeight}"
                                   Width="{TemplateBinding ItemActualWidth}"
                                   Style="{TemplateBinding ItemStyle}" Fill="Red">
                    </Rectangle>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

I need the colour of a bar to change when I move my mouse over it and change back when I move away from it. It shouldn't change back to its original colour if I click on it. How do I accomplish this?

Thanks.
Anand
Anand
Top achievements
Rank 1
 answered on 23 Jun 2011
4 answers
137 views
In my RadGridView I'm getting an invalid cast exception from CalculateAggregates when my aggregate function defined below is invoked:

var totalColumnAggregate = new AggregateFunction<DataRow, int?>
{
    AggregationExpression = target => target
        .AsQueryable()
        .Select("new(it[\"Foo\"] AS Foo)")
        .Cast<int?>()
        .Sum()
};

Any suggestions as to why?

Also, on another note, would the following be valid? (I'm trying to build this Select expression on the fly using Dynamic Linq Library)

.Select("new(it[\"Foo\"] AS Foo) + new(it[\"Bar\"] AS Bar) + new(it[\"FooBar\"] AS FooBar)")
Pete
Top achievements
Rank 1
 answered on 23 Jun 2011
7 answers
196 views
When I drag between two list boxes the mouse location and the start of the cue arrow (with the Icon) is offset a couple of inches down and to the right and it seems to offset the target location too..
2011 Q1 version. Vanilla DragTemplate 

 

 

<DataTemplate

x:Key="DragTemplate">

<Image Source="{Binding IconPath}" Stretch="None" VerticalAlignment ="Top" />  

 

</DataTemplate>

Thoughts?

 

 

I'll add a screen shot if I figure out how to do that..

Tsvyatko
Telerik team
 answered on 23 Jun 2011
6 answers
197 views
Hello,
I use RadGridView with DetailsPresenter together and I want to have DetailsPresent permanently displayed, even if no row is selected or datasource is empty (displayed controls can be empty and non editable in this case).
Thank you very much.
Leos
WPF Q2 2010 SP1
Jonx
Top achievements
Rank 2
 answered on 23 Jun 2011
5 answers
164 views
Dear Telerik,

I've updated our application to the .Net 4 version or Q3 WPF, i'm using the trial whilst the full version is being purchased. (2010.3.1119.40)

Our app was built using Q1 2010. 

I've updated the assemblies, and now the databinding for telerik controls has stopped working.  Lets say I have a view model with a bunch of properties, half of which are bound to telerik controls, and half of which are bound to standard controls. They are all bound to update their source on PropertyChanged. The standard controls still update their view model property, but the telerik controls do not.

help!

thanks
Pete
Konstantina
Telerik team
 answered on 23 Jun 2011
4 answers
133 views
Hello,

I am getting below exception can any one help me on this.its a bit urgent

STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
INNER EXCEPTION
Width must be non-negative.
STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
*****************END******************
Arpit
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
173 views
I'm trying to show only the major ticks and hide all the minor ticks between them, I have set the following properties in my xaml file:
On the AxisX, I set AutoRange="False", MinorTicksVisibility="Hidden", yet all the minor ticks are still showing up. Suggestions?

<chart:ChartArea Grid.Row="1" x:Name="mainChartArea" LegendName="legend">
    <chart:ChartArea.AxisX >
        <chart:AxisX MajorGridLinesVisibility="Collapsed" IsDateTime="True"  DefaultLabelFormat = "dd-MMM"
        Title="Date" MinorTickPointMultiplier="0" AutoRange="False" MajorTicksVisibility="Visible"
        AxisLabelsVisibility="Visible" MinorTicksVisibility="Hidden" />
    </chart:ChartArea.AxisX>
</chart:ChartArea
Yavor
Telerik team
 answered on 23 Jun 2011
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?