Telerik Forums
UI for WPF Forum
10 answers
588 views
I'm getting complaints from the users that disabled controls on our data forms are too hard to read.

Is there some simple, global method for over-riding the foreground color selection used?
Jeff
Top achievements
Rank 1
 answered on 08 Feb 2013
2 answers
142 views
Hello,

I want to implement navigation through MVVM in a WPF aplication using RadTree.

I want to do that, when someone clicks over an item of the tree, the VM executes a Command to change the active view in another prism region.

¿Can you help me with that? I don't know to which element in xaml need to attach the Command, if the RadTree is Binding to an Observable Collection of the VM.

Thanks in advance
oburgaya
Top achievements
Rank 2
 answered on 08 Feb 2013
4 answers
106 views
Hi,
I'm creating a predetermined list of GridView's as controls in a WPF ItemsControl control, and am trying to remove rows via the ViewModel code. I am able to reference the ItemsControl binding, and when I try to delete a specified row via MyGrid.Items.Remove(knownRow), it fails (I also tried adding MyGrid.Items.Refresh() after it). I walked through the code, and found that the property MyGrid.Items.CanRemove is set to false. It's a get only property, so changing it isn't an option.

When creating the grid dynamically, I also tried setting the following properties:

grid.CanUserDeleteRows = true;
grid.IsReadOnly = false;

How do I go about removing rows from the grid?

Thanks,
Ryan
Ryan
Top achievements
Rank 1
 answered on 08 Feb 2013
2 answers
155 views
Hi
I am having difficulty with databinding and child objects with the RadGridview control.
I have a custom object that exposes two properties; a string and a collection (List<>) of child objects. The child objects only expose a single string property.
If I load a number of instances of the custom object each with children, into an Observable collection, the databinding seems to work and I can add new children to the existing parents without any problem.
However, if I add a new parent, when I attempt to add a new child there are databinding errors stating the property name cannot be found and the child is not retained in the child table in the grid control. (BindingExpression path error: 'FloorNo' property not found on 'object' ''Object').
I'm using the MVVM pattern so I am trying to define the hierarchy in the XAML which I've listed below.
Note: Buildings is the observable collection of the custom object Building.
BuildingNo is the string property of Building and Floors is the List<Floor> property where Floor is the child object. FloorNo is the string property of Floor.
Please can you suggest what I need to do to correct or improve the XAML to enable the creation of new children in new parents?
Thanks
Craig
<telerik:RadGridView HorizontalAlignment="Left" Margin="378,0,0,262" Name="buildingsGridView" VerticalAlignment="Bottom" Width="193" Height="197"
                     ItemsSource="{Binding Buildings, Mode=TwoWay}" AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="True"
                     RowHeight="23" RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="True" SelectedItem="{Binding SelectedBuilding}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding BuildingNo}" Header="Building No." IsFilterable="False" IsGroupable="False" IsReorderable="False" IsResizable="False" ShowDistinctFilters="False" Width="*"/>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.ChildTableDefinitions>
        <telerik:GridViewTableDefinition>
            <telerik:GridViewTableDefinition.Relation>
                <telerik:PropertyRelation ParentPropertyName="Floors" />
            </telerik:GridViewTableDefinition.Relation>
        </telerik:GridViewTableDefinition>
    </telerik:RadGridView.ChildTableDefinitions>
    <telerik:RadGridView.HierarchyChildTemplate>
        <DataTemplate>
            <telerik:RadGridView ItemsSource="{Binding Floors, Mode=TwoWay}" Name="floorsGrid" ShowGroupPanel="False" AutoGenerateColumns="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FloorNo}" Header="Floor No." IsFilterable="False" IsGroupable="False" IsReorderable="False" IsResizable="False" ShowDistinctFilters="False" Width="*" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </DataTemplate>
    </telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
Yoan
Telerik team
 answered on 08 Feb 2013
1 answer
149 views

Hi There,

we observed an issue with the DateTimepicker, 

There seem to be an inconsistent behaviour in RadGridView cells. please check the attached image for more clear details, 

Thanks in advance,
Srinivas.

Dimitrina
Telerik team
 answered on 08 Feb 2013
3 answers
267 views
Hello,

I am using the ChartView with several BarSeries and want to show a popup, when a certain bar is selected.
What's the recommended way to accomplish this?

I was looking at http://www.telerik.com/help/silverlight/radchartview-features-selection.html and tried to use the SelectionChanged event. However, it never gets fired.

I also tried retemplating the BarSeries.PointTemplate and using a transparent Button that overlays the Bar.
However, the Button's command is never invoked - not even when I set the BarSeries' HitTestVisible to true.

Thank you
Petar Kirov
Telerik team
 answered on 08 Feb 2013
3 answers
238 views
RadAutocompleteBox is working fine.

but i have additional requirment that, auto search should start if user have entered 3 characters or more.

i can write script, but does it have property which can be helpful.

Ivo
Telerik team
 answered on 08 Feb 2013
5 answers
189 views
Hi,

I started work with RadCarousel recently, and I have 2 questions:

1) Is there a way to hide RadCarousel navigation panel ?  (navigation panel screenshot attached)
2) How can i make the front Item always be selected?

Thanks for your help,

Harri.
Iva
Telerik team
 answered on 08 Feb 2013
3 answers
327 views
See attached image. We have a button on our diagram nodes that lets us show more details about the node. The UI element expands thanks to some binding tricks in the template. However, as you can see, the connector follows its relative position. We would like to keep the connector at its original position in order to preserve the "arrow structure". If the arrows/connections start jumping around the user gets a little confused. Is this possible?

I sense that such a functionality requires some advanced template stuff. Please show us an example! Thanks.
Petar Mladenov
Telerik team
 answered on 08 Feb 2013
2 answers
311 views

I have a DataGrid that needs to be filtered programatically.  I populate the dependency grid with a ItemsSource with all my data in it.  When I select an item in a parent grid, I want this grid to filter showing the one or many dependency items. 

So, I'd figured out I can clear the FilterDescriptorCollection and add items to it in using this syntax.  Note FilterSettings = FilterDescriptorCollection:

aggregationGridView.FilterSettings.Clear();
foreach (AggregateDD child in aggregate.ChildList)
{
    FilterDescriptor filter = new FilterDescriptor(
         "AggregateID", FilterOperator.IsEqualTo, child.AggregateID);
    aggregationGridView.FilterSettings.Add(filter);
}

However, this seems to write a query that as AND instead of OR.  This is more the query I'd like to run:

( (AggregateID IsEqualTo 385 MC) OR (AggregateID IsEqualTo 386 MC) OR (AggregateID IsEqualTo 387 MC) OR (AggregateID IsEqualTo 388 MC) )

How do I add a new FilterDescriptor to the FilterDescriptorCollection as an OR?

Thanks for your help.

gans
Top achievements
Rank 1
 answered on 07 Feb 2013
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?