version: 2014.3.1202.45
On a dataform with AutoCommit = True....
Am I correct in assuming that means that, when the user is editing an item and then navigates to another item, the dataform should commit the current edit before changing the current item? Likewise, if False, the dataform should cancel the edit, and return the object to its original values.
If that is true, then I would expect to see an EditEndingEvent then an EditEndedEvent thrown with the EditAction = EditAction.Commit.
(on the flipside, if AutoCommit = false, I would expect to see the same events with EditAction = EditAction.Cancel)
This is not happening. Am I misunderstanding the purpose of this setting?
Goal:
I need the opportunity, before the current item has changed, to validate the edit and to update the database with the changes. If the item does not pass the validation, then I need to be able to cancel the item change, keeping the user on the current item until it is valid, or the user cancels the edit.
In this situation, the datasource is a CollectionViewSource, and the CurrentItem is being changed by the user clicking on a RadGridView connected to the same source.
Can anyone provide any insight into making this scenario work properly?
Is it possible that it does work as expected, but I've done something to prevent the AutoCommit from working properly? (like a wrong datasource type or my custom CommandProvider)
thanks
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
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.
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?
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
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.
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
>
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