Telerik Forums
UI for WPF Forum
2 answers
97 views
Hi..
How can I add conditional formatting to the stackpanel in the Carousel Panel?

For Example if the Person's Lastname starts with 'A'  - I'd like to show an a graphic.... 'A.jpg'
If Lastname starts with 'B" - 'B.jpg'... thanks in advance


 

 

<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" >

 

 

 

<Label Content="{Binding Path=Data.FirstName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

<Label Content="{Binding Path=Data.LastName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

</StackPanel>

 

 

Jon
Top achievements
Rank 1
 answered on 18 Dec 2008
1 answer
166 views
Hi,

using GridView I noticed a strange behavior.
As a coder I work most of the time in XAML Source.
By the way - also if I make these changes through the Property Pane it get the same result.

No I define a GridViewColumn like this:

<

 

telerik:GridViewDataColumn Width="40" HeaderText="Level" UniqueName="Level" DataType="{x:Null}" />

 

When I change the HeaderText nothing happens in Designer View.
After a rebuild I see what I have changed.

Using the builtin Controls (WPF controls) every change is reflected at the very moment.
This is very handy when it comes to "does it still fit" things.
For an example I think "Level of the Member" would be a good idea for the HeaderText.
I type it in - and there is still the old text "Level".
So before I can switch to the next column I have to run a build to see the changes in designer.
I find out -- that "Level ot the Member" is to much - I try "Memberlevel" - and again run a build...

Is this behaviour by desing, or is it some kind of a bug?

Manfred
Rosi
Telerik team
 answered on 18 Dec 2008
2 answers
87 views
I don't want the reordering of columns in my grid, how can I achieve this?
akjoshi
Top achievements
Rank 1
 answered on 18 Dec 2008
1 answer
229 views
I am binding RadTreeView with an observable collection and following is the HeirarchicalDataTemplate:

<HierarchicalDataTemplate DataType="{x:Type amms:Node}" ItemsSource="{Binding Children}" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path=NodeText, Mode=TwoWay}"
                                   Visibility="{Binding Path=IsEditCompleted, Converter={StaticResource boolToVisibleConverter}, Mode=TwoWay,
                                   NotifyOnTargetUpdated=True}"  TargetUpdated="uxTextBlock_TargetUpdated">
                        </TextBlock>
                    </StackPanel>
</HierarchicalDataTemplate>

When I initially set the RadTreeView's  datacontext, binding defined in HierarchicalDataTemplate works well for all the rendered items
textblock visibility changes as IsEditCompleted changes and uxTextBlock_TargetUpdated also hits.

But when i add an item to observable collection "Children",  it is being rendered in the RadTreeView at proper position but IsEditCompleted changes and uxTextBlock_TargetUpdated does not get hit. It looks like binding is not set up properly for newly added item via observable collection.

Please check the issue and let me know if it is a known issue and if there is any workaround.

Thanks
Sonal




Miroslav
Telerik team
 answered on 18 Dec 2008
2 answers
172 views
Hi there,

I'm using the RadCarousel via an ElementHost control in a VB.NET application.  The items I am adding to the carousel are inherited from Carouseltem and expose a few extra properties for convenience.

Anyway, the items display great, but one thing I can't get to happen is to monitor any events for the items, they just don't seem to get raised.  I would like to know when an item has been clicked so I can respond to the event but nothing is currently working.

Alternatively I would like to know when an items IsCurrent flag is raised as this should provide the same functionality.

Any ideas how I latch onto these events?
Rosi
Telerik team
 answered on 18 Dec 2008
9 answers
408 views
In the Q2 release of the WPF grid one could do something like grid.CurrentRecord.Fields[0] to access an individual cell.

In the Q3 release I have been unable to find any means of accomplishing the same task.  What am I missing?

I am attempting to re-implement the tab handling I had created for the Q2 release of the wpf grid.  The Q3 grid made a nice leap forward adding some tab handling, but it doesn't match our desired behaviors.

Thanks,
  Chris
Hristo Deshev
Telerik team
 answered on 17 Dec 2008
1 answer
229 views
Hi,
I am using following code to bind data to tree view. Each node in tree view is bound to business object "Node".

    <telerik:RadTreeView HorizontalAlignment="Left"
                             x:Name="uxOrgTree"
                             Width="Auto"
                             Height="Auto"
                             d:LayoutOverrides="Height"  
                             VerticalAlignment="Top"
                             Margin="0,0,0,0"
                             SelectionMode="Single"
                             IsEditable="True"
                             ItemsSource="{Binding RootNodes}" >
            <telerik:RadTreeView.Resources>
                <HierarchicalDataTemplate DataType="{x:Type Entities:Node}" ItemsSource="{Binding Children}" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path= Name}"/>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </telerik:RadTreeView.Resources>
      <telerik:RadTreeView.ItemContainerStyle>
                <Style TargetType="{x:Type telerik:RadTreeViewItem}">
                    <EventSetter Event="Edited" Handler="RadTreeViewItem_Edited" />
                 </Style>
            </telerik:RadTreeView.ItemContainerStyle>
        </telerik:RadTreeView>

Now when i press F2 or call SelectedItem.BeginEdit() programmatically,  i see datacontext which is Entities.Node in my case, in the edit area and the TextBlock defined in the HierarchicalDataTemplate is displayed next to edit area. I want to edit text in the textblock.  How can i do it?



Thanks
Sonal
Miroslav
Telerik team
 answered on 17 Dec 2008
1 answer
95 views
How well does the telerik controls for WPF support the CompositeWPF framework? http://codeplex.com/CompositeWPF

This is a must for out business as all of our WPF applications use this frameowrk...
Valentin.Stoychev
Telerik team
 answered on 15 Dec 2008
2 answers
118 views
In this code:

Customer cutomer = (Customer) (record as DataRecord).Data;  
cutomer.HasOrders = true;  

I am casting record as a Customer.  What if I don't know that my RadGrid is bound to Customer objects?  Is there a way to tell what type of objects are bound to my radgrid and then cast out each record in order to get access to the properties?

Thanks,
Scott



Milan
Telerik team
 answered on 15 Dec 2008
0 answers
75 views
Hi,
I have few questions on inline editing:

1. There is a protected variable isInEditMode, which indicates that a RadTreeViewItem is in edit mode. Is there a public property or any other way to identify whether a RadTreeViewItem  is in edit mode?
2. Pressing F2 triggers inline editing, after editing node text, if i press enter then Edited event gets fired but if i use mouse click to lose focus from editing item, then it (Edited event) does not, why?
3. I am initiate the inline editing by calling BeginEdit() but want to disable it on F2 key press, Is there any way to achieve this?

Thanks
Sonal
sonal
Top achievements
Rank 1
 asked on 15 Dec 2008
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?