Telerik Forums
UI for WPF Forum
0 answers
182 views

after the last published version of telerik libraries I have a problem with the radmap control.
Before I was able to add providers by programming in behind code (radmap.providers.add ...), now I have a problem(nothing change in code only dlls telerik) and it crashes my applications. When adding provider to a control, radmap gets "Invalid input string format" error
I used this method because I change the url in the provider and in order to refresh the content of a given provider I had to delete it earlier and add it soon.

my provider base on UriImageProvider.

before last version of telerik i had and worked url of provider for example:  "http://server:port/arcgis/rest/services/test/MapServer/export?bbox=23.4333229064942,52.1333826707921,23.8082803998675,52.0174907373669&size=2184.28571428571,1098.42857142857&imageSR=3857&format=png&transparent=true&dpi=96&dynamicLayers=%5b%7b%22source%22%3a%7b%22type%22%3a+%22mapLayer%22%2c%22mapLayerId%22%3a+44%7d%2c%22drawingInfo%22%3a%7b%22showLabels%22%3a+False%7d%7d%2c%5d&f=image"

now its problem

how to update my provider after add to radmap?

Is there currently another way to add provider and change the url in the provider and refresh on the map?

How to display image from arcgis server which provider i have to used ?tilemadsource,imagemapsource,UriImageProvider maybe another?

Krystyna
Top achievements
Rank 1
 updated question on 28 Apr 2021
1 answer
161 views

Hello!

Is it possible to collapse empty space in my RadRibbonBackstage?

<telerik:RadRibbonView.Backstage>
   <telerik:RadRibbonBackstage HorizontalContentAlignment="Left" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
      <telerik:RadRibbonBackstageItem Header="...">
         <controls:InventoryControl DataContext="{Binding Path=...}"/>
      </telerik:RadRibbonBackstageItem>
         ...
   </telerik:RadRibbonBackstage>
</telerik:RadRibbonView.Backstage>

My version is 2021.1.325.45.

Martin Ivanov
Telerik team
 answered on 27 Apr 2021
5 answers
1.0K+ views

Hello.

In the grid view, the selection unit is set to 'FullRow' and the selection mode is set to 'Extended'.

I want to know how to make a checkbox column and do multi-check.(Refer to the image)

 

Using GridViewSelectColumn will do something similar.

However, It is immediately reflected when selecting a row and does not support binding.

And I have to keep the checkbox variable when I close or open the window.

 

So I try to use GridViewCheckBoxColumn.

 

Anotherway is to put CellTemplate in GridViewDataColumn and do EventBindings, but the logic is not correct.

 

<telerik:RadGridView Margin="10 0" Width="300"
                     ItemsSource="{Binding Rooms}"
                     behaviour:GridViewMultiSelection.SelectedItems = "{Binding RoomItems}"
                     SelectionUnit="FullRow"
                     SelectionMode="Extended"
                     AutoGenerateColumns="False"
                     ShowColumnHeaders="True"
                     ShowGroupFooters="False"
                     ShowGroupPanel="False"
                     RowIndicatorVisibility="Collapsed"
                     RowDetailsVisibilityMode="Visible"
                     EnableColumnVirtualization="True"
                     EnableRowVirtualization="True"
                     VirtualizingPanel.IsVirtualizing="True"
                     ScrollViewer.HorizontalScrollBarVisibility ="Auto"
                     ScrollViewer.VerticalScrollBarVisibility ="Auto"
                     FrozenColumnsSplitterVisibility="Collapsed"
                     IsFilteringAllowed="False"
                     AutoExpandGroups="False"
                     >
 
    <telerik:RadGridView.Columns>
        <!--<telerik:GridViewSelectColumn/>-->
        <telerik:GridViewDataColumn Header="Name" Width="*"   IsReadOnly="True" DataMemberBinding="{Binding Name}" />
        <telerik:GridViewDataColumn Header="ID"   Width="0.7*" IsReadOnly="True" DataMemberBinding="{Binding Id}" IsVisible="False"/>
        <!--<telerik:GridViewDataColumn DataMemberBinding="{Binding IsChecked}" Header="Verification" Width="75" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding IsExcept}">
                                    <telerik:EventToCommandBehavior.EventBindings>
                                        <telerik:EventBinding   EventName="Checked"
                                                                Command="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadGridView}, Path=DataContext.OnCheckedCommand}" />
                                    </telerik:EventToCommandBehavior.EventBindings>
                                </CheckBox>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>-->
        <telerik:GridViewCheckBoxColumn Header="Verification" Width="75" DataMemberBinding="{Binding IsChecked}"
                                        IsReadOnly="False" EditTriggers="CellClick" AutoSelectOnEdit="True" IsThreeState="False" >
        </telerik:GridViewCheckBoxColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

 

 

If the above problem is not solved, is there a way to keep the variable when closing or opening the window using GridViewSelectColumn?

Thanks.

 

Vladimir Stoyanov
Telerik team
 answered on 27 Apr 2021
6 answers
392 views

Hey. I already had a license. But I cannot find the Project Configuration Wizard in my VS 2019 Extensions. Here is the screenshot. 

 

 

Vera
Telerik team
 answered on 26 Apr 2021
0 answers
288 views

Hello.

 

I am trying to change a specific background color of a row in a GridView.

Here, I used rowstyle and RowStyleSelector to see that the color has changed. (Both apply)

 

(My function) Clicking the button checks the GridView Row and changes the background color of only the matching values.

Both work when you up or down the mouse wheel. I think this is not efficient for me.

 

I know that RowStyle uses Convert and RowSelector overrides Style SelectStyle.

Is this just the difference? Or what is the performance efficiency that is good when using my function?

 

Thanks.

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 asked on 26 Apr 2021
5 answers
1.4K+ views
Hi there,

In this link http://www.telerik.com/community/code-library/wpf/general/mvvm-context-amp-row-doubleclick-functionality.aspx, it is using the CommandBindingBehavior to bind the MouseDoubleClick event. The Problem is the the even fires when dbl clicking the header or scrollbar.

How can I make it fire when the actual row or cell is double clicked?

Thanks!

May
Chris
Top achievements
Rank 1
Iron
 answered on 25 Apr 2021
1 answer
235 views

Hi.

I think I have a problem with binding.

I use a RadGridView with 3 columns and binding. I set DataContext in code behind and use it in binding here.

I also use TextBlockWithSearchProperty. It's common  TextBlock with my custom property SearchText, it works normally.

The problem is that GridView create a few TextBlockWithSearchProperty objects and  view works normal. I can see a data that I show in view, but in code behind  property Text (TextBlockWithSearchProperty) is equal to "" and DataContext is equal to null. I don't understand why?

How can I fix it? Or what I do wrong?

<telerik:RadGridView Name="GridView"  Margin="5" 
                              AutoGenerateColumns="False" ItemsSource="{Binding Path=SelecteDay.Items}">


            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn Header="Time"

                                            DataMemberBinding="{Binding Time, StringFormat=\{0:hh\\:mm\}}"
                                            CellEditTemplate="{StaticResource TimePicker}" Width="100" />


                <telerik:GridViewDataColumn Header="Text" x:Name="TextColumn" 
                                            DataMemberBinding="{Binding Text, UpdateSourceTrigger=PropertyChanged}" 
                                            Width="*"  IsFilterable="True" FilterMemberPath="Text"> 
                    
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate >
                            <infrastructure:TextBlockWithSearchProperty Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                        SearchText="{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}},                                                                                                Path=DataContext.SearchText, Mode=OneWay}"
                                                                        d:DataContext="{Binding}" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

Chris
Top achievements
Rank 1
Iron
 answered on 25 Apr 2021
4 answers
495 views

Hello,

I'm using the Progress Telerik UI for WFP sample application (R1 2021 SP1) to review the capabilities of RadNotifyIcon.

Unfortunately, the balloon features are not working at all for me. For example, navigating to the "Notify Icon Configurator" sample app, the "Show balloon" and "Hide balloon" both do nothing.

Everything else seems fine - the icon is visible, and the popup features are working. Just the balloon messages are not.

I'm running the latest build of Windows 10 with two 4k monitors are 200% scaling.

Any thoughts on a fix or workaround would be appreciated.

- Mark R.

Vladimir Stoyanov
Telerik team
 answered on 23 Apr 2021
6 answers
1.3K+ views
Hi,

I am new to WPF, I am using MVVM pattern in WPF and generating a Datatable structure at the runtime, then binding Datatable with RadGridView, which is working as expected.

Problem: I want RadGridView configurable (where user can add new row, delete row and edit the data) and on save button click everything should be saved in the database. I am able to bind existing data from the Datatable to RadGridView, but not able to edit, delete or add new rows. I have set "True" value for CanUserDeleteRows and CanUserInsertRows. I am not sure where I am going wrong.

In one of the Telerik blog, I read that we should bind Dataview to RadGridView (as Dataview inplements INotifyPropertyChanged), but if I do that then my RadGridView appears to be empty everytime (not even show coloumns).

Any help will be highly appreciated.

Thanks in advance!
Vladimir Stoyanov
Telerik team
 answered on 23 Apr 2021
2 answers
293 views

Hello Community.

Is it possible to use Telerik UI with ARIA for WPF / XAML / VB without using ASP.NET or Silverlight?

We're looking for a solution to read ARIA tags with JAWS Screen Reader from a Desktop Application.

Greetings

Jürgen

Jürgen
Top achievements
Rank 1
 answered on 23 Apr 2021
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?