Telerik Forums
UI for WPF Forum
10 answers
1.2K+ views
Hello!

There is a detail that I need to change somehow.
I use a simple GridView bounded to a ObservableCollection of objects. These objects have a boolean property that it's represented in the table as a checkbox. 
My case is similar with the GridView/CellEditTemplate example
The only operation I do on this GridViev is to check or uncheck these check-boxes in order to use the checked items further in my program.
Now, in order to do that I have to make 3 mouse clicks: one for selecting the row, one for selecting the cell and one for check/uncheck. Since all my columns are read only excepting that one I've mentioned before, I would like to check/uncheck an item from the first click, or at least from the second one.
I've tried to add behavior for double click for example

private void radGridView_MouseDoubleClick( object sender, MouseButtonEventArgs e ) { 
            RadGridView radGrid = (RadGridView)sender; 
            DataInfo actualRow = (DataInfo)radGrid.SelectedItem; 
            actualRow.IsSelected = actualRow.IsSelected == false; 
        } 

but this will change my DataInfo object without actually checking it's combobox in the user interface.
Of course, you would say to call radGrid.Rebind(); method, but in this case, for a 100 objects collection the entire focus of this table will move up to the first one (considering that I make the checking on a row in the end of the table) and I'm not happy with that.

Is there other work around for this?

Hopping that I was coherent enough!
Best wishes,
Roxana C



Milan
Telerik team
 answered on 14 Jul 2010
1 answer
121 views
Hi,

I want to know if it is possible to change the column header ,column type and column visibility of a child in a hierarchical gridview that has been bound to a dataset?

Is this possible and how will i go about?




Milan
Telerik team
 answered on 14 Jul 2010
1 answer
48 views
Hi, I'm trying to compile the TreeView examples, but VS2010 does not find the  Style="{StaticResource DefaultHeaderedContentControlStyle}"
All the examples requires this style. Where is?

What I've to do?

Thanks a lot and regards.
Andrea
Dimitrina
Telerik team
 answered on 14 Jul 2010
6 answers
586 views
Hi,

I am having a problem achieving what I want to with the WPF RadGridView and the DataFormatString property. I have a grid with various numeric values and need to set the format of these values at a row level as opposed to a column level. It has not been possible to bind the DataFormatString to a property of the row data item.

I have tried to use control templates both declarative and programmatic with template selector but the performance is not good compared with the standard GridViewDataColumn implementation.

Is there any way that I can bind to this property or any other suggestions as to how I achieve the requirement of formatting the data of a cell based a property of the row dataitem.

To explain a little further here is my object:

public class PlanningItem
{
    public string ItemName { get; set; }
    public string ItemFormat { get; set; }
    public double ItemValue { get; set; }
}

And the GridView would look something like:

<telerik:RadGridView AutoGenerateColumns="False" Name="radGridView1" ItemsSource="{ Binding Path=PlanningItems }">
   <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn UniqueName="ItemName" Header="Item Name" DataMemberBinding="{ Binding Path=ItemName }" IsReadOnly="True" />
        <telerik:GridViewDataColumn UniqueName="ItemValue" Header="Item Value" DataMemberBinding="{ Binding Path=ItemValue}" DataFormatString="{ Binding ItemFormat }"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>

Thanks

Oliver
Veselin Vasilev
Telerik team
 answered on 14 Jul 2010
1 answer
105 views
The sampling and performance of RadChart's ability to show thousands of data points in an intelligent way is great. The biggest problem for me is how to transfer this data from the server to client. In a real world scenario, this data is going to reside in a persistent store like database and a WCF service will help getting it.

All the example's I've seen so far works with random data generation on the client side. How can I efficiently bring such a large volume of data from a WCF service.

I believe the sampling only occurs on the client side after you have bound all the datapoints, series mapping to the chart.

Many Thanks in Advance.

Saravana. 
Giuseppe
Telerik team
 answered on 14 Jul 2010
3 answers
83 views
Hi,

I'm not sure if anyone else has run into this. Whenever I use the Docking control my msn messenger gets set to busy. It also happens in the Docking Examples in the RadControls for WPF Demos.

Wondering if you had any ideas on what I could do to get around this?

Thanks Much,
~Boots
Miroslav Nedyalkov
Telerik team
 answered on 14 Jul 2010
2 answers
130 views
Hello!
The RadPane's context menu is useful in many scenarios and I would like to keep this feature in my application, but I need to limit that context menu to appear only when I right-click the header or when I click the small arrow in the upper right corner of the RadPane, because in my case, the RadPane content consist in a WrapPanel having some custom controls that treat their own right-click event ( so I don't want the RadPane to show it's context menu when I right-click inside it )
Is this possible?

Thank you!
RoxanaC
RoxanaC
Top achievements
Rank 1
 answered on 14 Jul 2010
2 answers
96 views
The items in my chart legend are arranged horizontally, even when I have the legend on the right. What do I need to do to get them to be arranged vertically? In the demos, this seems to be the default, but for me for some reason that doesn't happen.

Edit: the title is a little misleading; I mean "orientation" rather than alignment, but hopefully the picture and description makes it clear what I mean.

Steve
SteveL
Top achievements
Rank 2
 answered on 13 Jul 2010
3 answers
102 views
Has anybody else experienced slowness when either sorting a column or resizing the width of a column?

To sort or resize a column it is taking 8 seconds, you might think many rows is the problem. But I would not say that 320 records is a lot of rows.

I'm using the Model View View Model concept and creating a custom class that is binding to the grid. Could this approach be causing the slowness?
Chad
Top achievements
Rank 1
 answered on 13 Jul 2010
7 answers
718 views
hy everybody

is there an easy was to retrieve the number of rows of the GridView element i.e. gridview.rows.count? My intention is to build a loop i.e.
for i = 0 to gridview.rows.count - 1
...do something
next

Thanks for your help

Michael Lutz
BITsoft
Michael
Top achievements
Rank 1
 answered on 13 Jul 2010
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
TimeBar
Styling
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
CardView
DataBar
WebCam
FilePathPicker
Licensing
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
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?