Telerik Forums
UI for WPF Forum
1 answer
102 views
In the C# Code behind, how do you set the selected item to an item already in the control. My XAML is

<telerik:RadOutlookBar x:Name="RadOutlookBar"
                     Grid.Column="0"
                     SelectedItem="{Binding SelectedSection, Mode=TwoWay}">
  
</telerik:RadOutlookBar>

So in the view model, I want to iterate through all the Items, find one, then set the control's selected item to it. How do you iterate over the items collection?
Tina Stancheva
Telerik team
 answered on 24 Oct 2011
2 answers
153 views
My question is identical to this one: http://www.telerik.com/community/forums/preview-thread/wpf/gridview/raddatapager-radgridview-refresh.aspx, but unfortunately, the original poster who claimed to have solved it didn't actually post what he did. :-\

I have a RadDataPager bound to

ObservableCollection<Foo> Bar
.
<telerik:RadDataPager x:Name="radDataPager" Source="{Binding Bar}"/>

I have a listbox that has its ItemsSource set to:

<ListBox ItemsSource="{Binding PagedSource, ElementName=radDataPager}"/>

When the underlying collection 'Bar' changes, those changes aren't being reflected in the listbox and I'm not sure why.

Any thoughts?

thanks.

mike
Michael Eaton
Top achievements
Rank 1
 answered on 24 Oct 2011
0 answers
104 views
How would you evaluate an expression generated by the editor without needing to pass it to the RadGridView?

Thanks!

Ron
Ron
Top achievements
Rank 1
 asked on 24 Oct 2011
0 answers
128 views
Hi,

I want to add a context menu for the timeslot in the scheduleview. If I add a contextmenu for the scheduleview, I get context menu everywhere in the control (like GroupHeader, NavigationPanel, etc). But I need the menu only in Timeslot..Please help...

With Regards,
Jeyakumar
jeya
Top achievements
Rank 1
 asked on 24 Oct 2011
1 answer
129 views
Hi,
While i am trying to set the

row.Visibility =

Visibility.Collapsed;

 

then blank spaces appears accross the row in my TreeListView. I do nt want to show the row based on my condition. How i will be able to accomplish that. Please help me.

My requirement is if the row.Level = 3 and row does not have children then i do not need to show that row. My tree can be expanded upto 7th level.

if

 

(objBind.Level == 3 &&  objBind.Items.Count == 0)

 

{

row.Visibility =

Visibility.Collapsed;

 

row.Height = 0.0;

}

Vlad
Telerik team
 answered on 24 Oct 2011
4 answers
110 views

Here, I store the contents of my RadRichTextBox in my database.

For storage I must thus use an export. And, for displaying an importation.

I use all the functions suggested by your RadRichTextBox, primarily:
- MergeField
- Tables
- Image

The concern, it is that according to the provider used, I lose one or more information, has to know:
- DocxProvider, I loses the size of the tables and I lose the style of MergeField
- RtfProvider, I loses MergeField
- XamlProvider, if I use MergeField I have an error message at the time of the importation Boat create Telerik.Windows.Documents.Modele

I
would prefer not to use RtfProvider, indeed, it stock the images with format BMP and that takes too much place.


Could
you indicate good walk to me to be followed?
Joël
Top achievements
Rank 2
 answered on 24 Oct 2011
3 answers
74 views
Hello

We are using the RadGridView to show hierarchical data X levels deep. Typically this is only used up until 5 or 6 levels deep.
We use the RowChildTemplate where we define other radgridviews that display the collections of children (loaded on demand)

Now, the problem is that when we expand a top level node that has a lot of items (2000+), it takes a very long time for the UI to update (> 2 mins) and afterwards the application is very unresponsive + takes up a lot of memory. I have a suspicion this is because the child gridview containing the 2000+ items is actually in the first row, of which a part is shown in the UI obviously. So even if only the top row + 2 or 3 rows of the child gridview is visible in the UI, the other 2997 rows of the child gridview are still instantiated because they are "part of" the top level row so virtualization is not used on "sublevels".
Is this a known problem and do you (or anyone) perhaps have a workaround for this? This is a blocking problem for us...
Vlad
Telerik team
 answered on 24 Oct 2011
1 answer
135 views
HI,
I am trying to display the following HTML content in WPF RadRichTextBox. The image tag is creating some issue that doesn't allow RadRichTextBox to render the HTML. Removing img tag 'src' property displays the content correctly. What am i doing wrong here?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
><title>Untitled</title>
<style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } 
.s_62525130 { font-family: 'Segoe UI';font-style: Normal;font-weight: normal;font-size: 12px;color: #000000; } 
</style>
</head>
<body>
<p class="p_CC664AAA"><img width="127" height="95" src="http://www.google.com//intl/en_com/images/srpr/logo1w.png" /><span class="s_62525130" /></p>
</body>
</html>
Mihail
Telerik team
 answered on 24 Oct 2011
1 answer
155 views
Hi,
I am using a GridViewComboBoxColumn with incremental filtering:                                   
<telerik:GridViewComboBoxColumn Width="auto"
Header="{localization:Translate Key=Ressource_libelleRess,
Default='Libellé Ressource'}"
DataMemberBinding="{Binding RessourceMoyensID, Mode=TwoWay}"
ItemsSource="{Binding ListRessourceMoyens}"
DisplayMemberPath="Value.LibelleRessource"
SelectedValueMemberPath="Value.RessourceMoyensID"
IsComboBoxEditable="True">
<telerik:GridViewComboBoxColumn.EditorStyle>
<Style TargetType="telerik:RadComboBox">
<Setter Property="IsFilteringEnabled" Value="True"/>
<Setter Property="TextSearchMode" Value="Contains"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="StaysOpenOnEdit" Value="True"/>
<Setter Property="OpenDropDownOnFocus" Value="True"/>
</Style>
</telerik:GridViewComboBoxColumn.EditorStyle>
</telerik:GridViewComboBoxColumn>

When I have many items in the combobox (170 in one case, 6000 in another):
1. The filtering doesn't seem to work correctly (from 8 correct elements as in the DB, it shows me 5 correct and other 5 incorrect)
2. For the big one, there are performance issues (one lettre filters in 2-3 seconds).

Have you any solution to this?

Thanks in advance,


Valeri Hristov
Telerik team
 answered on 24 Oct 2011
1 answer
265 views
All terminology aside, I need to know when a pane is visible to a user.  And let me define visible as:

1. Floating panes are always visible
2. For panes in a tab group, the "selected" tab is visible, the rest are visible=false.
3. Pinned panes which are collapsed are visible = false.  If the user clicks on them and they expand, then visible = true for that time period.
4. Panes not in a tab group, are visible=true.

I need this, as our panes have calculation engines in them which consume resources.  And if a pane isn't visible, then those resources shouldn't be wasted.  

Through great panes, I've written a demo which attaches to EVERY event on RadDocking.  Trying to understand when things are triggered, as the documentation is insufficient in my opinion.  

The attached demo project has a Pane which does calculation when calculate is set to true.  So in essence, it needs to be "fixed" for the following cases (which I consider bugs, as there's no event capable of telling me of the appropriate state changes):

1. When a pane is added to a group, PaneStateChanged is called, but it's called BEFORE the state change, and not AFTER as the "ed" on Changed would imply.  So the pane isn't in it's new RadPaneGroup yet, and I don't know which panes to set calculate to false for.
2. Pinned tabs.  This doesn't work at all.  Make a pane, dock it in the main window.  unpin it so it slurps up to the top..  Now, when hovering over "pane 1", the pane is shown. .but no events are triggered on RadDocking.  How am I to know to turn on calculation for the duration of the showing? Is there an event somewhere else to tell me this?

It works in these cases, though the code to do it is ghetto.
1. Changing tabs in a group.  I had to bind to ActivePaneChanged, and iterate through the Parent's of New/Old Pane's tabs, and update them all for the state change.  This is wasteful as RadDocking knows what I want to know internally.

And great..  I can only attach pictures here.. wtf.  I'll add it to the support ticket then, and none of the lovely users of the community will be able to see it..  DUMB restriction!
Miroslav Nedyalkov
Telerik team
 answered on 24 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?