Hi,
I have a problem, that I cannot solve. I have a Grid View (see attachment) based on a SQL Table. Now have replaced some colums with a comboBox.
The comboBoxes receive the data from the following table.
| ID | Country | Plant | Area | Machine |
------------------------------------------------
| 1 | DE | MUC | BA | A |
| 2 | DE | MUC | BA | A |
| 3 | AT | VIE | BE | 1 |
| 4 | AT | VIE | BE | 2 |
F.e. The column "Country" in my GridView has as ItemSource a grouping of the column Country. Now I want to update the comboBox "Plant" depending on the value of the ComboBox "Country" meaning that when "DE" is chosen, it should only show "MUC" as a possible entry. How can I do that? Here is my code.
Thanks.
public partial class MainWindow : Window
{
private SqlConnection connection;
private string dbName = string.Empty;
public MainWindow()
{
InitializeComponent();
LoadData();
}
private void LoadData()
{
try
{
string connectionString = "Data Source=localhost;Initial Catalog=Test_DB;Integrated Security=True";
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
string query = "SELECT * FROM dbo.MachineAreas";
SqlDataAdapter adapter = new SqlDataAdapter(query, connection);
DataTable dataTable = new DataTable();
adapter.Fill(dataTable);
gridMachineAreas.ItemsSource = dataTable.DefaultView;
}
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
}
}
private void GridMachineAreas_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
switch ((e.Column as GridViewDataColumn).DataMemberBinding.Path.Path)
{
case "ID":
var newColumn1 = new GridViewDataColumn();
newColumn1.CopyPropertiesFrom(e.Column);
newColumn1.Header = "ID";
newColumn1.Width = 60;
e.Column = newColumn1;
break;
case "Country":
var newColumn2 = new GridViewComboBoxColumn();
newColumn2.CopyPropertiesFrom(e.Column);
newColumn2.Header = "Country";
newColumn2.Width = 60;
newColumn2.UniqueName = "Country";
newColumn2.IsComboBoxEditable = false;
newColumn2.ItemsSource = MakeCountryCollection();
e.Column = newColumn2;
break;
case "Plant":
var newColumn3 = new GridViewComboBoxColumn();
newColumn3.CopyPropertiesFrom(e.Column);
newColumn3.Header = "Plant";
newColumn3.Width = 60;
e.Column = newColumn3;
break;
case "Area":
var newColumn4 = new GridViewComboBoxColumn();
newColumn4.CopyPropertiesFrom(e.Column);
newColumn4.Header = "Area";
newColumn4.Width = 60;
e.Column = newColumn4;
break;
case "Machine":
var newColumn5 = new GridViewComboBoxColumn();
newColumn5.CopyPropertiesFrom(e.Column);
newColumn5.Header = "Machine";
newColumn5.Width = 60;
e.Column = newColumn5;
break;
}
}
private List<string> MakeCountryCollection()
{
List<string> countryCollection = new List<string>();
string query = "SELECT Country FROM dbo.MachineAreas Group By Country";
try
{
string connectionString = "Data Source=localhost;Initial Catalog=Test_DB;Integrated Security=True";
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
using (SqlCommand command = new SqlCommand(query, connection))
{
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
string value = reader.GetString(0);
countryCollection.Add(value);
}
}
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
}
return countryCollection;
}
}
Hey im using the telerik PercentComboBox and i want to change language of the FitToPage and FitToWidthto be displayed in german.
<telerik:PercentComboBox DataContext="{Binding DataContext, RelativeSource={RelativeSource AncestorType={x:Type local:DialogControl}}}"
Value="{Binding ScaleFactor,ElementName=pdfViewer, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
RadPdfViewer="{Binding ElementName=pdfViewer}" ShowFitToWidth="True" ShowFitToPage="True"
telerik:Windows11ThemeSizeHelper.EnableDynamicAnimation="True" Language="de-DE">
<telerik:PercentComboBox.PercentValues>
<telerik:Percent Value="200"/>
<telerik:Percent Value="150"/>
<telerik:Percent Value="125"/>
<telerik:Percent Value="110"/>
<telerik:Percent Value="100"/>
<telerik:Percent Value="90"/>
<telerik:Percent Value="75"/>
<telerik:Percent Value="50"/>
<telerik:Percent Value="30"/>
</telerik:PercentComboBox.PercentValues>
</telerik:PercentComboBox>
Hope there is a way. Thanks
Dominik
I just started WPF trial. I need help though. I am going to have large grids (10Ks rows x 100 columns) with frequent update of certain cells (100s upd/sec).
I am not sure I can use your virtual grid - need more time to understand what are the drawbacks.
So I use RadGridView (see below - this is not final version - just a first try - what I quickly read in your article on making grid more performant).
Columns are made in C# and bound to dictionaries using string key like: `Binding("f[NAME].Value")` where `Value` is of type object (this is best I can do - dont ask - a requirement i cannot circumvent)
Now, what is my question here - when I load grid with data initially - most of the values in cells arent available yet. I am asked to display something to highlight that state. Also sometime some rows might get unavailable in the middle of use. But bottom line - these "unavailable" cues are going to live may be 0.5% of the grid life-time..
I dont want to write cell templates that will lengthen the visual tree and make grid slow for something that i need for very short period of time..
Is there a way to optimise it?
One theory - add something to the visual tree in the beginning and then take it away.. (like walking visual tree manually and inserting a semi-transparent red border or something like that? or changing template of rows, that have became available, into lightweight ones). Concern here - binding might get broken after manipulation with visual tree..
Or I can set all the values to a string like "N/A". However concern here is that what happens with the columns types in this case? Wont this screw the grid ability to sort/filter - because columns will pick up initial "string" type and later, when I change it to real data, (can be date/number/etc) - they break down completely.
Can I set columns type explicitely after N/A disappeared (however not clear - N/A might stay in some rows longer than in others and few could be N/A for lot longer)...
Any trick you can recommend?
NOTE: the same question applies on tree view (even more so)
<telerik:RadGridView x:Name="dg" ItemsSource="{Binding data}"
ValidatesOnDataErrors="InEditMode" IsPropertyChangedAggregationEnabled="False"
GroupRenderMode="Flat" ShowGroupPanel="False"AutoGenerateColumns="False"CanUserFreezeColumns="False"RowIndicatorVisibility="Collapsed"CanUserResizeColumns="False">
Hi,
I have a RadGridView that has a RowDetailTemplate that we are using a listbinding to show another grid showing details associated with the parent row item.
I'm setting RowDetailVisibilityMode to Visible to show the nested RowDetailTemplate expanded by default. All of this data is loaded from a monolith API call and then held in memory.
We are using an ICollectionView to filter the parent grid using fields in the UI.
This all works, BUT when the filter is released using a command and the entire grid is restored from the collection in memory, the child (RowDetailTemplate) grid only shows the values in the first column of the grid rows. The others don't show up unless I resize the App window, then they all show up.
So, I know the data is there, but it's not showing up without resizing the window after we restore the collection.
Is there a known issue with this behavior or a setting that I can apply to either the parent or child grid that will force the column values to re-render in the UI?
Hi,
does the RadWaterMarktextBox support validation at Property level like the DataGrid validation feature ?
Thank you
Hello,
I'm using RadRichTextBox (WPF Telerik 2021.1.222.40) and get an error about my span's font can't cannot be italicized. From what I'm investigating, it seems like my FontFamily is specifying the style so I can't reassign the FontStyle. Some fonts where I am experiencing this problem: MS 明朝 Regular, MS Pゴシック Regular, A-OTF 新ゴ Pro B, A-OTF 新ゴ Pro EL... I assume it has to do with the suffixes behind the font names: Regular, B, EL
Has anyone else encountered this issue?
Thanks for your help.
This is the xaml content of RadRichTextBox:
<t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" xmlns:s="clr-namespace:Telerik.Windows.Documents.Model.Styles;assembly=Telerik.Windows.Documents" xmlns:r="clr-namespace:Telerik.Windows.Documents.Model.Revisions;assembly=Telerik.Windows.Documents" xmlns:n="clr-namespace:Telerik.Windows.Documents.Model.Notes;assembly=Telerik.Windows.Documents" xmlns:th="clr-namespace:Telerik.Windows.Documents.Model.Themes;assembly=Telerik.Windows.Documents" version="1.2" LayoutMode="Flow" LineSpacing="18.6700000762939" LineSpacingType="AtLeast" ParagraphDefaultSpacingAfter="0" ParagraphDefaultSpacingBefore="0" SectionDefaultPageMargin="73,79,72,64" SectionDefaultPageSize="816,1056" SelectedBibliographicStyleName="\APA.XSL" StyleName="defaultDocumentStyle">
<t:RadDocument.Captions>
<t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Figure" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
<t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Table" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
</t:RadDocument.Captions>
<t:RadDocument.ProtectionSettings>
<t:DocumentProtectionSettings EnableDocumentProtection="True" Enforce="False" HashingAlgorithm="None" HashingSpinCount="0" ProtectionMode="ReadOnly" />
</t:RadDocument.ProtectionSettings>
<t:RadDocument.Styles>
<s:StyleDefinition DisplayName="Document Default Style" IsCustom="False" IsDefault="False" IsPrimary="True" Name="defaultDocumentStyle" Type="Default">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LineSpacing="18.6700000762939" LineSpacingType="AtLeast" SpacingAfter="0" TextAlignment="Justify" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="A-OTF ゴシックMB101 Pro U,MS Gothic" FontSize="14" FontStyle="Normal" FontWeight="Normal" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 1 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading1" Name="Heading1Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontSize="18.6666660308838" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 2 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading2" Name="Heading2Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontSize="17.3333339691162" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 3 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading3" Name="Heading3Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 4 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading4" Name="Heading4Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontStyle="Italic" FontWeight="Bold" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 5 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading5" Name="Heading5Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 6 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading6" Name="Heading6Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontStyle="Italic" ForeColor="#FF4F81BD" ThemeFontFamily="major" ThemeForeColor="accent1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 7 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading7" Name="Heading7Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontStyle="Italic" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 8 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading8" Name="Heading8Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontSize="13.3333330154419" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Heading 9 Char" IsCustom="True" IsDefault="False" IsPrimary="False" LinkedStyleName="Heading9" Name="Heading9Char" Type="Character">
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontSize="13.3333330154419" FontStyle="Italic" ForeColor="#FF000000" ThemeFontFamily="major" ThemeForeColor="text1" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Normal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="Normal" Type="Paragraph" />
<s:StyleDefinition DisplayName="TableDefault" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TableDefault" Type="Table">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LineSpacing="18.6700000762939" LineSpacingType="AtLeast" SpacingAfter="0" TextAlignment="Justify" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.TableStyle>
<s:TableProperties Borders="1,Single,#FF000000,none,,">
<s:TableProperties.TableLook>
<t:TableLook />
</s:TableProperties.TableLook>
</s:TableProperties>
</s:StyleDefinition.TableStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TableNormal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="TableNormal" Type="Table" />
<s:StyleDefinition DisplayName="TitleLevel1" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel1" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Gothic" FontSize="18.6700000762939" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel2" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel2" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Gothic" FontSize="18.6700000762939" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel3" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel3" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="24" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="16" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel4" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel4" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel5" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel5" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel6" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel6" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel7" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel7" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel8" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel8" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TitleLevel9" IsCustom="True" IsDefault="False" IsPrimary="True" Name="TitleLevel9" Type="Paragraph">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LeftIndent="0" LineSpacing="21.3299999237061" LineSpacingType="AtLeast" SpacingAfter="0" SpacingBefore="0" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="MS Mincho" FontSize="14" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
</t:RadDocument.Styles>
<t:Section PageSize="793.700805664063,1122.51965332031">
<t:Paragraph Background="#FFD8D6CB" StyleName="TitleLevel1">
<t:ReadOnlyRangeStart AnnotationID="1" />
<t:Span Tag="[INDEX_SID:3295715,DOC_DATA_SID:2646844]" Text="てきすと" />
</t:Paragraph>
<t:Paragraph FirstLineIndent="-12" FontSize="12" LeftIndent="33.3300018310547" LineSpacing="16" LineSpacingType="AtLeast" RightIndent="0" SpacingAfter="4" SpacingBefore="0" TextAlignment="Justify">
<t:Paragraph.ParagraphSymbolPropertiesStyle>
<s:SpanProperties BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" UnderlineDecoration="None" />
</t:Paragraph.ParagraphSymbolPropertiesStyle>
<t:ReadOnlyRangeEnd AnnotationID="1" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="*" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="少額" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Italic" ForeColor="#FF000000" Text="貯蓄非" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS 明朝 Regular,MS Mincho" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="課税制度" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="(マル優)" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS ゴシック Regular,MS Gothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="をご利用いただけます" UnderlineDecoration="None" />
<t:Span BaselineAlignment="Baseline" FontFamily="MS Pゴシック Regular,MS PGothic" FontSize="12" FontStyle="Normal" ForeColor="#FF000000" Text="。詳しくは販売会社にお問い合わせください。" UnderlineDecoration="None" />
</t:Paragraph>
</t:Section>
</t:RadDocument>
I don't see an easy way to do this. I Selected the added item in the view model and then sent a message to the view to get it to call the Begin Edit method, but that didn't cause the card to go into edit mode.
Even though I added an item to the list that was bound to the Items source of the RadCardView, I noticed when I made the below call (from the view code behind), the list of cardViewItems did not contain the newly added object that I added to the source. Not sure why it is not automatically updating the cardviewitems, as the itemsSource is bound to an Observable Collection.
IEnumerable<RadCardViewItem> cardViewItems = cardView.ChildrenOfType<RadCardViewItem>();
I think that when BeginEdit is called, it is not finding the CardViewItem and therefore it does nothing. Not sure how to fix that. Maybe there is a bug in the cardview class.