Telerik Forums
UI for WPF Forum
3 answers
378 views

Hi

I'm trying to data-bind the IsPinned-property of the GridViewRow to a value from my model.

After numerous unsuccessful tries, I tried setting the IsPinned property to true through a style (see below).

However, the row is not pinned, also the button does not reflect the Pinned state.

How can I set the IsPinned-property through a property of my model?

 

01.<telerik:RadGridView Grid.Row="2" ItemsSource="{Binding Path=CalculablePersons}" GroupRenderMode="Flat" PinnedRowsPosition="Top">
02.    <telerik:RadGridView.Resources>
03.        <Style TargetType="{x:Type telerik:GridViewRow}" BasedOn="{StaticResource {x:Type telerik:GridViewRow}}">
04.            <Setter Property="IsPinned" Value="True" />
05.        </Style>
06.    </telerik:RadGridView.Resources>
07. 
08.    <telerik:RadGridView.Columns>
09.        <telerik:GridViewPinRowColumn />
10.        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Name}" />
11.    </telerik:RadGridView.Columns>
12.</telerik:RadGridView>
Stefan
Telerik team
 answered on 22 Dec 2016
3 answers
164 views

hello,

I want to present multiple legends on radMap, each legend item I want to present is actually a userControl that I build and it contains spectrum, numbers and some other buttons and options.

my final result is to have the map layer and above it a layer in witch allow the user drag and drop the legends all over the map (in order to place them wherever he wants)

so basically i need a layer that:

1. transparent

2. I want it not to block the layer below it

3. I want it to allow drag and drop

attached a png to show what i mean

I'm trying to use itemsControl in information layer in order to bind MapLeged to it but no success.. nothing presented on the map

this is my code in generally:

<telerik:RadMap>

     <telerik:InformationLayer x:Name="informationLayer">

       <ItemsControl itemsSource= " {Binding LayersProvider.Layers} "

           <ItemsControl.ItemsPanel>

              <ItemsPanelTemplate......./>

          </ItemsControl.ItemsPanel>

          <ItemsControl.ItemTemplate>

             <DataTemplate>

                   <contentControl content={Binding LegendContext}"/>

             </DataTemplate>

          </ItemsControl.ItemTemplate>

      </ItemsControl>

     </telerik:InformationLayer>

     <telerik:VisualizationLayer......................./>

</telerik:RadMap>

 

<telerik:MapLegend  x:Name="mapLegend"

                                  Layer="{Binding informationLayer}" />

maybe you will have an idea for me.

thank you so match

stav

Petar Mladenov
Telerik team
 answered on 22 Dec 2016
1 answer
176 views
Hi Telerik,
  
We are facing two issues when we are using Stepline series.
  
ISSUE 1 :
  
When there is only one category / data point then chart is not drawing . We have such cases  and we need solution or workaround for this case
          
        <telerik:StepLineSeries>
            <telerik:StepLineSeries.DataPoints>
                <telerik:CategoricalDataPoint Category="1" Value="1.0" />
                <!--<telerik:CategoricalDataPoint Category="2" Value=1.1" />
                <telerik:CategoricalDataPoint Category="3" Value="1.0" />
                <telerik:CategoricalDataPoint Category="4" Value="1.1" />-->
            </telerik:StepLineSeries.DataPoints>
        </telerik:StepLineSeries>
ISSUE 2 :
We are using marked zone but marking falling in between and not from beginning so we used margin workaround from telerik to fix (Please see code from attached xaml.cs file)
  
Before Shifting
See image
 
After Shifting
See image
 
    BELOW CODE USED TO ALIGN MARGIN
int categoriesCount = this.horizontalAxis.Categories.Count();
double categorySlotSize = this.chart.PlotAreaClip.Width *    this.chart.Zoom.Width / categoriesCount;
  
                var margin = new Thickness(-(categorySlotSize / 2), 0, 0, 0);
                if (!margin.ToString().Contains("Infinity"))
                {
                    this.chart.Annotations.Where(x => x is CartesianMarkedZoneAnnotation).ToList()
                        .ForEach(m => { m.Margin = margin; });
  
                }
But we are facing issue when we zoom the chart.The marking going out of actual area.Please help to resolve it.
      
After Zooming 
See Image
          
ISSUE 3 :
  
When we are using marking for last category then the marking done for half way only.Please help to draw until end (Need to support while zooming as well)
  
            <telerik:StepLineSeries>
            <telerik:StepLineSeries.DataPoints>
                <telerik:CategoricalDataPoint Category="1" Value="1.0" />
                <telerik:CategoricalDataPoint Category="2" Value="1.1" />
                <telerik:CategoricalDataPoint Category="3" Value="1.0" />
                <telerik:CategoricalDataPoint Category="4" Value="1.1" />
            </telerik:StepLineSeries.DataPoints>
        </telerik:StepLineSeries>
  
<telerik:CartesianMarkedZoneAnnotation VerticalFrom="1.0" VerticalTo="1.1" HorizontalFrom="4" Fill="Red"/>
Martin Ivanov
Telerik team
 answered on 22 Dec 2016
9 answers
393 views
<teler
Hi Telerik,
 
I am using stepline series with compination of Marked Zone to higlight certain horizontal/vertical area.The problem i am facing is marking on stepline not exactly sitting on specific category of stepline.As per below sample It starting from half 1 and ending 2 but in the result appear as starting from 0.5 to 1.5.Please see attached for accurate view.
Pelase help me on this.
ik:RadCartesianChart
x:Name="chart1" Grid.Row="2" Grid.Column="1"  >
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis IsInverse="False"  VerticalLocation="Top"    />
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <!--<telerik:RangeBarSeries>
                <telerik:RangeBarSeries.DataPoints>
                    <telerik:RangeDataPoint Category="1"  High="2.1" Low="2.0"/>
                    <telerik:RangeDataPoint Category="2" High="0" Low="0"/>
                    <telerik:RangeDataPoint Category="3" High="2.1" Low="2.0"/>
                    <telerik:RangeDataPoint Category="4" High="0" Low="0"/>
                </telerik:RangeBarSeries.DataPoints>
            </telerik:RangeBarSeries>-->
            <telerik:StepLineSeries>
                <telerik:StepLineSeries.DataPoints>
                    <telerik:CategoricalDataPoint Category="1" Value="2.0" />
                    <telerik:CategoricalDataPoint Category="2" Value="2.1" />
                    <telerik:CategoricalDataPoint Category="3" Value="2.0" />
                    <telerik:CategoricalDataPoint Category="4" Value="2.1" />
                </telerik:StepLineSeries.DataPoints>
            </telerik:StepLineSeries>
      
            <telerik:RadCartesianChart.Annotations>
                <telerik:CartesianMarkedZoneAnnotation VerticalFrom="2.0" VerticalTo="2.1"
                                                      HorizontalFrom="1" HorizontalTo="2" Fill="Red"/>
            </telerik:RadCartesianChart.Annotations>
 
            <!--<telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY"/>
            </telerik:RadCartesianChart.Grid>-->
        </telerik:RadCartesianChart>
Martin Ivanov
Telerik team
 answered on 22 Dec 2016
30 answers
881 views
Hello Team,

I have open and displayed PDF document using Telerik RadPDFViewer WPF application, and i was able to do certain functions like Open, Save, print, Rotate, Zoom, Navigations.

But i want to append a page to the existing document that was opened using RadPDFViewer and also need to upload multiple PDFfiles and display at a time

Please suggest me on this.

Thanks,
Bindu
Kalin
Telerik team
 answered on 22 Dec 2016
1 answer
103 views

Hi,

I'm trying to use your cartesian 3D chart, I need to show a chart but with a line presentation (instead of surface or bar or point).

is that possible?

I'm attaching a screenshot of my needs with other 3d view component so maybe you can understand better what i'm talking about.

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Dec 2016
2 answers
120 views

Hi, 

I have the license for version 2011.1.405.40. And in this version, i am getting the Animation exception whenever i move the mouse over the timebar control. Apparently it is trying to access Hand property of Cursor and it is unable to animate it over the Border control. Following is my code:

<telerik:RadTimeBar x:Name="timeBar"
                            Width="950"
                            Height="250"     
                            PeriodStart="01-01-2011"
                            PeriodEnd="01/01/2012"
                            VisiblePeriodStart="01/01/2011"
                            VisiblePeriodEnd="06/01/2011"
                            SelectionStart="02/01/2011"
                            SelectionEnd="03/01/2011"
                            MinSelectionRange="28.00:00:00"                           
                            MaxSelectionRange="31.00:00:00"                           
                            IsSnapToIntervalEnabled="True">
            <telerik:RadTimeBar.Intervals>
                <telerik:YearInterval/>
                <telerik:MonthInterval/>
                <telerik:WeekInterval/>
                <telerik:DayInterval/>
                <telerik:MinuteInterval IntervalSpans="1,10,15,30"/>
                <telerik:SecondInterval IntervalSpans="10,15,30"/>
            </telerik:RadTimeBar.Intervals>
        </telerik:RadTimeBar>

 

I have attached the image of exception as well. The newer version does not have this bug, but I cannot upgrade due to compatibility issues. I hope that there is a fix for this, disabling the animation or something like that. 
Waiting for your early response. Thanks!

Evgenia
Telerik team
 answered on 21 Dec 2016
3 answers
413 views
I seem to be having some issues with a TreeListView placed inside a Grid with a single Row with Height="*" (as indicated here http://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/performance), with some severe performance issues when scrolling either vertically or horizontally: TreeListCellsPanel.MeasureOverride seems to be a bottleneck, and placing a breakpoint at this method indicates that this function is called successively with availableSize equals to either {0; 26} or {+Inf, +Inf}. Adding more rows or columns makes this even worse.
Yoan
Telerik team
 answered on 21 Dec 2016
0 answers
128 views

Hi,

I could not find out how to adjust speed options of RadGridView scrollbar. Actual behaviour is that the more is scrollbar moved by mouse the speed is increased. Grid is showing complex data so scrolling with higher speeds in combination with more rows leads to scroll tearing. The more is speed the tearing is worse.

One solution is to set scrolling to be deffered, another one is to optimize columns, data bindings etc. and try result but I would like also to know how to fix speed at some pages a time or something like that.

Thank you very much.

 

Jiri
Top achievements
Rank 1
 asked on 21 Dec 2016
1 answer
88 views

If I move a shape from diagram to a container, i can attach the OnCollectionChanged() in the container to detect the moved shape. But, if I move the shap back to diagram, i dont have method to attach the change event in the diagram control. because the shape is already added in the graphsource, so the AddItem() method isnt invoked.

 

How can i detect a shape that is moved from container to diagram?

 

Thanks for a replay!

Martin Ivanov
Telerik team
 answered on 21 Dec 2016
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?