Telerik Forums
UI for WPF Forum
3 answers
69 views
Hello,

Does the gridview have a footer row ?

Thanks

Erez
Vlad
Telerik team
 answered on 11 Jun 2009
1 answer
62 views
I'm interested in encapsulating and extending the RadGridView, for example adding New Row and Delete Row buttons above the grid, as a UserControl, but still support XAML manipulation of the GridView by the window upon which my UserControl exists.

Is there a way to add the buttons, etc. with Templates? (instead of encapsulating in a UserControl)

Thanks!
Nedyalko Nikolov
Telerik team
 answered on 10 Jun 2009
3 answers
111 views
Hi !

I downladed & installed the TrailVersion of RAD Controls for WPF.But i couldnt able to work with those controls.When ever i open a project & start adding the RAD control its throwing exception & my whole system is feezing.When i check the task manager the visual studio is consuming very large memory.its taking some time for my system to regain its original state .Before installing the RAD controls my visual studio use to work fine.I dindt get why its happens after installing the RAD controls .

Is the any ideas ?

With Regards,
Madhu k
Boyan
Telerik team
 answered on 10 Jun 2009
1 answer
191 views
Hello,
I'm using dotnet 3.5, WPF.
XP pro SP3.
IE6.0.2900
RadControls_for_WPF_2009_1_0526_TRIAL
C#

I have created a simple RadGridView  with a GridViewComboBoxColumn column.
I have added a combobox "DataTemplate" so that the column cells will look like a combo, and not just
when pressing on one of the cells.

In the constructor of the window1, I call FillStatusComboColumn() to fill the combo with possible values.

*** The problem is that using the "DataTemplate" in the XAML causes the values in the
combobox to disappear. ***

Any ideas ?

Thanks

E. S

<telerik:RadGridView  Name="RadGridView1"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
AutoGenerateColumns="False"
ShowGroupPanel="False"
IsFilteringAllowed="False">
<telerik:RadGridView.Columns>
 <telerik:GridViewComboBoxColumn UniqueName="Status"
                                 HeaderText="STATUS">
 <telerik:GridViewColumn.CellTemplate>
   <DataTemplate>
      <ComboBox />
   </DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
 

private void FillStatusComboColumn()
{
var comboColumn = (Telerik.Windows.Controls.
GridViewComboBoxColumn)RadGridView1.Columns["Status"];
comboColumn.DataMemberBinding = new Binding("ActivityType");
comboColumn.ItemsSource = GetActivityTypes();
comboColumn.DisplayMemberPath =
"Name";
comboColumn.SelectedValueMemberPath =
"ID";
}

public class ActivityType
{
public string Name
{
get;
set;
}

public int ID
{
get;
set;
}

}

private System.Collections.IEnumerable GetActivityTypes()
{
List<ActivityType> ActivityTypes = new List<ActivityType>();

ActivityTypes.Add(new ActivityType() { ID = 0, Name = "" });
ActivityTypes.Add(new ActivityType() { ID = 1, Name = "Val1" });
ActivityTypes.Add(new ActivityType() { ID = 2, Name = "Val2" });
ActivityTypes.Add(new ActivityType() { ID = 3, Name = "Val3" });

return ActivityTypes;

}

Vlad
Telerik team
 answered on 10 Jun 2009
2 answers
215 views
Hi,

I've made a simple program with a RadCarousel in it.  The thing is, I would like to use my own Buttons (outside the carousel) to scroll through the RadCarousel instead of the carousel's default horizontal/vertical scrollbars.  Is there any way to tell the RadCarousel to scroll one way or the other from inside a Button's MouseLeftButtonDown event handler?  I've been trying to achieve this through RaiseSelectionChangedEvent (but can't seem to access the selected item's index) or ScrollViewer (but can't/don't know how to access the carousel's internal ScrollViewer).  I haven't worked a lot with scrolling in WPF before, so I may be missing something obvious.  Any light you could shed on this problem would be very much appreciated!

Thanks,

UIdev
UIdev
Top achievements
Rank 1
 answered on 10 Jun 2009
6 answers
1.2K+ views
I am working on my first WPF project and just started using RadControls for WPF so please forgive me if this is a stupid question :)

I have a RadTreeView with CheckBoxes (IsOptionElementsEnabled = "True" , ItemsOptionListType="CheckList")
In my code behind, I can see which items are checked or not using the "CheckedItems" property. Very nice.

However, how can I change the CheckBox status on individual items in my RadTreeView (check/uncheck) from code behind?
What is the best way to check/uncheck all checkboxes from code behind?

Kind regards,
Lars Bodin

 

 

 

Henrique Duarte
Top achievements
Rank 1
Veteran
 answered on 09 Jun 2009
1 answer
116 views
I'm using the WPF controls, and cannot find any documentation on RadMaskedTextBox.  The API reference has no comments.  How would one know what mask formats are supported?
Boyan
Telerik team
 answered on 09 Jun 2009
19 answers
379 views
Hi,


I have a RadTreeView bound to my datasource and everything is working fine, however, I am having trouble when adding a new object to the underlying databound  collection, your documentation does not seem to cover this scenario in depth. What I would like to achieve is this:-

Each time the user right clicks on a treeviewitem a dynamic context menu is built and displayed. (it has to be a dynamic context menu because each node represents a particular business event)

On selection of a menu item , a new node is added to the tree , brought into focus and in edit mode.

I require a reference to the treeviewitem each time the user selects a node (I am a bit confused why the SelectionChanged event does not pass me back a reference to the treeviewitem)

    <DockPanel x:Name="dp" LastChildFill="True" > 
        <DockPanel.Resources> 
           <ContextMenu x:Key="contextMenu">  
            </ContextMenu> 
            <Style TargetType="telerik:RadTreeViewItem" x:Key="itemStyle">  
                <Setter Property="ContextMenuService.ContextMenu" Value="{StaticResource contextMenu}" /> 
            </Style> 
            <CollectionViewSource x:Key="cvs" /> 
              
            <LocalF:GetHBaseListConverter x:Key="GetHBaseListConverter"/>  
 
            <HierarchicalDataTemplate  DataType="{x:Type LocalModel:BaseListHierarchy}" ItemsSource="{Binding Converter={StaticResource GetHBaseListConverter}}">  
                <StackPanel Name="Node" Orientation="Horizontal">  
              
                    <Image Name="imgIcon" Width="20" Height="20" Stretch="Fill" /> 
                    <TextBlock Name="txtNode"   Text="{Binding Name}"  Margin="5,0,0,0" MouseDown="txtNode_MouseDown" /> 
 
                
                </StackPanel> 
                <HierarchicalDataTemplate.Triggers> 
                     
                   <DataTrigger Binding="{Binding IsFolder}" Value="True">  
                            <Setter TargetName="imgIcon" Property="Image.Source" Value="../../Images/folder.png" /> 
                    </DataTrigger> 
                    <DataTrigger Binding="{Binding IsFolder}" Value="False">  
                        <Setter TargetName="imgIcon" Property="Image.Source" Value="../../Images/diskdrive.png" /> 
                    </DataTrigger> 
                    
                </HierarchicalDataTemplate.Triggers> 
            </HierarchicalDataTemplate> 
             
                 
        </DockPanel.Resources> 
          
        <telerik:RadTreeView ItemsSource="{Binding}"   IsDragDropEnabled="True"  Edited="trvListEvents_Edited"    DataContext="{Binding Source={StaticResource cvs }}"   Name="trvListEvents"  Selected="trvListEvents_Selected"    > 
              
        </telerik:RadTreeView> 
             
    </DockPanel> 

Thanks

P
Paul Gallen
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
59 views
Hi

Is there any reason why the edited event fires twice after editing the radTreeViewItem


Best

P
Bobi
Telerik team
 answered on 09 Jun 2009
2 answers
51 views
Hi

I've installed Rad Controls for WPF "RadControls_for_WPF_2009_1_0526_TRIAL".But when i tried to add the RadGridView control to the project its giving error.Below i've pasted the error message shown in deign window.

Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_HeightsCache() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 73
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.get_ExtentHeight() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 505
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 493
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q1_SP2\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 513
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)


Is there anything wrong happened while installing the package ?

With Regards,
Madhu k


Madhu
Top achievements
Rank 1
 answered on 09 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?