Telerik Forums
UI for WPF Forum
5 answers
231 views
Hi,

I have two worksheets,

The first worksheet has a set of Defined Names and their values.

The second worksheet has a set of formulas that reference many of the Defined Names from the first worksheet. This is also the active worksheet.

If I set the value of the cell referenced by a Defined Name via code using Cells.SetValue, the value is updated on the first worksheet but the values on the second worksheet (that use the Defined Names) are not updated.

If I swap away and then back to the second worksheet, or make a modification to any cell on the second worksheet, all of the values on the second worksheet then correctly update.

It seems that worksheets not directly updated by Cells.SetValue are not being refreshed, even when they reference the updated cell?

Thanks
Anthony
Boryana
Telerik team
 answered on 07 Aug 2014
4 answers
272 views
How do I display minor gridlines in a ChartView?  The data is displayed in a standard cartesian grid with an X and Y axis.
Martin Ivanov
Telerik team
 answered on 07 Aug 2014
7 answers
243 views
I am trying to create a ChartView that uses a LogarithmicAxis, but I want to control the spacing and interval of the major tick lines & labels.  Currently you can only have major lines that are a equal distance from each other, and the labels will adjust accordingly.   I want to be able to display major lines on the Y-Axis at a set value interval, so that the lines will be spaced closer together as you move up the Y-Axis.

The attached image gives a good example of the affect that I am trying to achieve, with lines at value increments of 5.  Is this something that is easily achievable with this control?

Martin Ivanov
Telerik team
 answered on 07 Aug 2014
1 answer
126 views
Hi,

I am trying to create gridview's columns dynamically and it works ok, I have my own object with all properties I want to set on columns. One of them is CellTemplateName so I can set column.CellTemplate = Resources[columnDefinition.CellTemplateName] as DataTemplate and it works ok.

The problem is when I want to read and save column definitions from gridview. Then I don't know how to get this CellTemplateName. I tried to get column.CellTemplate.DataTemplateKey but it is null.

Can you help what is the right way how to get the correct resource name of the cellTemplate?

Thank you,
Karel Bem
Dimitrina
Telerik team
 answered on 07 Aug 2014
1 answer
129 views
Hi,

I'm using Telerik V2014.1.331.40 and I create a usercontrol which contain a ScheduleView, associated to the ScheduleView, I implemented a behavior derived on the ScheduleViewDragDropBehavior to raise en event on the resize completed operation. Sometime, something verry weird occur in the resize completed operation!!! The "Start" property are always in "Local" but sometime, I say sometime, the "End" property are in "Local" and sometime in "Utc"!!!

        public override void Resize(DragDropState state)
        {
            bool isCompleted = true;

            if (this.OnResizeCompleted != null)
            {
                ScheduleViewByWeekResizeCompletedArgs args = new ScheduleViewByWeekResizeCompletedArgs();

                args.ResizeCompletedAgendaSpot.SourceMeetingId = (Guid)(state.Appointment as AppointmentSpot).MeetingId;
                args.ResizeCompletedAgendaSpot.DestinationSpotStart = state.DestinationSlots.FirstOrDefault().Start;
                args.ResizeCompletedAgendaSpot.DestinationSpotEnd = state.DestinationSlots.FirstOrDefault().End;

                this.OnResizeCompleted(this, args);

                isCompleted = args.ResizeCompletedAgendaSpot.IsCompleted;
            }

            if (isCompleted)
            {
                base.Resize(state);
            }
        }

Thank's
Alain
Yana
Telerik team
 answered on 07 Aug 2014
6 answers
145 views
Hi,

I've written a xaml for adding annotation through a RadRichTextBox on contents in a Word document. But when I try to insert sample text using =rand() im getting the error attached.

Any idea why this is happening? I tried to put break points in every method and events on the code behind but the error shows up even before it executes any of my code.

Thanks,
Dexter
Boby
Telerik team
 answered on 07 Aug 2014
1 answer
162 views
I was looking at the tutorial here:

http://www.telerik.com/help/wpf/gridview-events-validation.html

And when I implemented this, I noticed that the error message only appears when I hover my cursor over the top right arrow. Is there a way to show the error when the user hovers over the cell? It seems difficult for the user to have to highlight such a tiny arrow. Thanks.
Dimitrina
Telerik team
 answered on 07 Aug 2014
2 answers
118 views
Hi together,

is there a way to make the FilteringControl resizeable and moveable via user interaction (e.g. via mouse)?

Best Begards
Andreas
Andreas
Top achievements
Rank 1
 answered on 07 Aug 2014
5 answers
377 views
Hi,

i have a Problem with the Bullet List.

How can I set the default row height and the default line spacing from the BulletList in my richtextbox?

my XAML-Code Looks like this:

​<telerik:HtmlDataProvider Name="DataProvider" RichTextBox="{Binding ElementName=radRichTextBox1}" Html="{Binding Antworttext, Mode=TwoWay}">
<telerik:HtmlDataProvider.FormatProvider>
<telerik:HtmlFormatProvider>
<telerik:HtmlFormatProvider.ImportSettings>
<telerik:HtmlImportSettings UseDefaultStylesheetForFontProperties="True" />
</telerik:HtmlFormatProvider.ImportSettings>

</telerik:HtmlFormatProvider>
</telerik:HtmlDataProvider.FormatProvider>
</telerik:HtmlDataProvider>

<telerik:RadRichTextBox Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" x:Name="radRichTextBox1" IsReadOnly="true" BorderThickness="0" DocumentChanged="radRichTextBox1_DocumentChanged"
HorizontalScrollBarVisibility="Hidden" HorizontalAlignment="Stretch" IsContextMenuEnabled="true" FontFamily="Arial" FontSize="{DynamicResource FontSizeAnswers_rightColumn}" FontStyle="Normal" FontWeight="Normal" DocumentInheritsDefaultStyleSettings="True"
IsFocusable="False" IsHitTestVisible="False" IsImageMiniToolBarEnabled="False" IsSelectionEnabled="true" IsSelectionMiniToolBarEnabled="false"
IsSpellCheckingEnabled="False" >
<telerik:RadRichTextBox.Resources>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="Padding" Value="0"/>
<Setter Property="LineHeight" Value="200"/>
<Setter Property="Background" Value="Red"/>
</Style>

</telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>


Thank you
MANTU
Top achievements
Rank 1
 answered on 07 Aug 2014
7 answers
407 views
I have a GridView with a HierarchyChildTemplate that has a Grid View. I need a context menu in that ChildTemplate GridView that sees things on the View Model. How do I get it to see the viewmodel for the proper binding?

Code:

<telerik:RadGridView Grid.Row="0"
                             x:Name="radGridView"
                             ItemsSource="{Binding Items}"
                             AutoGenerateColumns="False"
                             SelectionMode="Extended"
                             SelectionUnit="FullRow"
                             ShowGroupPanel="False"
                             Margin="25,25,25,25"
                             ui:MultiSelectorBehaviours.SynchronizedSelectedItems="{Binding Path=SelectedItems}"
                             AllowDrop="True"
                             IsFilteringAllowed="True">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition/>
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView ItemsSource="{Binding ProjectionTasksLink}"
                                         AutoGenerateColumns="False"
                                         SelectionMode="Extended"
                                         SelectionUnit="FullRow"
                                         ShowGroupPanel="False"        
                                         AllowDrop="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="Projection"
                                                        UniqueName="Name"
                                                        DataMemberBinding="{Binding}"
                                                        CellTemplate="{StaticResource CellTemplate.TaskName}"
                                                        IsReadOnly="True"/>
                            <telerik:GridViewDataColumn Header="Run Parameter Set"
                                                        UniqueName="RunParametersLink"
                                                        DataMemberBinding="{Binding}"
                                                        CellTemplate="{StaticResource CellTemplate.RunParameterSetName}"
                                                        IsReadOnly="True"/>
                        </telerik:RadGridView.Columns>
                        <telerik:RadGridView.ContextMenu>
                            <ContextMenu>
                                <MenuItem Header="Run Selected Item(s)"
                                         DataContext="{Binding Path=PlacementTarget.DataContext, RelativeSource={RelativeSource AncestorType=ContextMenu}}"
                                         Command="{Binding RunAllSelectedTasksCommand}"
                                         CommandParameter="{Binding Path=PlacementTarget.SelectedContexts, RelativeSource={RelativeSource AncestorType=ContextMenu}, Converter={StaticResource runControllerJobCmdConverter}}">
                                    <MenuItem.Icon>
                                        <Image Source="Images/Run16.png" />
                                    </MenuItem.Icon>
                                </MenuItem>
                            </ContextMenu>
                        </telerik:RadGridView.ContextMenu>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Run Page Name"
                                            UniqueName="Name"
                                            CellTemplate="{StaticResource CellTemplate.RunPageName}"
                                            DataMemberBinding="{Binding}"
                                            IsReadOnly="True"/>
                <telerik:GridViewDataColumn Header="Target Model Object"
                                            UniqueName="AssociatedTargetModelObjectLink"
                                            DataMemberBinding="{Binding}"
                                            CellTemplate="{StaticResource CellTemplate.TargetModelObjectName}"
                                            IsReadOnly="True"/>
                <telerik:GridViewDataColumn Header="InputManager"
                                            UniqueName="AssociatedInputManagerLink"
                                            CellTemplate="{StaticResource CellTemplate.InputManagersList}"
                                            DataMemberBinding="{Binding}"
                                            IsReadOnly="True"/>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Run Selected Item(s)"
                             DataContext="{Binding Path=PlacementTarget.DataContext, RelativeSource={RelativeSource AncestorType=ContextMenu}}"
                             Command="{Binding RunAllSelectedTasksCommand}"
                             CommandParameter="{Binding Path=PlacementTarget.SelectedContexts, RelativeSource={RelativeSource AncestorType=ContextMenu}, Converter={StaticResource runControllerJobCmdConverter}}">
                        <MenuItem.Icon>
                            <Image Source="Images/Run16.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </ContextMenu>
            </telerik:RadGridView.ContextMenu>
        </telerik:RadGridView>

The context menu in the parent grid is fine, but the one in the nested grid is not right.

Side question. Is there a better way to do the nested grid thing than the HierachyTemplate? I would like for this to be one grid that does nesting. I tried using 
ChildTableDefinitions, but I can't specify things like columns and what not.

Thanks,
Greg
Princee
Top achievements
Rank 1
 answered on 07 Aug 2014
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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
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?