Telerik Forums
UI for WPF Forum
3 answers
52 views
Hi,

actually, my MinorThickLength is set to 15 mins and depending on the size of my screen, sometime the MinorThickLength become none visible. I would like to know if there is something to control this behavior, I mean,  depending on the size of the control, the MinorThickLength value change to stay visible?!?

Thank's
Alain
Kalin
Telerik team
 answered on 23 Feb 2015
1 answer
152 views
Hello All,

         İn RadMap when ı click an object on HeatMap my map drawing ne lines . But ı couldnt set zoom and center for lines . How can ı do this?
Petar Mladenov
Telerik team
 answered on 23 Feb 2015
1 answer
117 views
Hi

I'm using RadRibbonView with Prism as a Region.

I have a home tab with navigation to the main start view of each module.

As I navigate in the module, I'm adding tabs as views to the RibbonView region, and removing them as I change modules.

However, when I navigate to a new view and add the new tab to the RibbonView, I can't work out how to make the RibbonView switch to the new tab, it remains on my Home tab.

Any ideas how to solve this.

Thanks

Nick
Kiril Vandov
Telerik team
 answered on 23 Feb 2015
2 answers
163 views
I have a RadGridView in a user control with a very sparse look in the Windows 8 theme, so I'm trying to eliminate all lines from the gridview. Using the Windows8 theme via the theme manager gets me most of the way there, and a few properties get me almost all the way there. However, I can't seem to find where the vertical lines at the beginning of each row are defined. Can anyone point me to the style component that's responsible for these and give me a hint as to how to get rid of them?

I've attached a single row example that shows the thin black line and thicker gray line I'm trying to get rid of.

Thanks,
Josh
Josh K
Top achievements
Rank 1
 answered on 23 Feb 2015
3 answers
101 views
Hello!

I am using SqlGeospatialDataReader as InformationLayer.Reader.     
                        
<telerik:SqlGeospatialDataReader Source="{Binding Grundstücke}"
                                 GeospatialPropertyName="WKTGeo"
                                 ToolTipFormat="{}ID: {ID} {Riede} Reihen: {Reihen}">
    <telerik:SqlGeospatialDataReader.PointTemplate>
        <DataTemplate>
            <Ellipse Width="8" Height="8" Fill="Black" Stroke="White" StrokeThickness="1" />
        </DataTemplate>
    </telerik:SqlGeospatialDataReader.PointTemplate>
</telerik:SqlGeospatialDataReader>

Is there something like a Selected Point template? To visually see, what point is selected. My WKT data is Multipoint. I also would like every multipoint from a WKT beeing selected, when one is clicked. Can this be done with SqlGeospatialDataReader?

And is it beeng synched with the selection of the underlaying QueryableEntityCollectionView thats the itemsource for the SqlGeospatialDataReader?

greetings
Alexander
Top achievements
Rank 1
 answered on 21 Feb 2015
2 answers
156 views
Using RadGridView, I'm attempting to programmatically select a row and bring it into view.  Code works, unless the row is within a collapsed group.  If the row is within a collapsed group, I get an Out Of Range Exception.

How can I identify and expand the containing groups or otherwise work around this problem?

Thank you!
Bob

Code follows:

foreach (DataRowView rowView in vm.ResultSet.DefaultView)
{
     if (rowView["UWI"].ToString().Trim() == uwi)
         {
             vm.SelectedRowView = rowView;
             WellsGridView.BringIndexIntoView(WellsGridView.Items.IndexOf(WellsGridView.SelectedItem));
             break;
         }
}

BobK
Top achievements
Rank 1
 answered on 20 Feb 2015
1 answer
103 views
Hello,

I'm using RichTextBox version 2013.1.220.40. Since our deployment package is too big, we're trying to use telerik dll's from common IIS place. In the clients configuration I've added
01.<runtime>
02.    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
03.<dependentAssembly>
04.        <assemblyIdentity name="Telerik.Windows.Documents.FormatProviders.Html" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
05.        <codeBase version="2013.1.220.40" href="http://1.1.1.1:20006/Telerik.Windows.Documents.FormatProviders.Html.dll"></codeBase>
06.      </dependentAssembly>
07.<dependentAssembly>
08.        <assemblyIdentity name="Telerik.Windows.Controls.RichTextBoxUI" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
09.        <codeBase version="2013.1.220.40" href=http://1.1.1.1:20006/Telerik.Windows.Controls.RichTextBoxUI.dll></codeBase>
10.      </dependentAssembly>
11.<dependentAssembly>
12.        <assemblyIdentity name="Telerik.Windows.Documents" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
13.        <codeBase version="2013.1.220.40" href="</codeBase">http://1.1.1.1:20006/Telerik.Windows.Documents.dll"></codeBase>
14.      </dependentAssembly>
15.
19.</assemblyBinding>
20.  </runtime>

Here our symptoms:
1. If we put Telerik.Windows.Documents.FormatProviders.Html in common place, binding is not working.
2. If we put Telerik.Windows.Controls.RichTextBoxUI in common place, context menu is not working
3. If we put Telerik.Windows.Documents in common place, copy/paste not working

Now I put all of those dlls in clickonce package (removed from common IIS folder). Now not copy/working sometimes. Gives the following exception:

System.InvalidOperationException: Sequence contains no
elements

   at
System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at Telerik.Windows.Documents.DocumentPositionLocationHelper.GetNearestLeafBoxByPosition(PointF
position, LayoutBox root, LayoutBox& currentSolution)

   at
Telerik.Windows.Documents.DocumentPositionLocationHelper.GetLayoutBoxByPosition(PointF
position, LayoutBox root)

   at
Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean
moveToNextIfOutOfBox)

   at
Telerik.Windows.Documents.Selection.MouseSelectionHandler.SetDocumentPosition(DocumentPosition
documentPosition, Point position, Boolean moveToNextIfOutOfBox)

   at
Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentMouseMove(Point
position, SourceType source)

   at
Telerik.Windows.Documents.UI.DocumentPresenterBase.HandleMouseMoveOnPosition(Point
position, SourceType source)

   at
Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseMove(Object
sender, MouseEventArgs e)

   at
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at
System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs
args, Boolean reRaised)

   at
System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,
RoutedEventArgs args)

   at
System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at
System.Windows.Input.InputManager.ProcessStagingArea()

   at
System.Windows.Input.MouseDevice.Synchronize()

   at
System.Windows.Input.MouseDevice.PostProcessInput(Object sender,
ProcessInputEventArgs e)

   at
System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler
postProcessInput, ProcessInputEventArgs processInputEventArgs)

   at
System.Windows.Input.InputManager.ProcessStagingArea()

   at
System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at
System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd,
InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y,
Int32 wheel)

   at
System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd,
WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at
System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled)

   at
MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr
lParam, Boolean& handled)

   at
MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,
Object args, Int32 numArgs)

   at
MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source,
Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

What's the problem, I cannot identify the problem. Can you please help ?

Thank you,
dogu
Petya
Telerik team
 answered on 20 Feb 2015
4 answers
146 views
Hi,

Trying to follow the example in your documentation of connecting the carousel to a dataset 

this.MyCarousel.ItemsSource = dsCarousel(); //My named dataset


I've created a dataset object using the 'Data Sources' option in VS2012. When I set the itemsource to the dataset name it's telling me datasource is a type but being used as a variable, which I understand.


this.RadCarousel1.ItemsSource = GetDataTable();

radCarousel1.DataMember = "Orders";
radCarousel1.ItemsSource = dataSet;


//MY CODE EXAMPLE BELOW

namespace WPFTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            this.MyCarousel.ItemsSource = dsCarousel();

        }
    }
}


What I don't understand is how exactly am I to interpret the example of assigning the dataset per the documentation? I can test and see data fill the dataset object using TableAdapter Config Wizard so I know it's connecting. But do I have to create this dataset completely in code to use it or am I missing or not understanding something very obvious. I'm new to windows programming and especially using WPF controls so I'm just trying to find my way here. Let me know if I've made sense at all?

Thanks in advance.

Tony








Tony
Top achievements
Rank 1
 answered on 20 Feb 2015
17 answers
737 views
Hello,

Is it possible to get Silverlight Movie Player ported to WPF ?
Pavel R. Pavlov
Telerik team
 answered on 20 Feb 2015
19 answers
320 views
Some of my users are seeing the group headers and aggregate functions get out of sync in a grid after expanding and collapsing a couple of times.  Groups will show the key and the details from that group but the aggregate results from another group.

This grid uses a group header template and the collapse all/ expand all functionality is in code using ExpandAllGroups() and CollapseAllGroups().  Is this a known issue?  (I am having trouble duplicating this on my machine but I have seen it happen on other machines)

Here is xaml for the grid:

<telerik:RadGridView DockPanel.Dock="Top" x:Name="grdAccrual" ItemsSource="{Binding EnterpriseAllocationRecords}" AutoGenerateColumns="False"
                                         IsFilteringAllowed="False" ShowGroupPanel="False" SelectionMode="Extended" ShowInsertRow="False" 
                                         ActionOnLostFocus="CommitEdit"  CanUserInsertRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False"
                                         IsReadOnly="False" CanUserFreezeColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False"
                                         RowIndicatorVisibility="Collapsed" AutoExpandGroups="True" EditTriggers="F2,CellClick"
                                         ScrollViewer.VerticalScrollBarVisibility="Auto" RowEditEnded="grdAccrual_RowEditEnded"
                                        RowHeight="27">
              
            <telerik:RadGridView.Columns>
                <!--<telerik:GridViewDataColumn Header="ATIG"  CellStyle="{StaticResource LeftAlignCell}" DataMemberBinding="{Binding TransactionCode}"  Width="65" IsReadOnly="True"></telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Description"  CellStyle="{StaticResource LeftAlignCell}" DataMemberBinding="{Binding TransactionDescription}" IsReadOnly="True" Width="*" />-->
                <telerik:GridViewDataColumn Header="Ent" CellStyle="{StaticResource LeftAlignCell}" DataMemberBinding="{Binding EnterpriseCode}" IsFilterable="False" IsReadOnly="True" Width="50" />
                <telerik:GridViewDataColumn Header="Ent Desc" CellStyle="{StaticResource LeftAlignCell}" DataMemberBinding="{Binding EnterpriseDescription}" IsFilterable="False" IsReadOnly="True" Width="350" />
                <telerik:GridViewDataColumn Header="Cash/Inv" DataMemberBinding="{Binding SuggestedAccrualAmount}" DataFormatString="{}{0:f2}" IsFilterable="False" IsReadOnly="True" Width="70" >
                    <!--<telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Cash/Inv Accrual" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>-->
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="%" DataMemberBinding="{Binding AllocationPercent}" DataFormatString="{}{0:p2}" IsFilterable="False" Width="60">
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>                            
                            <telerikInput:RadMaskedNumericInput x:Name="txtAllocationPercent" Mask="p3.2" 
                                                                SpinMode="None" IsClearButtonVisible="False" SelectionOnFocus="SelectAll"
                                                                KeyboardNavigation.TabNavigation="Local" TextMode="PlainText"                                                                
                                                                Validation.ErrorTemplate="{StaticResource TextBoxErrorTemplate}"  
                                                                 >
                                <telerikInput:RadMaskedNumericInput.Value>
                                    <Binding Path="AllocationPercent" Mode="TwoWay" UpdateSourceTrigger="LostFocus">
                                        <Binding.ValidationRules>
                                            <imKASHelper:PercentValidationRule Min="-100.00" Max="100.00" />
                                        </Binding.ValidationRules>
                                    </Binding>
                                </telerikInput:RadMaskedNumericInput.Value>
                            </telerikInput:RadMaskedNumericInput>
  
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Units" DataMemberBinding="{Binding Units}" DataFormatString="{}{0:f2}" IsFilterable="False" IsReadOnly="True" Width="70" ></telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Weight" DataMemberBinding="{Binding Weight}" DataFormatString="{}{0:f2}" IsFilterable="False" IsReadOnly="True" Width="70" ></telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Amount}" DataFormatString="{}{0:f2}" IsFilterable="False" Width="70" >
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Amount" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerikInput:RadMaskedNumericInput x:Name="txtAmount" Mask="#11.2" 
                                                                SpinMode="None" IsClearButtonVisible="False" SelectionOnFocus="SelectAll"
                                                                KeyboardNavigation.TabNavigation="Local" TextMode="PlainText"                                                                
                                                                Validation.ErrorTemplate="{StaticResource TextBoxErrorTemplate}"  
                                                                 >
                                <telerikInput:RadMaskedNumericInput.Value>
                                    <Binding Path="Amount" Mode="TwoWay" UpdateSourceTrigger="LostFocus">
                                        <Binding.ValidationRules>
                                            <imKASHelper:DoubleValidationRule Min="-10000000000.00" Max="10000000000.00" />
                                        </Binding.ValidationRules>
                                    </Binding>
                                </telerikInput:RadMaskedNumericInput.Value>
                            </telerikInput:RadMaskedNumericInput>
  
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.GroupRowStyle>
                <Style TargetType="telerik:GridViewGroupRow">
                    <Setter Property="ShowHeaderAggregates" Value="False"></Setter>                    
                </Style>
            </telerik:RadGridView.GroupRowStyle>
  
            <telerik:RadGridView.GroupHeaderTemplate>                
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Margin="0,0" Height="45">
                        <TextBlock Text="{Binding Group.Key}" Margin="0,0,0,2" Width="200" />                        
                        <telerik:AggregateResultsList ItemsSource="{Binding AggregateResults}" VerticalAlignment="Center">
                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Caption}" Width="90" />
                                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding FormattedValue}" Width="90" Style="{StaticResource EnterpriseStatusStyle}" />
                                    </StackPanel>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal" />
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                        </telerik:AggregateResultsList>
                    </StackPanel>
  
                </DataTemplate>
            </telerik:RadGridView.GroupHeaderTemplate>
            <telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor x:Name="TransactionGroup" Member="TransactionGroup" SortDirection="Ascending" >
                    <telerik:GroupDescriptor.AggregateFunctions>
                        <telerik:MinFunction Caption="Cash" SourceField="CashTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Beg Inv" SourceField="BegInvTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="End Inv" SourceField="EndInvTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Beg Acc" SourceField="BegAccruedTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="End Acc" SourceField="EndAccruedTotal" ResultFormatString="{}{0:0.00}"  />
                        <telerik:MinFunction Caption="Accrual" SourceField="AccrualAmount" ResultFormatString="{}{0:c2}"  />
                        <telerik:SumFunction Caption="Ent Amt" SourceField="Amount" ResultFormatString="{}{0:c2}"  />
                        <local:EnterpriseDifferenceFunction Caption="Diff" ResultFormatString="{}{0:0.00}" />
                    </telerik:GroupDescriptor.AggregateFunctions>
                </telerik:GroupDescriptor>
            </telerik:RadGridView.GroupDescriptors>
        </telerik:RadGridView>

Stefan
Telerik team
 answered on 20 Feb 2015
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?