Telerik Forums
UI for WPF Forum
0 answers
90 views
Hi,

There is a way to convert the format of a column to a hyperlink?

Thanks....
Romell
Top achievements
Rank 1
 asked on 25 Jul 2012
0 answers
87 views
hi,

i want to implement grid management feature using RadGridView  in wpf using mvvm and c#. here i wanted to show an edit button (like we show in radgrid in aspx page ) but did not find any way to display the edit button .according to the requirement first we have to display the edit button on the grid.
when a user clicks on the edit button then at the  bottom only the fields which are to be edited(not all the columns are editable) should be displayed in the bottom of the window. we have impmented the same in aspx by using (GridEditableItem editItem = (GridEditableItem)e.Item;) the same want to implement in wpf how to achive this. 
thanks in advance. 
regards
satish
Satish
Top achievements
Rank 1
 asked on 25 Jul 2012
2 answers
220 views
I am trying to used an attached behavior on my RadDocking control to hook into a RadPane drag event. I am having a hard time getting the Drag Event to be fired when the pane is floating and being dragged. Is this functionality possible?

Here is my behavior that is not working:

public class PaneDragBehavior : Behavior<RadPane>
    {
        protected override void OnAttached()
        {
 
            AssociatedObject.PreviewDragEnter += (o, e) =>
                {
                    //do something
                };
         }
    }

<telerik:RadDocking AllowUnsafeMode="True" Name="RadDocking" Close="RadDockingClose" PaneStateChange="RadDocking_PaneStateChange" telerik:AnimationManager.AnimationSelector="{x:Null}" telerik:AnimationManager.IsAnimationEnabled="False">
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer Name="EncounterDetailsSplitContainer">
                <telerik:RadPaneGroup Name="EncounterDetailsPaneGroup">
                    <telerik:RadPaneGroup.Items>
                        <telerik:RadPane Header="Patient Claim"  CanUserClose="False" ContextMenuTemplate="{x:Null}" Name="PatientClaimPane" telerik:RadDocking.SerializationTag="PatientClaimPane" >
                            <telerik:RadPane.Content>
                                <Views:PatientClaimView x:Name="PatientClaimView"/>
                            </telerik:RadPane.Content>
                            <i:Interaction.Behaviors>
                                <behaviors:PaneDragBehavior />
                            </i:Interaction.Behaviors>
                        </telerik:RadPane>
                        <telerik:RadPane Header="Billing Activity" CanUserClose="False" ContextMenuTemplate="{x:Null}" Name="BillingActivityPane" telerik:RadDocking.SerializationTag="BillingActivityPane">
                            <Views:BillingActivityView x:Name="BillingActivityView"/>
                        </telerik:RadPane>
                        <telerik:RadPane Header="Provider Detail" CanUserClose="False" ContextMenuTemplate="{x:Null}" Name="ProviderDetailPane" telerik:RadDocking.SerializationTag="ProviderDetailPane">
                            <Views:ProviderDetailsView x:Name="ProviderDetailView" />
                        </telerik:RadPane>
                        <telerik:RadPane Header="Comments" CanUserClose="False" ContextMenuTemplate="{x:Null}" Name="CommentsPane" telerik:RadDocking.SerializationTag="CommentsPane">
                            <Views:CommentsView x:Name="CommentsView"/>
                        </telerik:RadPane>
                        <telerik:RadDocumentPane Header="Document Images" CanUserClose="False" ContextMenuTemplate="{x:Null}" Name="DocumentImagePane" telerik:RadDocking.SerializationTag="DocumentImagePane">
                            <Views:DocumentImageView x:Name="DocumentImageView" />
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup.Items>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
         
    </telerik:RadDocking>

Thanks.
aborg
Top achievements
Rank 1
 answered on 25 Jul 2012
2 answers
170 views
Hy,

Is there any solution for to handle a Double Click Event on a single Task Item?

Greetings

Alfred
SPARE GmbH
Top achievements
Rank 2
 answered on 25 Jul 2012
2 answers
143 views
Hy,

Is it Possible to Hide the Task Dependency? Or do i have to write my Custom List?

Kind Regards

Alfred
SPARE GmbH
Top achievements
Rank 2
 answered on 25 Jul 2012
9 answers
239 views
I am using RowValidating to catch duplicate records for one of my grids.  I add a validation result to the first cell and set e.IsValid to false.  This works just as I would expect in edit mode.  However, when I add a new row and get this error, it stops the save correctly and moves the cursor to the first cell with the tool tip showing but the row itself does not go red like it does in Edit mode.  Do I need to do something different for a new row to get the error template to show?  Do I need to change the error template?

thanks!
Vanya Pavlova
Telerik team
 answered on 25 Jul 2012
1 answer
129 views
Hello Telerik,

I am facing an issue with telerik gridview. The Last row of the gridview is getting chopped when I try to resize the column and the Font-Family of the Row or the Gridview is set to 'Arial'.

I am using the telerik dll version :- 2012.2.0607.40.
Attached is the screenshot of the issue.
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
                xmlns:telerikGridView="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
        xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
        xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:Telerik_Windows_Controls_Animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
        x:Class="WpfApplication1.MainWindow" x:Name="Window"
        WindowStartupLocation="CenterOwner"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"   
        Title="MainWindow" Width="640" Height="480">
    <Grid x:Name="LayoutRoot">
        <ScrollViewer >
            <telerikGridView:RadGridView x:Name="dataGrid1" IsReadOnly="True" IsFilteringAllowed="True" ShowGroupPanel="False"
                                     ItemsSource="{Binding}" AutoGenerateColumns="False" SelectionMode="Single"
                                     RowIndicatorVisibility="Collapsed" ScrollMode="RealTime" DataLoadMode="Asynchronous"
                                     EnableRowVirtualization="True" EnableColumnVirtualization="True" RowDetailsVisibilityMode="VisibleWhenSelected"
                                     ShowColumnFooters="False" GridLinesVisibility="Horizontal" Height="410" FontFamily="Arial">
                <telerikGridView:RadGridView.Columns>
                    <telerikGridView:GridViewDataColumn Header="CaseSeq" UniqueName="CaseSeq" IsVisible="False" DataMemberBinding="{Binding CaseSeq}" />
                    <telerikGridView:GridViewDataColumn Header="Days Remaining" UniqueName="DaysRemaining" DataMemberBinding="{Binding ProbationDaysRemaining}" />
                    <telerikGridView:GridViewDataColumn Header="Case Name" UniqueName= "CaseName" DataMemberBinding="{Binding CaseName}" TextWrapping="Wrap"/>
                    <telerikGridView:GridViewDataColumn Header="CS Balance" UniqueName="CSBalance" DataMemberBinding="{Binding CSBalance}"/>
                    <telerikGridView:GridViewDataColumn Header="Case Text" UniqueName="CaseText" DataMemberBinding="{Binding CaseText}" />
                    <telerikGridView:GridViewDataColumn Header="Balance" UniqueName="Balance" DataMemberBinding="{Binding Balance}" DataFormatString="{}{0:C}" TextAlignment="Right" HeaderTextAlignment="Right"/>
                </telerikGridView:RadGridView.Columns>
            </telerikGridView:RadGridView>
        </ScrollViewer>
    </Grid>
</Window>


Can you please advice how to resolve this issue?

Thanks,
Neha
Vera
Telerik team
 answered on 25 Jul 2012
4 answers
129 views
Hello,

I have been noticing that the ganttview appears to re-layout itself every time something changes about the child tree.  This seems to be slowing my program down alot (a few seconds to add and subtract a few hundred tasks).  Is there any way to delay or pause this rendering until I have completed manipulating the structure?

Thanks,
Eric
Miroslav Nedyalkov
Telerik team
 answered on 25 Jul 2012
9 answers
147 views
Hello,

I have a RadGridView inside a RadExpander as follows:

<telerik:RadExpander Grid.Row="2" Grid.Column="0" IsExpanded="False" Margin="0,10,0,0">
    <telerik:RadExpander.Header>
        <TextBlock Text="{Binding ElementName=_this, Path=TargetStatistics.TargetCount, StringFormat=Targets ({0})}"/>
    </telerik:RadExpander.Header>
     
        <telerik:RadGridView x:Name="targetList" ItemsSource="{Binding Path=SensorDataBuffer.Targets}" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" IsReadOnly="True" IsFilteringAllowed="False" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible" RowIndicatorVisibility="Collapsed" SelectionMode="Single">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Timestamp" DataMemberBinding="{Binding Path=Timestamp, StringFormat=HH:mm:ss}"/>
                <telerik:GridViewDataColumn Header="Location" DataMemberBinding="{Binding Path=Location, Converter={StaticResource LocationConverter}}"/>
                <telerik:GridViewDataColumn Header="Confidence" DataMemberBinding="{Binding Path=Confidence, StringFormat=p0}"/>
                <telerik:GridViewDataColumn Header="Depth" DataMemberBinding="{Binding Path=Depth, Converter={StaticResource DistanceConverter}}"/>
                <telerik:GridViewDataColumn Header="Detected by" DataMemberBinding="{Binding Path=TargetDetectType.Enum}"/>
                <telerik:GridViewDataColumn Header="User action" DataMemberBinding="{Binding Converter={StaticResource TargetToUserActionConverter}}"/>
                <telerik:GridViewDataColumn Header="Status" DataMemberBinding="{Binding Converter={StaticResource TargetToCurrentStatusConverter}}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
 
</telerik:RadExpander>

The SensorDaraBuffer.Targets that the RadGridView is bound to is a ReadOnlyObservableCollection<Target>.

Elsewhere in the same XAML file, I have bound the SelectedItem property of the RadGridView to a DependencyProperty in a UserControl named SensorDataView:

<local:SensorDataView x:Name="sensorDataView" SelectedTarget="{Binding ElementName=targetList, Path=SelectedItem, Mode=TwoWay}"/>

The SelectedTarget DependencyProperty is defined as follows:

public static DependencyProperty SelectedTargetProperty = DependencyProperty.Register("SelectedTarget", typeof(Target), typeof(SensorDataView), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnSelectedTargetChanged));

My problem is that when the window containing the RadExpander is first displayed (with the RadExpander collapsed) setting the SelectedItem property of the RadGridView does not cause the desired item to be selected. I have tried both setting the SelectedItem property directly on the GridView:
targetList.SelectedItem = target;

and by setting the SelectedTarget DependencyProperty:

sensorDataView.SelectedTarget = target;

I know that the selection of the desired item is not occurring because I have another control that is bound to the SelectedTarget DependencyProperty and that control does not give any visual indication of the selected target being changed. Also, my OnSelectedTargetChanged event handler in SensorDataView does not get called.

Once I expand the RadExpander via the UI and actually see the RadGridView, the setting of the SelectedItem, regardless of which way I do it, works as expected. I can also then collapse the RadExpander and the setting of the SelectedItem continues to work as expected.

I believe this is an issue with RadGridView because I replaced the RadGridView in the XAML with a ListView as follows:

<ListView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="4" x:Name="targetList" ItemsSource="{Binding Path=SensorDataBuffer.Targets}" Margin="10,0,0,0">
    <ListView.View>
        <GridView>
            <GridViewColumn Header="Timestamp" DisplayMemberBinding="{Binding Path=Timestamp, StringFormat=HH:mm}"/>
            <GridViewColumn Header="Location" DisplayMemberBinding="{Binding Path=Location, Converter={StaticResource LocationConverter}}"/>
            <GridViewColumn Header="Confidence" DisplayMemberBinding="{Binding Path=Confidence, StringFormat=p0}"/>
            <GridViewColumn Header="Depth" DisplayMemberBinding="{Binding Path=Depth, Converter={StaticResource DistanceConverter}}"/>
            <GridViewColumn Header="Detection Type" DisplayMemberBinding="{Binding Path=TargetDetectType.Enum}"/>
            <GridViewColumn Header="Status" DisplayMemberBinding="{Binding Converter={StaticResource TargetToCurrentStatusConverter}}"/>
        </GridView>
    </ListView.View>
</ListView>

With the ListView, the setting of the SelectedItem works as expected from the very beginning when the RadExpander is collapsed and continues to work as I expand and collapse the RadExpander.

Does anybody have an idea what may be going here?

Thank you,

-- john
Maya
Telerik team
 answered on 25 Jul 2012
3 answers
180 views
Hello,
  When by tasks are groups under a single task, it is very difficult to tell that they are grouped together.  In fact, the only way you know is that they are indented on the left.  I'm looking to make the difference more obvious.  Ideally this would be colored shading behind each task that indicates the shape of the group.  See attached image for what I am trying to do.  The only way I could think of to do this would be modify the event container styles and and rectangles each group.  I see several problems with this approch:

The event container seems to have little correnspondance the gantttask in that container.  Whenever the structure of the tasks changes, the gantttask would possibly get placed with a different container.
The recursive nature of the tasks means the rectangles would have to be generated in code-behind, because there could be arbitraily many of them.

I think a more practical solution would be just drawing a single rectangle around each group of tasks, and set its fill.  This still has the issue needing to be recalculated every time the chart has changed.

I was wondering if you guys had any suggestions as to the best way to go about doing this?

Thanks,
Eric. 
Miroslav Nedyalkov
Telerik team
 answered on 25 Jul 2012
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?