Telerik Forums
UI for WPF Forum
1 answer
93 views

Hi All,

Is there any current feature in RadPdfViewer through which I can navigate to previously visited pages.

Something like 'Back' button. On click of this, user can see what are the pdf pages he has visited previously.

 

Many Thanks,

Divya

 

Petya
Telerik team
 answered on 03 Jul 2015
16 answers
2.2K+ views
Why doesn't this work in RadGridView but works fine in standard ListView control?:

 
I have a CellTemplate with DataTemplate.Triggers defined:

<Window.Resources>

 

<DataTemplate x:Key="ActiveGraphic">

 

 

<StackPanel>

 

 

<Control x:Name="icon" Template="{StaticResource addImage}" />

 

 

</StackPanel>

 

 

<DataTemplate.Triggers>

 

 

<DataTrigger Binding="{Binding Path=Enabled}" Value="True">

 

 

<Setter TargetName="icon" Property="Template" Value="{StaticResource addImage}"/>

 

 

</DataTrigger>

 

 

<DataTrigger Binding="{Binding Path=Enabled}" Value="False">

 

 

<Setter TargetName="icon" Property="Template" Value="{StaticResource deleteImage}" />

 

 

</DataTrigger>

 

 

</DataTemplate.Triggers>

 

 

</DataTemplate>

and GridViewDataColumn:
<telerik:GridViewDataColumn Header="Activated" DataMemberBinding="{Binding Path=Enabled}" CellTemplate="{StaticResource ActiveGraphic}" />
DataTemplate.Traggers doesn't fire and Template property never changes from default.

 

Maya
Telerik team
 answered on 03 Jul 2015
1 answer
111 views

Hi!

 I want to have a pane without a header, but in this case the user cannot drag the pane. Is there a way to initiate the drag from code or maybe some other way to do this?

 

Nasko
Telerik team
 answered on 03 Jul 2015
1 answer
174 views

We currently are using SQL Server Analysis services as the back end and using Telerik for WPF to display various Pivot Tables from the SQL Server cubes. We provide Telerik control with a Connection settings object via the AdomdDataProvider class to provide connection information as follows

"Provider=MSOLAP.5;User Id=genericuserid;Password=[password];Data Source=[servername];Initial Catalog=[cubename]Timeout=360 

The issue we are having is that we are finding that unless that actual Windows domain user (i.e. the person logged in) has access (via a role defined in the SQL Server cube) then they are refused access even if the user id in the connection string (in this example 'genericuserid') does have full admin privileges, In other words it seems that SQL Server for the purposes of getting at the CUBE data is ignoring the user id passed in the connection string and always using the domain user id.

Is there anyway I can force SQL Server to use the 'genericuserid' so I do not have to explicitly give users access via a role.

 

Thanks

Polya
Telerik team
 answered on 03 Jul 2015
1 answer
218 views
I am looking for maintaining the same recent color list for all the RadColorPicker instances which we have in application. e. g. if user creates a custom color from one colorpicker (and colorEditor) control, user doesn't have to do the same for another color pickers. User should see the same color in recent colors for the all the color pickers.I am trying to figure out, how to implement it. I see the property RecentColorsItemsSource, which could be of use here , but then, I am not able to get it working. I am trying to set sample colors in the code behind like this:  void radColorPicker_Loaded(object sender, RoutedEventArgs e)
        {
            radColorPicker.RecentColorsItemsSource = new List<Color> { Colors.Red, Colors.Pink };
        } but with this code I am getting this error: "Object reference not set to an instance of an object."}   at Telerik.Windows.Controls.RadColorSelector.BindRecentColorsPalette()
   at Telerik.Windows.Controls.RadColorSelector.BindXamlElements()
   at Telerik.Windows.Controls.RadColorSelector.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constr Some help here would be appreciable.
Milena
Telerik team
 answered on 03 Jul 2015
1 answer
192 views

I am looking for maintaining the same recent color list for all the RadColorPicker instances which we have in application. e. g. if user creates a custom color from one colorpicker (and colorEditor) control, user doesn't have to do the same for another color pickers. User should see the same color in recent colors for the all the color pickers.

I am trying to figure out, how to implement it. I see the property RecentColorsItemsSource, which could be of use here , but then, I am not able to get it working. I am trying to set sample colors in the code behind like this: 

 

void radColorPicker_Loaded(object sender, RoutedEventArgs e)
        {
            radColorPicker.RecentColorsItemsSource = new List<Color> { Colors.Red, Colors.Pink };
        }

 

but with this code I am getting this error:

 "Object reference not set to an instance of an object."}

   at Telerik.Windows.Controls.RadColorSelector.BindRecentColorsPalette()
   at Telerik.Windows.Controls.RadColorSelector.BindXamlElements()
   at Telerik.Windows.Controls.RadColorSelector.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constr

 Some help here would be appreciable.

Milena
Telerik team
 answered on 03 Jul 2015
3 answers
435 views

Hello,

I am using Telerik TabControl and have several tab items under it. 

Issue : When I set IsTabEnabled = false in VM, it disables the tabitem but does not apply the below style. The trigger seems to be not getting called when TabItem.IsEnabled Property sets to false. Please suggest.

Thanks,

Abdi

TabItem Style: 

<Style x:Key="TabItemStyle" TargetType="{x:Type telerik:RadTabItem}">       
      <Setter Property="Header" Value="{Binding TabName}" />       
      <Setter Property="IsEnabled" Value="{Binding IsTabEnabled}" />
      <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
      <Setter Property="Template">
          <Setter.Value>
              <ControlTemplate TargetType="{x:Type telerik:RadTabItem}">
                  <Grid x:Name="wrapper">
                      <Grid.RowDefinitions>
                          <RowDefinition/>
                          <RowDefinition/>
                      </Grid.RowDefinitions>
                      <Border
                  Name="Border" Grid.Row="0"
                  Margin="0,0,4,0"
                  Background="{StaticResource TabItem_DefaultBackground}"
                  BorderBrush="{StaticResource TabItem_Border}"
                  BorderThickness="1,1,1,1"
                  CornerRadius="2,5,0,0">
                          <ContentPresenter x:Name="ContentSite"
                  VerticalAlignment="Center"
                  HorizontalAlignment="Center"
                  ContentSource="Header"
                  Margin="16,0,16,0"
                  RecognizesAccessKey="True"/>
                          <i:Interaction.Triggers>
                              <i:EventTrigger EventName="PreviewMouseLeftButtonDown">
                                  <cmd:EventToCommand
                                      Command="{Binding DataContext.TabHeaderMouseDownCommand, Mode=OneWay,
                                      RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}}"
                                      PassEventArgsToCommand="True"/>
                              </i:EventTrigger>
                          </i:Interaction.Triggers>
                      </Border>
                      <Rectangle Grid.ZIndex="1" Name="focusVisualStyle" StrokeThickness="1" Stroke="Black" StrokeDashArray="1 2" SnapsToDevicePixels="true" Visibility="Hidden" Margin="0,0,4,0"/>
                      <Border x:Name="OuterBorder" Grid.Row="1" BorderBrush="{StaticResource GenericSelItem_Border_Background}" BorderThickness="0.5,0,0,0.5" />
                  </Grid>
                  <ControlTemplate.Triggers>
                      <Trigger Property="IsSelected" Value="True">
                          <Setter Property="Panel.ZIndex" Value="100" />
                          <Setter TargetName="Border" Property="Background" Value="{StaticResource PMDarkGreen}" />
                          <Setter TargetName="Border" Property="BorderThickness" Value="1" />
                          <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource PMDarkGreen}" />
                          <Setter TargetName="Border" Property="Height" Value="24" />
                          <Setter Property="Foreground" Value="{StaticResource GenericActive_Foreground}" />
                          <Setter Property="FontFamily" Value="Verdana" />
                          <Setter Property="FontSize" Value="11" />
                          <Setter Property="FontWeight" Value="Bold" />
                          <Setter Property="Opacity" Value="30" />
                      </Trigger>
                      <Trigger Property="IsSelected" Value="False">
                          <Setter Property="Foreground" Value="Black" />
                          <Setter Property="FontFamily" Value="Verdana" />
                          <Setter Property="FontSize" Value="11" />
                          <Setter Property="FontWeight" Value="Bold" />
                          <Setter Property="Opacity" Value="30" />
                          <Setter TargetName="Border" Property="Height" Value="24" />
                      </Trigger>
                      <Trigger Property="IsEnabled" Value="False">
                          <Setter TargetName="Border" Property="Background" Value="{StaticResource GenericDisabled_Background}" />
                          <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource GenericSelItem_Border_Background}" />
                          <Setter Property="Foreground" Value="{StaticResource GenericDisabled_Foreground}" />
                          <Setter TargetName="Border" Property="BorderThickness" Value="1" />
                          <Setter Property="Opacity" Value="20" />
                      </Trigger>
                      <Trigger SourceName="Border" Property="IsMouseOver" Value="True">
                          <Setter Property="Foreground" Value="{StaticResource GenericMouseOver_Foreground}" />
                          <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource GenericMouseOver_BorderBackground}" />
                          <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource GenericMouseOver_BorderBackground}" />
                          <Setter TargetName="Border" Property="Background" Value="{StaticResource GenericMouseOver_BorderBackground}" />
                      </Trigger>
                      <Trigger Property="IsFocused" Value="True">
                          <Setter TargetName="focusVisualStyle" Property="Visibility" Value="Visible"/>
                      </Trigger>
                  </ControlTemplate.Triggers>
              </ControlTemplate>
          </Setter.Value>
      </Setter>
  </Style>

Kiril Vandov
Telerik team
 answered on 03 Jul 2015
5 answers
288 views
I have a couple of questions:

1. Is there a quick way to change Connector's tooltip?

2. I want to prevent a connection creation in certain situations, e.g. create an unconnected node from one of sides. What is the best way to do it?
Petar Mladenov
Telerik team
 answered on 03 Jul 2015
1 answer
184 views

Hi There, I've a tricky question about connector and connection.

I need to develop a GUI where I can let the user define a connector based upon a polyline (or directly a polyline) by 3 points : A-start, C-end and a third one (B) to adapt the resulting curve to a set of points (to match the more it can the shape see the attached file).

In fact, the main problem is to determine how to retrieve parameters setup by the user when moving the connector.

Once done, how can I access polyline parameters between A and B, B and C. The main goal is to retrieve the equation between the three points. I know it can be done through an equation system solving, but do the TELERIK object is providing any useful attributes or methods?

I mean by example : tension value between points for the spline, factors of the cubic equation, ...

 
Let me know please

Petar Mladenov
Telerik team
 answered on 03 Jul 2015
5 answers
182 views

Hello,

Here is My XAML. If I see it in Chart, I appear as attached file. Now, I want to join those scattered points. If we observe those clearly, they appear in "D" shape.

 I want to join all the datapoints in Line as D

 <telerik:RadCartesianChart x:Name="CartesianChart1" >
            <telerik:RadCartesianChart.HorizontalAxis >
                <telerik:LinearAxis Maximum="{Binding PMax}" Minimum="0"  />
            </telerik:RadCartesianChart.HorizontalAxis>

            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Maximum="{Binding Max}"  Minimum="{Binding Min}" />
            </telerik:RadCartesianChart.VerticalAxis>
            
            <telerik:RadCartesianChart.Annotations>
                <telerik:CartesianGridLineAnnotation Axis="{Binding VerticalAxis, ElementName=CartesianChart1}" Value="0" ></telerik:CartesianGridLineAnnotation>
            </telerik:RadCartesianChart.Annotations>
            
            <telerik:RadCartesianChart.Series>
                <telerik:ScatterPointSeries>
                    <telerik:ScatterPointSeries.DataPoints>
                        <telerik:ScatterDataPoint XValue="250" YValue="-100"  />
                        <telerik:ScatterDataPoint XValue="250" YValue="178" />
                        <telerik:ScatterDataPoint XValue="496" YValue="-100" />
                        <telerik:ScatterDataPoint XValue="496" YValue="178" />
                        <telerik:ScatterDataPoint XValue="520" YValue="-89" />
                        <telerik:ScatterDataPoint XValue="520" YValue="90" />
                        <telerik:ScatterDataPoint XValue="528" YValue="0" />
                    </telerik:ScatterPointSeries.DataPoints>
                </telerik:ScatterPointSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>

Martin Ivanov
Telerik team
 answered on 03 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
+? 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?