Telerik Forums
UI for WPF Forum
6 answers
258 views

I am using radscheduleView and i am adding a day with multiple resources. 
In the attached image i have 2 columns one for each combination of resources. I need to display the number of appointments there are for each day and i am able to do.

the first column shows the right number (4) but the second column also displays 4 and it should display 0
i am using mvvm and i have a view model data bin to the RadSchedulView and there is a property on this view model that is data bind to group header template 
<TextBlock Margin="4,0,0,0" Text="{Binding DataContext.NumberOfAppointments, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadScheduleView}}"/>

What i want to do is have a different value for each column. I guess i can use converter and return the value and some how keep track of the column being added.

but that will not work if user adds or delete an appointment, i need some way to bind the header to a property and then raise the property changed event.

Thanks

Vikas

Vikas
Top achievements
Rank 1
 answered on 21 Jul 2015
4 answers
169 views

After last update the RibbonWindow can not correctly displayed.

If the RibbonWindow property WindowState="Maximized" the window was not correctly displayed. The left boarder is not complete visible on screen and on the right side i see a pice from the desktop.

When the user changed the windowsize, the RibbonWindow displayed like the attached example.

 

Harald
Top achievements
Rank 2
 answered on 21 Jul 2015
2 answers
188 views

Hi,
I have a gridview to show only some columns of a table the first time, and some others after the first time. The problem is if I do not include all columns in the first query when the query is changed the gridview do not update those columns.
Please assist me in this regard
Thank you

XAML
<telerik:RadGridView Grid.Row="1" Grid.ColumnSpan="4" Name="GridNewDate" ItemsSource="{Binding Path=dataTable}" ActionOnLostFocus="None"
                                         AutoGenerateColumns="False" HorizontalAlignment="Left" CanUserInsertRows="False" CanUserDeleteRows="True"
                                         ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" Margin="0,5,0,0"   CanUserFreezeColumns="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="A"                           DataMemberBinding="{Binding A}" />
                            <telerik:GridViewDataColumn Header="B"                           DataMemberBinding="{Binding B}" />
                            <telerik:GridViewDataColumn Header="C"                            DataMemberBinding="{Binding C}" />
                            <telerik:GridViewDataColumn Header="D"                            DataMemberBinding="{Binding D}" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

C# (Model)
DataTable dataTable;
…
If (firstTime)
{
_View.GridNewDate.ItemsSource = GetData(“SELECT A, C FROM T”);
                firsTime = false;
}
else
{
_View.GridNewDate.ItemsSource = GetData(“SELECT A, B, C, D FROM T”);

}

Quan
Top achievements
Rank 1
 answered on 21 Jul 2015
3 answers
267 views
Is there a simple way to globally change font settings such as font type, font size, and font color?
Vanya Pavlova
Telerik team
 answered on 21 Jul 2015
5 answers
479 views

From following the Telerik documentation on cell validation, there seems to be two distinct approaches:

 -Handling a Cell Validation event in code behind, which leads to a nice styling around the cell, a red triangle which encourages the user to hover over, and an animated red tooltip.

 -Throwing an exception in the binding layer, which just leads to a red border around the cell.

http://docs.telerik.com/devtools/silverlight/controls/radgridview/features/managing-data-validation​

 Is there a reason why the 2nd approach is so lacking compared to the first?

 Is there an example demonstrating how to have Property validation but with the improved styling?

Stefan
Telerik team
 answered on 21 Jul 2015
2 answers
223 views

Hi,

I can make my own RadDiagramShape Style:

<Style TargetType="telerik:RadDiagramShape"
       x:Key="ShapeStyle">
    <Setter Property="Width"
            Value="200" />
    <Setter Property="Height"
            Value="80" />
    <Setter Property="FontSize"
            Value="16" />
    <Setter Property="StrokeThickness"
            Value="1" />
    <Setter Property="BorderBrush"
            Value="Black" />
    <Setter Property="Stroke"
            Value="Black" />
    <Setter Property="Background">
        <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1"
                                 StartPoint="0.5,0">
                <GradientStop Color="#FFB0B0FB"
                              Offset="0" />
                <GradientStop Color="#FF3C2ECA"
                              Offset="0.527" />
                <GradientStop Color="#FF746BCC"
                              Offset="0.987" />
            </LinearGradientBrush>
        </Setter.Value>
    </Setter>
    <Setter Property="Foreground"
            Value="White" />
</Style>

<telerik:RadDiagram Grid.Row="1"
                    IsRotationEnabled="False"
                    AllowDrop="True"
                    SelectionChanged="MainDiagram_SelectionChanged"
                    ShapeStyle="{StaticResource ShapeStyle}"
                    ConnectionStyle="{StaticResource ConnectionStyle}"
                    ConnectionBridge="Gap"
                    IsPanEnabled="True"
                    x:Name="MainDiagram"> 

 

<telerik:RadDiagramToolbox x:Name="MainToolBox"
                           IsEnabled="{Binding ActiveStructuur, Converter={StaticResource NullToBoolConverter}}"
                           HorizontalAlignment="Stretch"
                           Title="Gallery"
                           Header="ToolBox"
                           IsOpen="False" />
 

From code behind and the ToolBox these are respected: FontSize, StrokeThickness, BorderBrush, Stroke, Background.

But not the width and height when I drag from the ToolBox.

They are respected when I add the shape from code behind.

Is there a way to make the ToolBox respect the width and height I specified in the style?

Regards,

Bayram

B
Top achievements
Rank 2
 answered on 21 Jul 2015
1 answer
150 views

Hi,

I can't figure out how to change the geometry of a Shape in a Diagram using the SettingsPane. For example, I want to change a circle to a rectangle.

In your example:

http://demos.telerik.com/silverlight/#Diagrams/DesignToolbox

There is a SettingsPane that appears when you click on the cog next to a diagram shape.

Under the Style tab there is a Geometry, but that only changes the line style.

Is there a way to change a circle to a rectangle?

Regards,

Bayram

 

Martin Ivanov
Telerik team
 answered on 21 Jul 2015
5 answers
168 views
Hi, is there any way to make the settings pane floatable?

thank you in advance.
Petar Mladenov
Telerik team
 answered on 21 Jul 2015
1 answer
127 views

Hi,

 I am trying to set the Header and Footer(Raddocument's) default style. Could you guys help me in this please ? 

 We configure the MainDocuments default style in the xaml and load them using XamlFormatProvider.Import(xaml) to create the instance of RadDcoument. Would be great if we could set default style for Header and footer in xaml as well and load them. 

If configuring like above is not possible, please suggest some other way to set the default style for Header and footers

Thanks

Anand

Mihail
Telerik team
 answered on 21 Jul 2015
1 answer
260 views

 Hi, 

I am trying to set Default style for the RadDocument Header and Footer, could you guys help me in this please ? I would like to set them on loading the document and creating the Raddocument instance.

 We set the MainDocuments default style in xaml and load the xaml using XamlFormatProvider.Import(xaml) to create default document. would be great if we can configure style for the Header and footer in xamlas well.

If configuring in xaml is not possible, please suggest some other approach to achieve this

Thanks

Anand

Mihail
Telerik team
 answered on 21 Jul 2015
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
InlineAIAssistant
+? 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?