Telerik Forums
UI for WPF Forum
9 answers
113 views
Hi!

I've a tree(representing a folder/file tree). I want to add a contextMenu only on "Folder" element

On all my "INodeElement", I've a property "IsFolder".

How to do that the contextMenu is only displayed when this property is true?

OR
How to have a different contextMenu depending of this property?

Thank you!
Viktor Tsvetkov
Telerik team
 answered on 01 Sep 2010
3 answers
394 views
Hello,

In all the various examples that I've seen of changing the application theme, when changing the theme from one to the other it will reload the entire application and all default values.  Is there a way to change the application theme without having to do it in the constructor of the app?

For example, in your online demos and local demos after installing the WPF toolkit, there is a drop down box that allows the user to change the theme of the current demo.  If it's the combo box demo, if I change the values of the combo boxes to something else and then change the theme, the default values are selected again and my previous selections are reset.  The same thing happens in the dock manager demo, if I close one or both of the top tabs and then change the theme, the tabs are reloaded.  This appears to be because in all the demos, the themes are set in the constructors, thus changing them would require the constructors to reload which would cause any user input to be completely forgotten.

Is there a way of getting around this?  Or would I be forced to individually change the themes on each individual control instead of the application theme to get what I want?

Thanks,
David
Veselin Vasilev
Telerik team
 answered on 01 Sep 2010
5 answers
168 views
Hi,

I'm using a custom sort algorithm. One of my columns is bound to a property of type object. If I click on the header of this column the SortingStateChanged event is not fired. If I change the type of the property to string, the event is fired.

Is there a way to sort columns bound to a property of type object?

Regards Uli
Maya
Telerik team
 answered on 01 Sep 2010
1 answer
63 views
Hi,

I have a grid bound to a XMLDatasource. The grid is having around 1000 rows and 100 columns. Once we call grid.ItemSource=XMLDataSource, system memory consumption starts increasing. It reaches till 1.5GB and system out of memory exception is throwing. How can we handle this?

Please help.

Thanks and Regards,
Norbert John
Vlad
Telerik team
 answered on 01 Sep 2010
2 answers
117 views
Hi Everyone
Thanks IN Advance,
I have a gridview with a radiobutton in a datatemplate, the problem is if i click on any of the radiobutton list in the grid the selected item of the gridview doesnot change as it would happen normally.

Example:
 <telerikGrid:GridViewDataColumn Header="Magnifier" DataMemberBinding="{Binding IsPrimary}" IsReadOnly="True">
                                                <telerikGrid:GridViewDataColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <RadioButton HorizontalAlignment="Center" IsChecked="{Binding IsMagnifier}" x:Name="radMagnifier" GroupName="magnifier" Checked="radMagnifier_Checked" />
                                                    </DataTemplate>
                                                </telerikGrid:GridViewDataColumn.CellTemplate>
                                            </telerikGrid:GridViewDataColumn>                                            
                                        </telerikGrid:RadGridView.Columns>

If there are ten rows populated if am clicking on the third row then the selectedItem object of the grid doesnot change to the third row, Can anyone helpme out in this case.

Thanks 
Sampath Kumar



Sampath
Top achievements
Rank 1
 answered on 01 Sep 2010
1 answer
86 views
Is there a way to move the map navigation control from the bottom center to the bottom right or left?  Also, can we change the height and width to make it smaller?

Also, I changed the MaxZoomLevel="6" MinZoomLevel="2" on my map provider.  But now when I use the slider in the map zoom control, the range of the slider didn't update.  Is it possible to update the slider's range?

Thanks
Christopher
Top achievements
Rank 1
 answered on 31 Aug 2010
1 answer
117 views

I have the latest build. 2010 Q2 SP1.
I have an issue wtih the RadNumericUpDown minimum property. Let's say the minimum property is set to 5 and the Value Property is bound to an object that has not been set yet. The control appears initially with a value of 0 and you cannot change it using the updown buttons since moving it up does not meet the minimum value.

Any suggestions?

Here is my xaml:

<ItemsControl ItemsSource="{Binding WorkingVentilatorOrder.VentilatorOrderParameterValueList_}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <StackPanel Visibility="{Binding EndTime, Converter={StaticResource NullVisibilityConverter}, ConverterParameter=visible}" Margin="10,5,10,5">
                <TextBlock Text="{Binding VentilatorParameter_.Name}" Style="{DynamicResource DialogTextBlockStyle}" />
                <telerik:RadNumericUpDown Value="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="{Binding VentilatorParameter_.MinValue, Converter={StaticResource NullValueConverter}, ConverterParameter=0}" Maximum="{Binding VentilatorParameter_.MaxValue, Converter={StaticResource NullValueConverter}, ConverterParameter=1000}" ValueFormat="Numeric" />
            </StackPanel>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
StevenDale
Top achievements
Rank 2
 answered on 31 Aug 2010
3 answers
227 views

 

Hi,

 

How can I pin the RadPane programmatically when I click on RadPane tab header?

 


Thanks

RJ



Igor Macedo
Top achievements
Rank 2
 answered on 31 Aug 2010
1 answer
186 views
I am adding a RadDocumentPane to a PaneGroup inside a DocumentHost with no issue with the following code:

 

RadDocumentPane docPane = new RadDocumentPane();

 

docPane.Header = header;

docPane.Content =

"New Pane";

 

 

docPane.CanUserClose =

false;

 

paneGroup.Items.Add(docPane);

docPane.MakeFloatingDockable();


This opens the pane without docking it.  However I cannot set the size of the pane.  I have attempted using docPane.Width / docPane.Height and docPane.RenderSize(w,h) with no change to the size of the pane. 

Is there a way to set the width and height of a document pane programatically? 

2nd Item:  I notice that if I resize the pane manually and then dock the pane; when I drag the pane to undock it, it returns to the default width / height.  Is there way to remember the width / height that the pane was docked at and return to that size when it is undocked?

Last Item:  I am attempting to use the docking as a MDI replacement.  My users are slow to change and may resist this because there is no minimize / maximize and the panes can be dragged outside the parent window.  The dragging is more important than the min / max buttons but, is there a reasonable solution / work around for these items?

Thanks in advance.

- Adam

Konstantina
Telerik team
 answered on 31 Aug 2010
1 answer
117 views
I want to know if RadDataFilter can handle the following scenario and if so how would you implement it. What I am needing is an advanced search feature and I think that RadDataFilter may fit. Below is the mock up of my advance search box.

<DockPanel>
                           <telerikData:RadDataFilter Name="radDataFilter" 
                              DockPanel.Dock="Top" 
                              Source="{Binding Items, ElementName=listResidents}"
                              Margin="1"/>
                           <StackPanel Orientation="Horizontal" Margin="5,2.5,5,2.5" DockPanel.Dock="Top">                               
                               <TextBox x:Name="textSearchAdvanced" MinWidth="192" ToolTip="Search Enities By LastName, FirstName, or TaxID(SSN)" Text="{Binding SimpleSearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
                               <telerik:RadButton x:Name="btnFindAdvanced" Width="24" Margin="5 0" HorizontalAlignment="Right" VerticalAlignment="Center" 
                                              telerik:StyleManager.Theme="{Binding Source={StaticResource settings}, Path=Default.CurrentTheme}"
                                              Command="{Binding SimpleSearchCommand}" IsDefault="True">
                                   <telerik:RadButton.Content>
                                       <Image Source="../Resources/Search.png" Height="16" Width="16" ToolTip="Find Resident"/>
                                   </telerik:RadButton.Content>
                               </telerik:RadButton>
                           </StackPanel>
                           <ListView Margin="5,2.5,5,2.5" Name="listResidents" ItemTemplate="{StaticResource ResidentTemplate}" ItemsSource="{Binding ResidentListing}" ext:Selected.Command="{Binding PersonSelectedCommand}" />
                       </DockPanel>
 
The issue though is that RadDataFilter doesn't actually populate the fields you can filter on until I load all of the data. Since I am using OpenAccess to mock up the business objects can it not just read the fields contained in the collection? Also since I am using OpenAccess each class can contain references to other classes. Is there a way to navigate this relationship tree so for example I have a Parent class that has a chail class and I want to search for a field in the child class. Is there a way to do that?

Please let me know if I am not making myself clear. I would really like to use RadDataFilter here, but I also can't pull every record and then start to filter them. Would be way to slow.

Thanks!
Rossen Hristov
Telerik team
 answered on 31 Aug 2010
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?