Telerik Forums
UI for WPF Forum
1 answer
191 views
hello

How to bind a simple string array to a RadGridView.How can I achive this problem.
Vlad
Telerik team
 answered on 11 Jun 2009
3 answers
89 views
Hello,

Does the gridview have a footer row ?

Thanks

Erez
Vlad
Telerik team
 answered on 11 Jun 2009
1 answer
83 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
132 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
219 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
298 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.3K+ 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
149 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
447 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
86 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?