Telerik Forums
UI for WPF Forum
4 answers
122 views
Hi,
     I am trying to remove the readonlyrange in richtextbox. I have selection for that but the method provided in WPF requires a readonly field ReadonlyRangeStart. How can I get this field from selection. or is there any other way to deal with this problem thanks.


In richtextbox I have selection of single word or paragraph. and need to extract readonlyrangestart field for method editor.document.deletereadonlyrange(readonlyrangestart);.

Thanks.
muhammad
Top achievements
Rank 1
 answered on 24 Jul 2012
5 answers
359 views
Hi,

i add a ClickHandler to a CheckBox in a GridViewDataColumn in Codebehind. But this dont fired the Handler when i click the CheckBox.
Can you please show me the right way to do this?

Thank You
.

Here a Code Snippet

col = new GridViewDataColumn
                            {
                                Header = vspriorities[key],
                                CellTemplate = new DataTemplate()
                            };
  
  
                            cbx = new FrameworkElementFactory(typeof(CheckBox)); ;
                                cbx.SetValue(IsHitTestVisibleProperty, true);
                                cbx.SetValue(FocusableProperty, true);
                                cbx.SetValue(TagProperty, null);
                                cbx.SetValue(MarginProperty, new Thickness(0, 0, 0, 0));
                                cbx.SetValue(TagProperty, key);
                                cbx.SetBinding(DataContextProperty, new Binding());
                                cbx.SetBinding(CheckBox.IsCheckedProperty, new Binding("PrioritaetId") { ConverterParameter = key, Converter = (IValueConverter)TryFindResource("EqualsConverter"), Mode = BindingMode.OneTime });
  
                                //cbx.AddHandler(GridViewCheckBox.ClickEvent, new RoutedEventHandler(VSPriority_Checked));
  
                                cbx.AddHandler(CheckBox.ClickEvent, new RoutedEventHandler (VSPriority_Checked));
  
                             
  
                                //templBorder = new FrameworkElementFactory(typeof(Border));
                                //templBorder.SetValue(StyleProperty, TryFindResource("GridBorder"));
                                  
                                //templBorder.AppendChild(cbx);
  
  
  
                            col.CellTemplate.VisualTree = cbx;
                            col.CellTemplate.Seal();
                           
  
                            StatusColumns.Add(col);
  
                            lvData.Columns.Insert(idx++, col);
Pasquale Zirpoli
Top achievements
Rank 1
 answered on 24 Jul 2012
1 answer
119 views
Hello,
I found a bug (almost comical) that prevents me from moving a task in the gantt chart.  I have tasks A,B,C,and D.  Task B is a child of task A.  Task B depends on task D (via a dependency arrow).  I would like to move task B from being the child of A to being the child of C.

When I do A.Children.Remove(B), I get a "key not found exception" in your code, which I assume means that it couldn't find the other end of the dependecy arrow from D to B.  In order words, I can't remove B because of the arrow.  However, if I do C.Children.Add(B), then I get a "element already exists".  In order words, I can't add B twice.  Conclusion: B cannot be moved without deleting all of its dependency arrows, and likely all arrows on other tasks that point to B.

In order words, B cannot be moved.

It would take too long (computationally) to find and delete all dependency arrows before moving the task, only to recreate them afterwards.  This problems relates to my other query about disabling grouping until all I finish changing the structure.

Thanks,
Eric
Miroslav Nedyalkov
Telerik team
 answered on 24 Jul 2012
1 answer
142 views
Hi,

I set RadMaskedNumericInput's UpdateValueEvent="PropertyChanged" and want to update source propertyChanged. It worked correct if I type any words, but when lose focus, it always update the source again no matter whether change its value. This condition only appear when source property is float or double, never see it when integer. Please give a hand. Thanks very much.
Tina Stancheva
Telerik team
 answered on 24 Jul 2012
1 answer
88 views
I have a fairly simple scenario. In XAML, I've defined a RadDocking control. Within that control, I have a few RadSplitContainers. Within each of those contianers, I have a RadPaneGroup defined. That's the end of the xaml. In code, I dynamically add a pane to the RadPaneGroup that contains a usercontrol. I'm using the RadPaneGroup.AddItem method to do this. In the debugger, I see the new item, but when the window is rendered, there are no panes with content rendered. Is there something else I need to do in order to add panes programatically to pane groups?

Thanks in advance...
-Tony
Tony
Top achievements
Rank 1
 answered on 24 Jul 2012
16 answers
1.0K+ views
In my gridview, I only allow unique combination of values in three of my columns.  However, I want to allow the user to "clone" an existing row, and change the values in the other columns (those not constrained).  How can I copy a new row, and initially show the new row to be in an invalid state?  When I copy a new row now, it appears to be just another, valid row.

Note: The RowValidating event only seems to fire when I've completed an edit on that row.  I need something similar, but outside the scope of editing.
Vic
Top achievements
Rank 1
Iron
 answered on 23 Jul 2012
3 answers
150 views
Hi Telerik Team,

My application has multiple RadPanes, each RadPane has one or more RadGridView(s). I'm looking for a way to export all the RadGridViews on these RadPanes to an Excel files.
Currently, I'm only able to export the RadGridviews on the active RadPane which requires me to click on each RadPanes before exporting in order to export all the RadGridView. For example, I have 3 RadPanes, if I want to export all the RadGridViews in these RadPanes I have to click on these RadPanes one by one before exporting. If I don't do that I will only be able to export the GridViews on the active RadPane, but not all. 

Is there a solution for this? Thank you.    
Nick
Telerik team
 answered on 23 Jul 2012
0 answers
82 views
Hello,

I have a grid that, on mouse over, i need to show a panel with some buttons but only in the first cell.

Do you have any idea how can i do this? 
Felipe
Top achievements
Rank 1
 asked on 23 Jul 2012
5 answers
120 views
Hi

Drop Preview Lines not visible on Radtreeview after upgrading to version 2011.3.1220.35.  It worked fine on previous version.
I tried the setting IsDropPreviewLineEnabled="True" but that does not make the Drop Preview Lines visible.  Any ideas on what may be causing this?

Tina Stancheva
Telerik team
 answered on 23 Jul 2012
1 answer
282 views
When I hit the clear button, it's sets the value to an empty string.  Can I have it set the value to null if I'm binding to a Nullable?
Rick Glos
Top achievements
Rank 1
 answered on 23 Jul 2012
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?