Hello.
I need update value of RadGridView GridViewCell then she in Edit Mode.
I use MainGrid.BeginningEdit event:
private void MainGridOnBeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs args)
{
if(args == null || args.Cell.Value != null) return;
if (BeginningCellEditEvent != null)
BeginningCellEditEvent.Invoke(args);
}
In BeginningCellEditEvent handler i try set new cell value:
private void ActivityDateFactTable_OnBeginningCellEditEvent(GridViewBeginningEditRoutedEventArgs args)
{
if((args?.Cell == null || args.Cell.Value != null)) return;
if(!(args.Row.DataContext is ViewModel viewModel)) return;
var bindingPath = args.Cell.DataColumn.DataMemberBinding.Path
.Path
.Replace("[", "")
.Replace("]", "")
.Split('_');
if(bindingPath.Length < 3) return;
var calcValue = viewModel.GetCalculatedValue(bindingPath[0]);
if (calcValue != null)
{
args.Cell.Value = calcValue;
args.Cell.UpdateLayout();
}
}
or
private void ActivityDateFactTable_OnBeginningCellEditEvent(GridViewBeginningEditRoutedEventArgs args)
{
if((args?.Cell == null || args.Cell.Value != null)) return;
if(!(args.Row.DataContext is ViewModel viewModel)) return;
var bindingPath = args.Cell.DataColumn.DataMemberBinding.Path
.Path
.Replace("[", "")
.Replace("]", "")
.Split('_');
if(bindingPath.Length < 3) return;
var calcValue = viewModel.GetCalculatedValue(bindingPath[0]);
if (calcValue != null)
{
this.Dispatcher.BeginInvoke
((Action) delegate
{
args.Cell.Value = calcValue;
args.Cell.UpdateLayout();
}
);
}
}
Cell.Value is changed, but in UI not updated (as seen on screenshot).
How i can update value in UI after changing him in code and i need that cell stays in edit mode?
Hi, In my tile view, Items disappear when I apply style on headers of items.
As
---
<Window.Resources>
<Style x:Key="TileViewItemHeaderStyle" TargetType="tileView:TileViewItemHeader">
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Background" Value="LightGray" />
</Style>
<Style x:Key="TileViewItemCustomStyle" TargetType="telerik:RadTileViewItem">
<Setter Property="Header" Value="{Binding Title}" />
</Style>
</Window.Resources>
----
<telerik:RadTileView
ItemsSource="{Binding Tiles}"
MinimizedItemsPosition="Bottom"
HeaderStyle="{StaticResource TileViewItemHeaderStyle}"
ItemContainerStyle="{StaticResource TileViewItemCustomStyle}"
MaximizedItem="{Binding MaximizedTile, Mode=TwoWay}"
PreservePositionWhenMaximized="True"
MinimizedColumnWidth="200"
MinimizedRowHeight="200">
</telerik:RadTileView>
---
However when I remove these lines
HeaderStyle="{StaticResource TileViewItemHeaderStyle}"
ItemContainerStyle="{StaticResource TileViewItemCustomStyle}"
Tiles aappear but obviously without custom
Hello,
I am maintaining some legacy code that runs Silverlight controls, deployed in a SharePoint 2013 web part.
I installed the latest version of 'Telerik UI for Silverlight'. I opened the project and notice that the Telerik references in my Silverlight project have successfully updated to the new version and the designers work fine.
The visual studio projects compile and deploy successfully, but when I go to the SharePoint page, I don't see the controls (in IE which is required for Silverlight).
When I debug the Silverlight code I get message:
Could not load file or assembly 'Telerik.Windows.Controls, Version=2020.3.915.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053).
What should I do to allow SharePoint to find these DLLs? I looked at the prod installation and none of the silverlight dlls (such as Telerik.Windows.Controls) were in the GAC and the application worked fine.
I appreciate any help you can offer.
Hi,
I got problem with SelectedItems binding - If I put breakpoint to the Setter of the SelectedComboFilterItems it will never be hit.
View:
<
telerik:RadAutoCompleteBox
x:Name
=
"ComboFilterAutoCompleteBox"
Grid.Column
=
"1"
Grid.Row
=
"5"
Margin
=
"1"
HorizontalAlignment
=
"Stretch"
TextSearchMode
=
"Contains"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
TextSearchPath
=
"FormattedName"
DisplayMemberPath
=
"Name"
SelectionMode
=
"Multiple"
ItemsSource
=
"{Binding ComboFilterItems,Mode=TwoWay}"
SelectedItems
=
"{Binding SelectedComboFilterItems,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsEnabled
=
"{Binding ComboFilterEnabled}"
FilteringBehavior
=
"{StaticResource CustomFilteringBehavior}"
<telerik:RadAutoCompleteBox.DropDownItemTemplate>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding FormattedName}"
/>
</
DataTemplate
>
</
telerik:RadAutoCompleteBox.DropDownItemTemplate
>
</
telerik:RadAutoCompleteBox
>
Here is ViewModel:
public ObservableCollection<
DocumentType
> mSelectedComboFilterItems = new ObservableCollection<
DocumentType
>();
public ObservableCollection<
DocumentType
> SelectedComboFilterItems
{
get
{
return mSelectedComboFilterItems;
}
set
{
mSelectedComboFilterItems = value;
}
}
public ObservableCollection<
DocumentType
> ComboFilterItems { get; set; } = new ObservableCollection<
DocumentType
>();
Rest of the binding is working fine.
If I select few items the SelectedComboFilterItems will hold those values. Just for some reason the setter is never called.
Cheers
Mike