Telerik Forums
UI for WPF Forum
3 answers
348 views
Hi,

I have a map with several overlapped items on it. I want to programmatically highlight one or several items by changing the ZIndex. Unfortunatly my ZIndex binding is not working (but the other ones works fine). Here is my XAML;

<telerik:RadMap Margin="12" Name="radMap1">
            <telerik:InformationLayer x:Name="informationLayer"  >
                <telerik:InformationLayer.ItemTemplate>
                    <DataTemplate>
                        <Ellipse  Name="myEllipse"
                            telerik:MapLayer.Location="{Binding Location}"
                            telerik:MapLayer.BaseZoomLevel="9"
                            Width="200"
                            Height="200"
                            Stroke="{Binding Stroke}"                           
                            StrokeThickness="3"
                            Fill="{Binding Fill}"     
                            Canvas.ZIndex="{Binding ZIndex}">
                            <telerik:MapLayer.HotSpot>
                                <telerik:HotSpot X="0.5" Y="0.5"   />
                            </telerik:MapLayer.HotSpot>
                        </Ellipse>
                    </DataTemplate>
                </telerik:InformationLayer.ItemTemplate>
            </telerik:InformationLayer>

Best regards

Robert Warnestam
Andrey
Telerik team
 answered on 31 May 2011
4 answers
245 views
When expanded my RadPanelBarItem grows past it's container giving the RadPanelBar a vertical scroll bar.  How do I make it such that the RadPanelBar does not exceed its bounds and the RadPanelBarItem displays the vertical scroll bar?

I am using this control within a docking panel, could it be that the automatic size distribution of this type of layout control is causing this behavior?  If that is the case would my desired behavior come about if I simply removed the docking panel and declared grid columns and rows?

Thank you for your time,
Adam Burdette
Petar Mladenov
Telerik team
 answered on 31 May 2011
0 answers
186 views
Hi Guys ,

I have a Grid View with the style and I want to add a custom make scrollviewer.. the problem is when im trying to add the scrollviewer  on the actual style. The header will get disappeared i dont know why?

   <telerik:GridViewScrollViewer x:Name="PART_ItemsScrollViewer"  Template="{DynamicResource customeMakeScrollViewer}" Background="Transparent" CanContentScroll="True" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2">

thanks
Sam
sam Aryan
Top achievements
Rank 1
 asked on 30 May 2011
4 answers
200 views
Morning all.  Is it possible to declare more than one footer in xaml for rad gridview?  ShowColumnFooters will get me one row but I need a second footer row, below that one to display additional information (calculations etc.)  If this is possible in xaml I'd appreciate a code snippet. 

Thanks.
Pete
Top achievements
Rank 1
 answered on 30 May 2011
3 answers
192 views
Hello!

I want to add a column to the datagrid that will allow the user to enter in "Edit Mode" for this row. Is that possible?

I have the following code, but it's not working:
<telerik:GridViewColumn>
 <telerik:GridViewColumn.CellTemplate>
    <DataTemplate>
        <telerik:RadButton Content="Edit" Command="telerikGrid:RadGridViewCommands.BeginEdit" CommandParameter="{Binding}" />
    </DataTemplate>
 </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>

This code is used inside a GridView that inherits from RadGridView.

In documentation, you also have the following code:
public MainPage()
{
          ICommand editCommand = RadGridViewCommands.BeginEdit;
          InitializeComponent();
}

But I really don't understand why we need this.... "editCommand" is never used.... (I tried to add it to the page where my grid is, but it still not works!)

Thanks for help!
Bastien
Dimitrina
Telerik team
 answered on 30 May 2011
1 answer
141 views
Hi,

I wanted to remove the additional column added after all RadGridView columns, so I set the last column width property to *,
but then, when one of the columns content is longer than the RadGridView width  - the horizontal scrollbar doesn't appears.
How can I remove the additional column without losing the horizontal scrollbar?

 

Thanks,
Anna.
Maya
Telerik team
 answered on 30 May 2011
1 answer
160 views
Hello,

I'm using two cascading ComboBoxColumns in my grid

<telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Assigns}" >
<telerik:RadGridView.Columns>
                    <telerik:GridViewComboBoxColumn Header="Client" ItemsSource="{Binding}"    
                        DataMemberBinding="{Binding ClientID}" DisplayMemberPath="Name" SelectedValueMemberPath="ID" />
                    <telerik:GridViewComboBoxColumn Header="Personalist" ItemsSourceBinding="{Binding AvailablePersons}"    
                        DataMemberBinding="{Binding PersonID}" DisplayMemberPath="Name" SelectedValueMemberPath="ID" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

I've followed this thread to achieve same cascading logic with comboboxes, but with LINQ to SQL Datasource  - no luck

DataClassesDataContext db = new DataClassesDataContext();
((GridViewComboBoxColumn)this.RadGridView1.Columns[0]).ItemsSource = db.Clients;
  
this.AddHandler(RadComboBox.SelectionChangedEvent, new SelectionChangedEventHandler(comboSelectionChanged));

private void comboSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            RadComboBox comboBox = (RadComboBox)e.OriginalSource;
  
            if (comboBox.SelectedValue == null
                || comboBox.SelectedItem.GetType() != typeof(Client)) 
                return;
  
            Assign assign= comboBox.DataContext as Assign;
            assign.ClientID = (int)comboBox.SelectedValue;
}

This is the part where I got stuck, I've created an extra field AvailablePersons, but I can't get selected ID from first ComboBoxColumn:

public IEnumerable<Person> AvailablePersons
        {
            get
            {
                return from p in db.Persons
                       where p.ClientID == this.ClientID //???????????????????????????
                       select p;
            }
        }

Thank You for any help
Pavel Pavlov
Telerik team
 answered on 30 May 2011
2 answers
96 views
Something strange! When I try to dock a pane in another pane, the "diamond" shows outside the target-pane.
Even outside the window.
It worked great before. What's going on?
I tried to attach some pictures, but I don't know how...
Rieni De Rijke
Top achievements
Rank 1
 answered on 30 May 2011
2 answers
83 views
Hi,
How can we Incorporate the RadContextMenu for StackedBar Chart.
I tried to use the example given in the help for Bar Chart, but result in invisible Bars with context menu is opening on right click of it.

Please let me know what are changes I need to do on the Style, so that the bars get visible.
Here is the code for the Style:

<Style TargetType="telerik:StackedBar" x:Key="CommonContextMenu">
           <Setter Property="Template" >
               <Setter.Value>
                   <ControlTemplate TargetType="telerik:StackedBar">
                       <Canvas Opacity="0" x:Name="PART_CanvasContainer">
                           <telerik:RadContextMenu.ContextMenu>
                               <telerik:RadContextMenu ItemClick="RadContextMenu_ItemClick">
                                   <telerik:RadMenuItem Header="Go To Home Page" />
                                   <telerik:RadMenuItem Header="Go To Employee Page" />
                               </telerik:RadContextMenu>
                           </telerik:RadContextMenu.ContextMenu>
                           <Rectangle x:Name="PART_DefiningGeometry" 
                                  Height="{TemplateBinding ItemActualHeight}"
                                  Width="{TemplateBinding ItemActualWidth}"
                                  Style="{TemplateBinding ItemStyle}"
                                  RadiusX="{StaticResource BarRadiusX}"
                                  RadiusY="{StaticResource BarRadiusY}" />
                           <Rectangle Height="{TemplateBinding ItemActualHeight}"
                                  Width="{TemplateBinding ItemActualWidth}"
                                  RadiusX="{StaticResource BarRadiusX}"
                                  RadiusY="{StaticResource BarRadiusY}"
                                  OpacityMask="{StaticResource BarOpacityMaskBrush}"
                                  Fill="{StaticResource BarMaskBrush}" />
                           <Rectangle Height="{TemplateBinding ItemActualHeight}"
                                  Width="{TemplateBinding ItemActualWidth}"
                                  RadiusX="{StaticResource BarRadiusX}"
                                  RadiusY="{StaticResource BarRadiusY}"
                                  Fill="{StaticResource BarTopMaskBrush}" />
                           <Canvas.RenderTransform>
                               <ScaleTransform x:Name="PART_AnimationTransform" ScaleY="0" />
                           </Canvas.RenderTransform>
                       </Canvas>
                   </ControlTemplate>
               </Setter.Value>
           </Setter>
       </Style>

Please reply as soon as possible.
Thanks.
Manishkumar
Top achievements
Rank 1
 answered on 30 May 2011
1 answer
72 views
HI..
 Can you please help me in preventing radtileviewitem state Change under button click
Kiril Stanoev
Telerik team
 answered on 28 May 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?