Telerik Forums
UI for WPF Forum
1 answer
95 views

Hi,

We are using MVVM model. There are two grids parent and Child. Child Grid will be loaded on selecting any Parent row. Child grid will have all cells in Edit mode on Cell Focus and any change done to the cells will be auto saved. The task is to reload the Parent and Child grid when any concurrency exception occurs while auto saving Cells in Child grid. Below code is used to raise an Concurrency exception in viewmodel which is handled to display message box. Once the message is shown dispatcher exception is occuring.

Can you suggest any solution to avoid the Dispatcher  exception?


 

Xaml.cs
---------
private void childgrd_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e)

{

viewmodel.HandleCellEditEnded(e.Cell.Column.DisplayIndex);

viewmodel.HeaderSelected = e.Cell.Column.Header.ToString();

}

viewmodel
-------------
public void HandleCellEditEnded(int Column)
{
Update();
}

public void Update()
{
try
{
  //Save child grid changes
}
catch (DbUpdateConcurrencyException)
{
  MessageBox.Show("Concurrency exception occured");
  SelectedParent = null;
  ParentGridCollection = null;               
  SelectedChild = null;
  childGridCollection = null;
  LoadParent();
}
}

Regards,
Vinetha.P

Nedyalko Nikolov
Telerik team
 answered on 02 Sep 2013
5 answers
507 views
Hi,

I have been working with the validation on my RadGridView. It works a little too well. I don't want to use cell validation but row validation is occurring with every cell edit. I would like to see something like the ValidatesOnDataErrors property contain an option for OnRowFocusLost or similar meaningful option.

I have looked around but in this case cannot seem to find a way of achieving what I want. How do you get the RadGridView to do RowValidating only when the focus is about to go to another row?

Thanks,
Rob
Maya
Telerik team
 answered on 02 Sep 2013
1 answer
93 views
Hi,

I have tried for dynamically add table to the RadDocument on RadDocumentDoubleClickEvent written in code behind file then also table is not reflected to the RadDocument. When I scrolled RadDocment then it reflected, how to add the dynamically table or any inline in element to RadDocument ?.

for reference my code is here
editor.Document.CaretPosition.MoveToPreviousInline();
var currpara = editor.Document.CaretPosition.GetCurrentParagraphBox().AssociatedParagraph;
var atable=ExpandedColl.Where(x=>x.Key==spanbox.Tag).FirstOrDefault().Value;
if(atable!=null)
{
  currsect.Blocks.AddAfter(currpara, atable);
}
Anna
Telerik team
 answered on 30 Aug 2013
2 answers
505 views
Hi,

I have a virtualized tree view with a lot of nodes.

Based on other input I am able to expand the tree at an  appropriate location and select a specified node.

But what isn't happening is the tree view is not scrolling to the appropriate location.

Couldn't work out how to do this programmatically. Could you provide some pointers?


Thanks
Arthur
Top achievements
Rank 1
 answered on 30 Aug 2013
1 answer
129 views
Hi,
I'm using a RadGridView (Q2 2013).
Users can play with this grid, create groups... filters ect..
I'm wondering if is it possible to export the grid in excel (XLSX) and keeping the final look.

Do you have some example? Or some link that I can look?

I found this..
http://blogs.telerik.com/vladimirenchev/posts/13-04-22/how-to-quick-export-to-excel-%28xlsx%29-for-wpf-and-silverlight

Thanks
Yoan
Telerik team
 answered on 30 Aug 2013
8 answers
502 views
In my WPF application, I have  NumericUpDown like that

<telerik:RadNumericUpDown Margin="0, 4, 0, 4"  Value="{Binding MyValue, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Maximum="{Binding MaxWidthValue}" IsEnabled="{Binding IsPropertyEnabled}"/>  MyValue is changed from data.

The problem is :

If this RadNumericUpDown has focus, the UI value does not change even though MyValue changed in Data. As soon as Tab out from this control, UI will change immediately.

If this control does not have focus, the UI displayed value will change instantly as MyValue changes.


Vladi
Telerik team
 answered on 30 Aug 2013
7 answers
212 views
Hi

We're happily using the Telerik RadGridView with FilteringMode="FilterRow" which works great for regular GridViewDataColumn type columns. However, I can't get the filter row to give an option for filtering or sorting for columns of type GridViewComboBoxColumn. I did find this post, but that doesn't apply to FilteringMode="FilterRow" as far as I can tell.

Is there a way to make the FilteRow to behave the same way for GridViewComboBoxColumn type columns as it does for GridViewDataColumn type columns?

Thanks
Oskar.
Yoan
Telerik team
 answered on 30 Aug 2013
1 answer
72 views
Hi,

i would lilke to Highlight Special days in the schduleview like xmas, new year, ... ! Is this possible? These days should get
the backcolor red!

Thanks
best Regards
Rene
Yana
Telerik team
 answered on 30 Aug 2013
1 answer
68 views

   Hi,

Can anybody help on how to use WindowsFormsHost in RadRibbonDropDownButton DropDownContent.
I copied the RadRibbonDropDownButton style, change the popup AllowsTransparency to false (as a known issue for WindowsFormsHost in popup) and set the new style for my RadRibbonDropDownButton, but it is still not show the winforms control.
Something still "block" it, but I did not find.
Please help! Thanks!

   Lacka


Kiril Vandov
Telerik team
 answered on 30 Aug 2013
1 answer
274 views
I'm using a RadDataForm and when it goes into edit mode on a record, pressing the Enter key from inside any control within the Edit Template causes the "RadDataFormCommands.CommitEdit" command to be fired.

Is there any built in way to prevent this? I only want the commit to be fired when the user clicks the actual button
Ivan Ivanov
Telerik team
 answered on 30 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?