Telerik Forums
UI for WPF Forum
1 answer
135 views
Hi everyone,
we use a collection with dynamic objects which is binded to a RadGridView. 
All colums and rows are shown correctly but unfortunatly the integrated search function (ctrl + f) does not search within attributes which are added dyanmically to the objects.
It works only for attributes which are directly implemented.

Is it a common behaviour of the search function or may be a bug \ missing feature?

Thank you for your help!
Stefan Nenchev
Telerik team
 answered on 31 Jan 2017
1 answer
405 views
Hi my appointments have a active flag and when it's false, I would like the delete button to hide. I was reading that I should edit the schedule view xaml code but my bindings aren't correct. Any ideas?

<telerik:RadButton x:Name="DeleteButton"
            Style="{StaticResource DeleteButtonStyle}"
            Command="{x:Static local:RadScheduleViewCommands.DeleteAppointment}"
            ClickMode="Press"
            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
            Visibility="{Binding Active, Converter={StaticResource BooleanToVisibilityConverter}}"
            IsTabStop="False" />

               
Yana
Telerik team
 answered on 31 Jan 2017
5 answers
292 views
Is there a way to get the calculator picker to display 1.00 instead of just 1?  I want to use it to display money values and 1.00 feels better than just 1.

Dilyan Traykov
Telerik team
 answered on 30 Jan 2017
3 answers
161 views

Hi,

 

I have successfully used the AsyncSqlGeospatialDataReader to read shape data stored in a geometry column in SQL. I first read the geometry objects into a local collection and then assign that collection to the reader

var readerRail = new Telerik.Windows.Controls.Map.SqlGeospatialDataReader();
readerRail.Source = RailShapes;
readerRail.ToolTipFormat = "{SegmentLabel}";
readerRail.GeospatialPropertyName = "ShapeWKT";
readerRail.PreviewReadCompleted += readerRail_PreviewReadCompleted;
 

However, while this has worked on three previous collections on this specific one I get a "Non-static method requires a target" error. It seems as if some of the shape data must then be an issue but I have no idea where to start looking.

 PS: SQL Management studio can query the data and display it

 

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2017
1 answer
234 views

Hi Team,

I'm just trying to insert a telerik docking Control, but it's not visible in the designer.

Code:

<telerik:RadDocking  MinHeight="70" Margin="2,2,2,2" Height="100" Width="1300" Background="#E5E5E5" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"  >
                        <telerik:RadDocking.DocumentHost>
                            <telerik:RadDockPanel>
                                <telerik:RadPaneGroup>
                                    <telerik:RadPane Header="Docking">
                                        <TextBlock Text="HOIxhskaxhksaj"/>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                            </telerik:RadDockPanel>
                        </telerik:RadDocking.DocumentHost>
                    </telerik:RadDocking>

Stefan
Telerik team
 answered on 30 Jan 2017
1 answer
108 views

Hi,  I have a wpf application which main area is RadDocking control with DocumentHost and so on.  Actually it is Tab MDI application based on RadDocking.  I would like to drag and drop files to this area of the application from windows explorer. For RadDocking I can handle PreviewDrop event,  but Drop event is not raised.  Feedback event is not raised to (for custom visual cursor).  I tried to work with DragDropManager but got same behavior.  Allow drop is set true for RadDocking control  and qindow as well.  Solutions? 

Thanks, 

Vladimir 

Nasko
Telerik team
 answered on 30 Jan 2017
4 answers
282 views
Hello.
I use the <telerik:ChartPanAndZoomBehavior DragMode="Pan" PanMode="Both" ZoomMode="Both" /> for scaling the RadCartesianChart.
How I can hide the scroll bars?
Martin Ivanov
Telerik team
 answered on 27 Jan 2017
1 answer
146 views

Hi I'm using the RadCartesianChart to plot multiple series of data.

When the data range is small, I receive a divide by zero exception.

01.<telerik:RadCartesianChart Name="GraphSeriesChart" Grid.Row="2" Margin="10" Background="LightGray" >
02. 
03.        <telerik:RadCartesianChart.Behaviors >
04.            <telerik:ChartPanAndZoomBehavior ZoomMode="Both" DragMode="Pan" PanMode="Both" />
05.        </telerik:RadCartesianChart.Behaviors>
06. 
07.        <telerik:RadCartesianChart.HorizontalAxis >
08.            <telerik:DateTimeCategoricalAxis LabelFormat="HH:mm:ss" MajorTickInterval="250" LabelFitMode="MultiLine" />
09.        </telerik:RadCartesianChart.HorizontalAxis>
10. 
11.        <telerik:RadCartesianChart.VerticalAxis >
12.            <telerik:LinearAxis HorizontalLocation="Left" Visibility="Visible" />
13.        </telerik:RadCartesianChart.VerticalAxis>
14. 
15.        <telerik:RadCartesianChart.SeriesProvider >
16.            <telerik:ChartSeriesProvider Source="{Binding TECSeriesSelected}" >
17.                <telerik:ChartSeriesProvider.SeriesDescriptors >
18.                    <telerik:CategoricalSeriesDescriptor ValuePath="Value" CategoryPath="Time" >
19.                    </telerik:CategoricalSeriesDescriptor>
20.                </telerik:ChartSeriesProvider.SeriesDescriptors>
21.            </telerik:ChartSeriesProvider>
22.        </telerik:RadCartesianChart.SeriesProvider>
23. 
24.        <telerik:RadCartesianChart.Grid >
25.            <telerik:CartesianChartGrid MajorLinesVisibility="XY" >
26.                <telerik:CartesianChartGrid.MajorXLineStyle >
27.                    <Style TargetType="Line" >
28.                        <Setter Property="Stroke" Value="Gray" />
29.                    </Style>
30.                </telerik:CartesianChartGrid.MajorXLineStyle>
31.                <telerik:CartesianChartGrid.MajorYLineStyle >
32.                    <Style TargetType="Line" >
33.                        <Setter Property="Stroke" Value="Gray" />
34.                    </Style>
35.                </telerik:CartesianChartGrid.MajorYLineStyle>
36.            </telerik:CartesianChartGrid>
37.        </telerik:RadCartesianChart.Grid>
38.    </telerik:RadCartesianChart>

 

01.TECSeriesSelected.Clear();
02. 
03.TECSeriesSelected.Add(new RadObservableCollection<DataPoint>(new DataPoint[3]));
04.TECSeriesSelected.Add(new RadObservableCollection<DataPoint>(new DataPoint[3]));
05. 
06.TECSeriesSelected[0][0] = new DataPoint();
07.TECSeriesSelected[0][0].Value = 0;
08.TECSeriesSelected[0][0].Time = new DateTime(0);
09. 
10.TECSeriesSelected[0][1] = new DataPoint();
11.TECSeriesSelected[0][1].Value = 0;
12.TECSeriesSelected[0][1].Time = new DateTime(10);
13. 
14.TECSeriesSelected[0][2] = new DataPoint();
15.TECSeriesSelected[0][2].Value = 0;
16.TECSeriesSelected[0][2].Time = new DateTime(20);
17. 
18.TECSeriesSelected[1][0] = new DataPoint();
19.TECSeriesSelected[1][0].Value = 2.75E-28F;
20.TECSeriesSelected[1][0].Time = new DateTime(0);
21. 
22.TECSeriesSelected[1][1] = new DataPoint();
23.TECSeriesSelected[1][1].Value = 2.75E-28F;
24.TECSeriesSelected[1][1].Time = new DateTime(10);
25. 
26.TECSeriesSelected[1][2] = new DataPoint();
27.TECSeriesSelected[1][2].Value = 2.75E-28F;
28.TECSeriesSelected[1][2].Time = new DateTime(20);

Is there a way to fix this issue?

Tanya
Telerik team
 answered on 27 Jan 2017
11 answers
360 views
When a user wants a control added to their layout, we want it to pop up front and center.

So we do something on the order of: 

void MakeNewPane(RadPane newPane)
{
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadSplitContainer splitContainer = new RadSplitContainer();
 
// Fixed 300x400 size, centered on the main window, so it's easy to find.
Window parentWindow = Window.GetWindow(this);
splitContainer.SetValue(RadDocking.FloatingSizeProperty, new Size(400, 300));
splitContainer.SetValue(RadDocking.FloatingLocationProperty, new Point((parentWindow.ActualWidth - 400) / 2, (parentWindow.ActualHeight - 300) / 2));
 
splitContainer.Items.Add(radPaneGroup);
radDocking.Items.Add(splitContainer);
 
radPaneGroup.AddItem(newPane, DockPosition.Center)
pane.MakeFloatingDockable();
}

That works well enough..  And from the user's point of view, they can drag/drop/stick the pane wherever they want..  all good so far.

When we go to save the layout though, it looks something like this:

<RadDocking>
        <SplitContainers>
          <RadSplitContainer Dock="DockedLeft" Width="414" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
            <Items>
              <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
                <Items>
                  <RadPane SerializationTag="PortfolioHierarchy1" IsDockable="True" Title="Hierarchy" Header="Hierarchy" CanDockInDocumentHost="False" />
                </Items>
              </RadPaneGroup>
            </Items>
          </RadSplitContainer>
          <RadSplitContainer Dock="DockedTop" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
            <Items>
              <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
                <Items>
                  <RadPane SerializationTag="PortfolioSummary1" IsDockable="True" Title="Summary" Header="Summary" CanDockInDocumentHost="False" />
                </Items>
              </RadPaneGroup>
            </Items>
          </RadSplitContainer>
          <RadSplitContainer Dock="DockedLeft" Width="240">
            <Items>
              <RadPaneGroup SelectedIndex="-1">
                <Items />
              </RadPaneGroup>
            </Items>
          </RadSplitContainer>
          <RadSplitContainer Dock="DockedLeft" Width="240">
            <Items>
              <RadPaneGroup SelectedIndex="-1">
                <Items />
              </RadPaneGroup>
            </Items>
          </RadSplitContainer>
          <RadSplitContainer Dock="DockedLeft" Width="240">
            <Items>
              <RadPaneGroup SelectedIndex="-1">
                <Items />
              </RadPaneGroup>
            </Items>
          </RadSplitContainer>
        </SplitContainers>
      </RadDocking>


Note the extra RadSplitContainers and RadPaneGroups that are empty..

Looking through the code, there seems to be an internal property that I can't get to ( IsAutoGenerated="True")
that would allow the RadDocking to clean things up when refreshing..  basically delete the empty ones.

How can I do that through code?  I can't figure out if there's an event I should use to clean things up or if I can somehow use AutoGenerated groups/containers myself.  

I'd much rather just say:  radDocking.AddPane(newPane, CenterParent, 300x300), and let everything else be auto from there.  

-Peter
Stefan Nenchev
Telerik team
 answered on 27 Jan 2017
1 answer
144 views

Hello,

 

I'm currently using the free trial TelerikDevCraftUltimateSetup_2016_4_1317_1 have found some strange behavior or a bug whilst trying to recreate an existing layout I want to replicate.

I have some RadPane's which needs to be docked as unpinned so they slide in and out when clicked. Inside the PadPane is a RadTabControl with 3 tabs.If I then put a PropertyGrid inside a RadTabItem the RadPane no longer stays open when a tab item is clicked. Is this a bug? Is there a way to stop this happening?

 

I've attached an example showing the problem

On the attached,

1. Click Header2 to unhide the pane (keep unpinned)

2. If you click between the 2 tabs with headers "Works Okay" you can see the expected behavior where the panel does not slide away

3. If you click on the tab with header "Not Working" and then then another tab the panel slides out of view. This tab contains a RadPropertyGrid. How can this be prevented?

 

MainWindow.xaml:

<telerik:RadWindow x:Class="WpfApp1.MainWindow"
        Header="MainWindow" Height="500" Width="800">
    <Grid>
        <telerik:RadDocking x:Name="radDocking1"
                            RetainPaneSizeMode="DockingAndFloating">
 
            <telerik:RadSplitContainer Name="LeftContainer"
                                       InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="Group1">
 
                    <telerik:RadPane x:Name="mtPane" Header="Header1">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer x:Name="RightContainer"
                                       InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="Group2" Margin="-310,0,6,0">
 
                    <telerik:RadPane x:Name="ssPane"
                                         Header="Header2"
                                         IsPinned="false">
                        <Grid HorizontalAlignment="Stretch"
                                  VerticalAlignment="Stretch" >
                            <Grid HorizontalAlignment="Stretch"
                                      VerticalAlignment="Top" >
 
                            </Grid>
                            <telerik:RadTabControl x:Name="radTabControl"
                                                   HorizontalAlignment="Stretch"
                                                   VerticalAlignment="Stretch">
                                <telerik:RadTabItem x:Name="RadTabSettings"
                                                    Header="Works Okay"
                                                    Height="30">
 
                                </telerik:RadTabItem>
 
                                <telerik:RadTabItem x:Name="RadTabSelections"
                                                    Header="Works Okay"
                                                    Height="30">
                                </telerik:RadTabItem>
 
                                <telerik:RadTabItem x:Name="RadTabStaking"
                                                    Header="Not Working" >
 
                                    <telerik:RadPropertyGrid x:Name="propertyGridEventStaking">
 
                                    </telerik:RadPropertyGrid>
                                </telerik:RadTabItem>
                            </telerik:RadTabControl>
                        </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
        </telerik:RadDocking>
    </Grid>
</telerik:RadWindow>
Stefan
Telerik team
 answered on 27 Jan 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?