Telerik Forums
UI for WPF Forum
5 answers
330 views

hi

I want a geoserver with file *.shp and files *.tiff.

Should i change sometning in *.tiff or *.shp,to display in radmap?

Is it posibble display both layer vector and raster together in radmap?

How can i configure my radmap for display this layer?

How to Connect radmap to wms server?

 

 

 

Petar Mladenov
Telerik team
 answered on 15 Feb 2017
1 answer
137 views

helllo i set up geoserver i created a few layers in epsg:4326

i can display in web browser.

What i have to do it, for display in radmap?

what option set in geoserver or radmap to display in radmap?

i use WmsTiledProvider, but i dont how set provider,what uri ?

 

please answer.thank you

Sebastian
Top achievements
Rank 1
 answered on 15 Feb 2017
1 answer
107 views
Hello,
I have an app where I am using the raddocking control and feeding it with panes using the docking factory.  When i pull one of the panes out of the docking control and put it on a second monitor the memory usage spikes 400 - 600 MB. then if i try to dock another pane into the one i pulled out it crashes with a memory exception. This occurs with only three panes open. Any thoughts about this error?
Nasko
Telerik team
 answered on 15 Feb 2017
4 answers
436 views

I've used the example explaining how to create a windows explorer-like treeview, where a collection of children can contain both directories and files but I think I need a bit of clarification.

I'm in an MVVM scenario and my model classes contain multiple collections representing the different kinds of children they can contain. For example I might have grocery store object with a collection of dairy products, another collection of meats, etc. Is it correct that my view model should merge the collections into a single observable collection of objects (or something less general if possible) and then rely on the DataType={x:Type ....} to chose the right data template?

If that is the case and I wanted to keep my collection sorted, I would have to implement a custom sorter to group the dairy and meats prior to sorting, correct? Also, this should all still work if the children themselves can be containers for multiple types?

Jason
Top achievements
Rank 1
 answered on 14 Feb 2017
4 answers
154 views

Hi,

 

i use c#/wpf RadGridView. I bound i Collection calls to my RadGridView. Here i have a RadGridViewDataColumn with a cell template checkbox.
My problem ist that i have perhaps 10 items in my collection with the same telephone-no. if i check one of these items i want to check the rest of
the items in my collection with the same no. too. Also if i uncheck one, i want to uncheck the rest to. How can i do this?

 

Thanks

Rene

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
1 answer
148 views

I have a grid view with the integer column sorted ascending by default.

At this time, for other event, I am updating this integer column and the values are getting modified in the UI correctly.

But at this case, the sorting is not getting applied correctly.

For example, By default my UI is like below

1

2

3

I have updated the row with value 2 with 5. Then my UI becomes

1

5

3

instead of 

1

3

5

 

Please let me know, how to achieve this.

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
3 answers
245 views

Hello. I bag your pardon, but I've come to desperation due to not founding a two-level Master/Detail example that uses two separate RadGridView (the first one for master records and the second one for detail records). Please give me an example of such an application where master records and detail records are added dynamically during run-time.

Thanks in advance.

Dmitry
Top achievements
Rank 1
 answered on 14 Feb 2017
3 answers
199 views

Hello,

i used RadGridView to show some items. I have defined some columns of RadGridView and bind ItemsSource with list of ViewModelABC, which is a type of IViewModel.

public interface IViewModel
{      
}
public Class ViewModelABC : IViewModel
{
    public string PropertyA { get; set; }
    public string PropertyB { get; set; }
    public string PropertyC { get; set; }
}
public Class MyData
{
    public MyData()
    {
        MyItems = new List<IViewModel>();

        // MyItems could be filled with ViewModelABC

        //MyItems.Add(new ViewModelABC());

    }
    public IList<IViewModel> MyItems {get;set;}
}

ViewModelABC has implemented the interface IViewModel and some properties.

When i start the application without Items, that meas, my MyData as DataContext is initialized, but it has no entry for ItemsSource in MyItems. Then i get ArgumentException from each column. "Property with name 'PropertyA' cannot be found on type 'IViewModel'.

I don't want to defined the list with type ViewModelABC. Is there another way to avoid the ArgumentException?

 

Thanks a lot.

Regards,

Ivan

Ivan
Top achievements
Rank 1
 answered on 14 Feb 2017
1 answer
148 views

Hi,

I have a RadCartesianChart with a HorizontalAxis set as LinearAxis, and the series are RangeBarSeries. The problem is that sometimes I have data on my chart only for a small range on the most left side, and some data for a small range on the most right side. In that case, I would like to skip showing on the chart that big empty gap in between.

So, its not only about hiding labels, its the LinearAxis that I don't want it to show 0->140 for example, but to show 0->30, 100->140 (etc)

Is it possible?

Martin Ivanov
Telerik team
 answered on 14 Feb 2017
7 answers
294 views

Hellow.

I do Master/Detail hierarchical RadGridView in the following manner. The View is:

<UserControl x:Class="RecordAndPlaybackSession.Views.RecordAndPlaybackSessionView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:prism="http://prismlibrary.com/"
             xmlns:commonControls="clr-namespace:CommonWpfControlLibrary;assembly=CommonWpfControlLibrary"
             prism:ViewModelLocator.AutoWireViewModel="True">
 
    <i:Interaction.Triggers>
        <!--<OK> dialog-->
        <prism:InteractionRequestTrigger SourceObject="{Binding NotificationRequest, Mode=OneWay}">
            <prism:PopupWindowAction IsModal="True" CenterOverAssociatedObject="True">
                <prism:PopupWindowAction.WindowContent>
                    <commonControls:NotificationDialogPopupView/>
                </prism:PopupWindowAction.WindowContent>
                <prism:PopupWindowAction.WindowStyle>
                    <Style TargetType="Window">
                        <Setter Property="ResizeMode" Value="NoResize"/>
                        <Setter Property="SizeToContent" Value="WidthAndHeight"/>
                    </Style>
                </prism:PopupWindowAction.WindowStyle>
            </prism:PopupWindowAction>
        </prism:InteractionRequestTrigger>
    </i:Interaction.Triggers>
 
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
         
        <Grid.Resources>
            <DataTemplate x:Key="RowDetailsTemplate">
                <telerik:RadGridView Name="SavedSesionsGrid" IsReadOnly="True" ItemsSource="{Binding SavedWorkingSesions}" AutoGenerateColumns="False" ShowGroupPanel="False">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Date}" Header="Session date"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Time_Begin}" Header="Time Begin"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Time_End}" Header="Time End"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Modbus_Transmision_Mode}" Header="MODBUS Transmision Mode"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Brief_Description}" Header="Brief Description" IsReadOnly="False"/>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </DataTemplate>
        </Grid.Resources>
         
        <telerik:RadGridView Grid.Row="0" Grid.Column="0" Name="DevicesGrid" ItemsSource="{Binding DevicesWithSavedSesions}" AutoGenerateColumns="False"
                             IsReadOnly="True" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False"
                             CanUserResizeRows="False" CanUserSearch="False" CanUserSortColumns="False" IsFilteringAllowed="False" SelectedItem="{Binding SelectedDevice}"
                             RowIndicatorVisibility="Collapsed" RowDetailsTemplate="{StaticResource RowDetailsTemplate}" Margin="5">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayedName}" Header="Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding SerialNumber}" Header="Serial #/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding SelectedBeamsQuantity}" Header="Beams Quantity"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding SelectedInnerDiameter}" Header="Inner Diameter"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyOwnerOfDevice}" Header="Device Owner"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding MountingLocation}" Header="Locality"/>
                <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsCurrentlyConnected}" Header="Is Connected">
                    <telerik:GridViewCheckBoxColumn.CellStyle>
                        <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                        </Style>
                    </telerik:GridViewCheckBoxColumn.CellStyle>
                </telerik:GridViewCheckBoxColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Center">
            <telerik:RadButton Height="25" Width="100" Margin="0 0 0 5" Content="Save" ToolTip="Save current sesion."
                               Command="{Binding SaveWorkingSessionCommand}"/>
            <telerik:RadButton Height="25" Width="100" Margin="10 0 10 5" Content="Stop" ToolTip="Stop saving process of current sesion"
                               Command="{Binding StopSavingOfWorkingSesionCommand}"/>
            <telerik:RadButton Height="25" Width="100" Margin="10 0 10 5" Content="Play" ToolTip="Play selected saving sesion"
                               Command="{Binding PlaySavedSessionCommand}"/>
            <telerik:RadButton Height="25" Width="100" Margin="0 0 0 5" Content="Delete" ToolTip="Delete selected saving session"
                               Command="{Binding DeleteSavedSessionCommand}"/>
        </StackPanel>
    </Grid>
</UserControl>

In the ViewModel I create (in particular) the folowing property that is bound to SelectedItem of master RadGridView. This is the user-selected device which session must be saved. Please see it below:

#region Properties
. . . . . . . . .      
public object SelectedDevice
{
     get { return this._selectedDevice; }
     set
     {
          if (this.SetProperty(ref this._selectedDevice, value))
          this.SaveWorkingSessionCommand.RaiseCanExecuteChanged();
     }
}
. . . . . . . . . . . . .
#endregion

And also the following properties:

#region Properties
 . . . . . . . . . . .
 /// <summary>
 /// Gets or sets the collection of devices that have saving sessions, and currently conected device.
 /// </summary>
 public ObservableCollection<Device> DevicesWithSavedSesions
 {
     get { return this._devicesWithSavedSessions; }
     set { this._devicesWithSavedSessions = value; }
 }
 
 /// <summary>
 /// Gets or sets the collection of saved working sessions per device.
 /// </summary>
 ObservableCollection<DeviceWorkingSession> SavedWorkingSesions
 {
     get
     {
         return this._savedWorkingSesions;//new ObservableCollection<DeviceWorkingSession>(this.DevicesWithSavedSesions.SelectMany(device => device.SavedWorkingSession));
     }
     set { this.SetProperty(ref this._savedWorkingSesions, value); }
 }
 . . . . . . . . . . .
 #endregion

I initialize these properties in constructor of ViewModel:

this.DevicesWithSavedSesions = new RadObservableCollection<Device>();
this.SavedWorkingSesions = new RadObservableCollection<DeviceWorkingSession>();

And in 'SaveWorkingSesionCommand' I do the following:

// Create instance of record with information about session being saved.
DeviceWorkingSession savedSession = new DeviceWorkingSession();
// GUID of saved sesion.
savedSession.Id = Guid.NewGuid();
// Id of device which sesion is saved.
savedSession.Devices_Id = GlobalStaticMembers.SharedProfileHeader.Id;
// Date of saving of the session.
DateTime sessionDateTime = DateTime.Now;
savedSession.Date = sessionDateTime.Date;
// Time when sesion saving begins
savedSession.Time_Begin = sessionDateTime.TimeOfDay;
savedSession.StrTimeBegin = savedSession.Time_Begin.ToString(@"hh\:mm\:ss\:fff");
// Transmision mode of MODBUS protocol.
savedSession.Modbus_Transmision_Mode = GlobalStaticMembers.ModbusTransmisionMode;
// Save session in 'Device' instance (in the manner as it done in your 'ExpandAllRowsDetails' example in your SDK).
(this.SelectedDevice as Device).SavedWorkingSession.Add(savedSession);
// Save session in collection that is binding source.
this.SavedWorkingSesions.Add(savedSession);

Below is the definition of SavedWorkingSession from Device class:

public ObservableCollection<DeviceWorkingSession> SavedWorkingSession
{
    get
    {
        if (this._savedWorkingSession == null)
           this._savedWorkingSession = new ObservableCollection<DeviceWorkingSession>();
        return this._savedWorkingSession;
    }
}

But I can not see detail records. Please see 'HierarchyMasterDetail.PNG' file attached. If you need more detail, please write me.

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