Telerik Forums
UI for WPF Forum
12 answers
297 views
Hi,

We are developing a new application. One of the feature that we are planning is a floor plan interface with ability to place controls on the map, and we are evaluating whether the RadMap is the right module to use.

  1. The floor plan would be a single image, I figure this is possible by implement a custom ImageProvider
  2. The zoom-out level needs to be limited to when the image fills the window
  3. User need to be able to add new controls to the map, which can be a custom WPF user control, or a RadGauge. The control will be fixed at a map coordinate.
  4. User needs to be able to drag-n-drop any control to any place on the map, and also rotate the control. The new placement and angle will be remembered.
  5. User needs to be able to remove controls from the map (maybe through context menu on the control)

And hopefully 3-5 can be achieved through data-binding.

Is the RadMap module the right tool for what we needed? or is there some other control that would suite this scenario better?
Andrey
Telerik team
 answered on 17 Oct 2011
5 answers
129 views
I have a client control in my RadPanes that uses the ContextMenuOpening event to create dynamic menus if the user right clicks on images in the control. If the RadPane has the Right click ContexMenu with the dockable options my control does not get ContexMenuOpening events anymore.

Solution for this is to set the ContextMenuTemplate to Null, but I would prefer to have the ContexMenuOpening event in my Control even if the RadPane has a ContextMenu. If my Control does not handle the ContextMenu event the RadPane could take it. May be this can be added to the wish list.
Pieter
Top achievements
Rank 2
 answered on 16 Oct 2011
3 answers
996 views
Hi

How do I decrease the padding or margin of a grid's rows/cells so the overall height of the row is decreased.

Hennie
Vanya Pavlova
Telerik team
 answered on 14 Oct 2011
2 answers
107 views
I am overriding the FilteringControl to remove IsContainedIn and IsNotContainedIn.  My code looks like this:

public class StringFilteringControl : FilteringControl
{
    public override void Prepare(GridViewBoundColumnBase column)
    {
        base.Prepare(column);   // <-- This fires OnCollectionChanged if actions are removed
 
        var vm = this.DataContext as FilteringViewModel;
          
        if (vm != null)
        {
            vm.AvailableActions.Remove(FilterOperator.IsContainedIn);
            vm.AvailableActions.Remove(FilterOperator.IsNotContainedIn);
        }
    }
}

The base.Prepare call is firing a collection changed event if actions are removed, and this is causing an unwanted refresh of the grid every time the filter control is opened by the user.  If I have a custom filter control, but do not remove actions, then the collection changed event is not fired, so the removal of actions seems to be the reason why the event is triggered.

I do not want the collection changed event to fire, or I need a way to know that the event was fired by the Prepare.  Is there a way to prevent this event from firing? 

Thanks for your help.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 14 Oct 2011
2 answers
329 views
Hi,

I am using aggregate function to calculate sum of a certain column in my grid. However, the sum value is displayed both on the footer as well as the group header. How can I hide the value for m showing on the group header?

Also, I am doing the grouping programmatically, is there a way to hide the column that is grouping member from the showing in the grid? Currently, the group column displays its value in the group header as well as in the grid itself. I think it is sufficient to have the data on the header only. How can I achieve that?

Regards
Perlom
Top achievements
Rank 1
 answered on 14 Oct 2011
1 answer
145 views
I have an application that uses RadDocking to host a RadGridView control.  When the application initially loads the grid's databinding, sorting, filtering, grouping, etc. work fine.  However, if the pane containing the RadGridView control is pinned, unpinned, or floated all user customizations to the grid such as sorting and filtering are lost.  It appears that the the grid is reinstantiated when the user performs any of these actions.  I have set IsContentPreserved to True in the RadPaneGroup that hosts the RadGridView, but the grid's state is still not preserved.  Is there a way to preserve state in this scenario?

 

 

 

<telerik:RadDocking HasDocumentHost="False" Grid.Row="2" PreviewUnpin="RadDocking_PreviewUnpin">
    <telerik:RadSplitContainer InitialPosition="DockedBottom">
        <telerik:RadPaneGroup IsContentPreserved="True">
            <telerik:RadPane
                Header="Grid"
                CanFloat="False"
                CanUserClose="False"
                ContextMenuTemplate="{x:Null}">
                   <Grid>
                    <telerik:RadGridView AutoGenerateColumns="False" SelectionMode="Multiple" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding}" IsReadOnly="True" SelectionUnit="Cell">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewSelectColumn Width="20"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=InventoryDate, Mode=OneWay}" Header="Inventory Date" DataFormatString="{}{0:MM/dd/yyyy}"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=BridgeNumber, Mode=OneWay}" Header="Bridge #"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedBy, Mode=OneWay}" Header="Created By"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedDate, Mode=OneWay}" Header="Created Date" DataFormatString="{}{0:MM/dd/yyyy}"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </Grid>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

Thanks for any suggestions.

Steve

 

Steve Hulse
Top achievements
Rank 1
 answered on 14 Oct 2011
2 answers
250 views
I have tried the latest WPF4 build 01582RadControls_for_WPF40_2011_2_1010_TRIAL_hotfix.zip and RadControls_for_WPF40_2011_2_0920_Trial_hotfix.zip.  I have verified that the assemblies are in the proper place.  Had no problem with Telerik.Windows.Controls.RibbonView; however when I run my program I get the following exception when trying to render the MainWindow.

Could not load file or assembly 'Telerik.Windows.Controls.Docking, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies.

Anyone else having this problem?

Thanks in advance,
Steve

P.S. The Examples app doesn't run either.
Boyan
Telerik team
 answered on 14 Oct 2011
3 answers
74 views
Hi


I have 15 Tile View Item I have to change  First Tile View Item into ninth TileView Item Only those two item only swapped with any other TileViewItem Change

Iam using this Version( 2011.2.712.40)

Example

Before Swapping

Item 1 Item 2 Item 3 Item 4 Item 5
Item 6 Item 7 Item 8 Item 9 Item 10
Item 11 Item 12 Item 13 Item 14 Item 15



After Swapping


Item 9 Item 2 Item 3 Item 4 Item 5
Item 6 Item 7 Item 8 Item 1 Item 10
Item 11 Item 12 Item 13 Item 14 Item 15


Regards
S.SenthilNathan
Tina Stancheva
Telerik team
 answered on 14 Oct 2011
1 answer
196 views
Hi,

I have a typical tree list setup:

        <telerik:RadTreeListView ItemsSource="{Binding OuterList}">
            
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding MiddleList}">
                    <telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                        <telerik:TreeListViewTableDefinition ItemsSource="{Binding InnerList}"/>
                    </telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                </telerik:TreeListViewTableDefinition>
            </telerik:RadTreeListView.ChildTableDefinitions>

    </telerik:RadTreeListView>

Initially, OuterList, MiddleList and InnerList were all ObservableCollections. But when I'm adding or removing 100s of items from a list, ObservableCollection fires an event for each change and a huge amount of time (minutes) gets used up in RadTreeListView, apparently figuring out the new UI layout.

So I decided to make MiddleList a List<MyObject> property. I'd calculate the new contents of MiddleList elsewhere, then I'd set the MiddleList property to the new list. Changing that property would trigger an INotifyPropertyChanged.PropertyChanged event. All the changes would become visible to RadTreeListView in a single event.

Unfortunately, RadTreeListView doesn't seem to respond to a PropertyChanged event that changes the TreeListViewTableDefinition's ItemsSource. When I set MiddleList to a new value, the list of displayed items does not change.

Is there a way to force RadTreeListView to re-load its table definitions? Is there another approach I should be taking?

Thanks,
   Bob Alexander
Dimitrina
Telerik team
 answered on 14 Oct 2011
8 answers
210 views
Hello,

I do understand what controls are supported and which ones are not.  We are at a point where we need to automate the testing of our application and unfortunately the controls we use most are the ones unsupported (ribbon, docking, tab).

I've read forum posts and got bits and pieces of when they will be supported.  My question is does Telerik have a roadmap as to when ALL of the controls will be fully supported?  Seems the WinForms support was added recently.  Although it may be a painstaking process for us developers, we may have to look at oter suites that do support automation.

Thanks,
Chris
Tina Stancheva
Telerik team
 answered on 14 Oct 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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?