Telerik Forums
UI for WPF Forum
7 answers
185 views
Hi,

I've just started looking at your WPF controls and have a few questions.

- How do I dissable column ordering?
- How do I have cells that show wrapped text?

Thanks

Guido Tapia
Nedyalko Nikolov
Telerik team
 answered on 03 Jul 2009
2 answers
791 views
So in a ListView I can do the following and in my View Model it would set the IsRowSelected property for each object when the row is selected. How can I do this with a RadGridView? We are using MVVM pattern and are trying to have little to no code in the xaml code behind.

Thanks

        <Style x:Key="RowItemStyle" TargetType="{x:Type ListViewItem}"
            <Setter Property="HorizontalContentAlignment" Value="Stretch" /> 
            <Setter Property="IsSelected" Value="{Binding Path=IsRowSelected, Mode=TwoWay}" /> 
            <Style.Triggers> 
                <MultiTrigger> 
                    <MultiTrigger.Conditions> 
                        <Condition Property="ItemsControl.AlternationIndex" Value="1" /> 
                        <Condition Property="IsSelected" Value="False" /> 
                        <Condition Property="IsMouseOver" Value="False" /> 
                    </MultiTrigger.Conditions> 
                    <Setter Property="Background" Value="#EEEEEEEE" /> 
                </MultiTrigger> 
            </Style.Triggers> 
        </Style> 
 
            <ListView  
                Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5" 
                MaxHeight="200"  
                ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                ItemContainerStyle="{StaticResource RowItemStyle}" 
                ItemsSource="{Binding Path=MasterList}" IsSynchronizedWithCurrentItem="True" 
                SelectionMode="Single" 
            > 
                <ListView.View> 
                    <GridView> 
                        <GridViewColumn Header="Item Name" Width="Auto" DisplayMemberBinding="{Binding Path=ItemName}" /> 
                    </GridView> 
                </ListView.View> 
            </ListView> 
 

Milan
Telerik team
 answered on 02 Jul 2009
1 answer
51 views
Hello,

I have a WPF user control that has many RadGridView controls, and the RAM is shooting up to 700 MB usage, and it's taking a long time to process.  A little bit about the process:

I have a part of my app which loads similar result sets together.  So a result set is bound to a RadGridView dynamically.  I query the related data, then loop through the collection of result sets, and dynamically add RadGridView's for each result set.  For one partular result set collection, I may have 20 or more result sets with not a lot of data.

But for some reason, it's chugging along, and RAM usage is through the roof...  any ideas on how to make it perform better?

Thanks.
Hristo
Telerik team
 answered on 02 Jul 2009
1 answer
127 views

Hello,

I have a grid connected to a DataTable.

The grid and datatable both have three columns and three rows.

I want to make a cell in column A uneditable based on a value in a cell in column B
(both cells are in the same row).

I know that I can use BeginningEdit event to cancel an edit attempt in a cell,
however I was wondering if I can reach the same result using XAML trigers
and perhaps just a small relevant class.

Thanks,

Erez

 

 

 

 

Stefan Dobrev
Telerik team
 answered on 01 Jul 2009
5 answers
172 views
I would like to have a grid like the GridView/HeiarchyPropertyHeirarchy demo example with the ability to edit, delete and insert child records. How can I accomplish this?
Vlad
Telerik team
 answered on 01 Jul 2009
1 answer
94 views
I just downloaded the WPF RadControls and they look great.

However, there are two elements I need to create an application that seem to be missing - Printing, and a RibbonBar.

For printing, there are needs such as printing the Calendar, printing reports from data etc. 

The RibbonBar is also nice, as it makes the app look like an Office 2007 type app. (Though a lot of end users still don't seem to like the ribbon.)

Any advice on this would be appreciated.  I would like to build an app around these WPF controls, but if I can't print, it's not going to be marketable.

Greg
Pavel Pavlov
Telerik team
 answered on 01 Jul 2009
1 answer
65 views
Hi,

I want to make the corners of my StackedBarSeries. 
Is there any way to remove the roundness?

Thank you,
Ruben.
Ves
Telerik team
 answered on 01 Jul 2009
1 answer
126 views
Hi all, I faced a problem with RadGridView in WPF
I have a collection of items, each of them contains collection of subitems
for this hierarchy I choosed to use main grid with HierarchyChildTemplate, where I placed another gridview for subitems
I use PropertyRelation for mapping child tables to master table
The problem is that AutoGenerateColumns="false" doesn't work for this child gridview, its columns are generated automatically anyways

Have anyone met this problem before or is there another way to display a master grid with grids for subitems?
Thank you
Alexander
Vlad
Telerik team
 answered on 01 Jul 2009
3 answers
122 views
Hi,

Based in the intergration sample I am trying to populate a chart from a grid. I have the following functions which I took from your sample. I have changed the function to use all records not just the selected ones.

       private void ShowSelectedRecordsInChart()  
        {  
 
            DataTable table = new DataTable();  
 
            DataColumn col = new DataColumn("Shuttle"typeof(double));  
 
            table.Columns.Add(col);  
 
            try 
            {  
                foreach (DataRecord item in this.datagrdV02.Records)  
                {  
                    DataRow row = table.NewRow();  
 
                    row["Shuttle"] = ((DataRow)item.Data)["Shuttle"];  
 
                    table.Rows.Add(row);  
                }  
            }  
            catch (Exception ex)  
            {  
                MessageBox.Show(ex.Message);  
            }   
        } 

When I execure the following line:

row[

"Shuttle"] = ((DataRow)item.Data)["Shuttle"];

 


I get the following error:

Unable to cast object of type 'CoachTech.Test_VO2' to type 'System.Data.DataRow'.

Any Idea what I am doing wrong?

Cheers,
Kevin.
Ves
Telerik team
 answered on 01 Jul 2009
1 answer
123 views
  How can I change the date to be
dd/MM/yyyy
Orit
Top achievements
Rank 1
 answered on 01 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?