Telerik Forums
UI for WPF Forum
1 answer
109 views

Hello

I need to replace the insert input key in the grid to execute my command.

How can I do this?

Best regards

Ehud

  

Maya
Telerik team
 answered on 12 Sep 2011
1 answer
107 views
I have version 2011.1.419.35 and it seems sorting and filtering does not work when my ItemsSource is a List<dynamic> Is this expected? Is there a workaround or a plan to support this?

Thanks,
LauraH
Vlad
Telerik team
 answered on 12 Sep 2011
0 answers
117 views
hi all
I have multiple pane in a rad group. in one of then i have enabled drag and drop functionality. i have also set
 RadDragAndDropManager.EnableNativeDrag = true;
now in another pane i have a numericupdown. if i select the text in it and try to drag it, it is drag able and it gives the following error.

   at Telerik.Windows.Controls.DragDrop.DesktopDragDropProvider.OnElementDragLeave(Object sender, DragEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Core\Controls\DragDrop\DragProviders\DesktopDragDropProvider.cs:line 704
   at System.Windows.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects)

Thanks
Deepak
deepak
Top achievements
Rank 1
 asked on 12 Sep 2011
0 answers
137 views
Hi, 

I have a footer with two aggregation results, and i want the number s to be right aligned.
like this:  19.65489564
6548 .

I have tried to set TextAlignment="Right" and  FooterTextAlignment="Right" but the result is left aligned.
like this:  19.65489564 6548

Any suggestions? 

Thanks in advance.

<telerik:RadGridView
    x:Name="RadGrid"
    ItemsSource="{Binding Contents}"
    AutoGenerateColumns="False"
    telerik:StyleManager.Theme="Office_Blue"
    RowIndicatorVisibility="Collapsed"
    Width="200"
    Height="300"
    ShowColumnFooters="true"
    ShowGroupPanel="False"
    >
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Number1}"
            Width=" 1*"
            TextAlignment="Right"
            FooterTextAlignment="Right"
            >
            <telerik:GridViewColumn.Header>
                <TextBlock Text="Numbers"/>
            </telerik:GridViewColumn.Header>
            
            <telerik:GridViewDataColumn.AggregateFunctions>
                <telerik:AverageFunction  SourceField="Number1"  />          
                <telerik:SumFunction  SourceField="Number1" />
            </telerik:GridViewDataColumn.AggregateFunctions>              
             
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
Mia
Top achievements
Rank 1
 asked on 12 Sep 2011
1 answer
154 views

Hello

I added sort description in code and the grid loaded sorted.

The problem is when the user added new item or deleted item,

The sort descriptor not refreshes.

How can I solve this?

Best regards

Ehud

Avi Avni
Top achievements
Rank 1
 answered on 11 Sep 2011
1 answer
366 views
I have a radgridview setup liek the following:

<telerik:RadGridView AutoGenerateColumns="False" Margin="10" x:Name="GridViewDealers" Width="Auto" IsReadOnly="True" ShowGroupPanel="False" telerik:StyleManager.Theme="Summer" KeyDown="GridViewDealers_KeyDown" MouseDoubleClick="GridViewDealers_MouseDoubleClick">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn UniqueName="CompanyName" Header="Dealership Name" DataMemberBinding="{Binding CompanyName}" ></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="AddrLine1" Header="Address Line 1" DataMemberBinding="{Binding AddrLine1}" ></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="City" Header="City" DataMemberBinding="{Binding City}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="StateCode" Header="State" DataMemberBinding="{Binding StateCode}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="PostalCode" Header="Postal Code" DataMemberBinding="{Binding PostalCode}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="PhoneNumber" Header="Phone Number" DataMemberBinding="{Binding PhoneNumber}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Email" Header="Email" DataMemberBinding="{Binding email}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="CurrentCustomer" Header="Is Current Customer" DataMemberBinding="{Binding CurrentCustomer}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Latitude" Header="Latitude" DataMemberBinding="{Binding Latitude}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Longitude" Header="Longitude" DataMemberBinding="{Binding Longitude}"></telerik:GridViewDataColumn>
        <telerik:GridViewColumn>
            <telerik:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <telerik:RadButton Content="Print Mailing"
                       Command="Print"
                       CommandParameter="{Binding}" />
                </DataTemplate>
            </telerik:GridViewColumn.CellTemplate>
        </telerik:GridViewColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

but I don't know how to attach a button click event that will be unique i.e. how to find the how to find the data Item associated with the row in which the button is clicked?  Do you have an example.  I'm fairly new to WPF.

Thanks,
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 10 Sep 2011
1 answer
157 views
I have a RadGridView in my application that is crashing the application on a select few tablet pc running Windows XP tablet editiion. Because our (state) department is going the tablet way, I really need to get this fixed. Not just disable tablet input services on the pc.
I'm thinking the problem is because the grid that is causing the problem is heavily customized with Data Templates.

The crash happens when they attempt to scroll horizontally on an editable grid. It's been reported that if InsertRows and DeleteRows is disabled, then the grid behaves normally. So far this error has only been reported by users running on a tablet pc.

Also, another user reported that when he tried to activate the TabItem where this grid lives, the application crashed only when there were items bound to the grid. If the bound collection had no items, it didn't crash. His problem was resolved by disabling Tablet Input Services on his Windows 7 tablet pc.

Could someone look at my code and see if I've done something I shouldn't.
<telerik:RadGridView AutoGenerateColumns="False" ShowGroupPanel="False" Margin="15" x:Name="ActionsGridView"
    ItemsSource="{Binding ActionsTaken}" ColumnWidth="Auto"
     SelectionMode="Extended" CanUserDeleteRows="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 CanUserInsertRows="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 ShowInsertRow="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 SelectedItem="{Binding DataContext.SelectedAction, ElementName=ResolutionsControl, Mode=TwoWay}"
                                 IsSynchronizedWithCurrentItem="True"
                                 ValidatesOnDataErrors="InViewMode"
                                 AddingNewDataItem="RadGridView_AddingNewDataItem" EnableColumnVirtualization="False" EnableRowVirtualization="False">
           <telerik:RadGridView.FilterDescriptors>
               <radData:FilterDescriptor Member="IsDeleted" Value="false" Operator="IsEqualTo" />
           </telerik:RadGridView.FilterDescriptors>
           <i:Interaction.Triggers>
               <i:EventTrigger EventName="Deleting">
                   <cmd:EventToCommand PassEventArgsToCommand="True" Command="{Binding DataContext.DeletingAction, ElementName=ResolutionsControl}" />
               </i:EventTrigger>
           </i:Interaction.Triggers>
           <telerik:RadGridView.Columns>
               <telerik:GridViewColumn CellTemplate="{StaticResource DeleteCellTemplate}" />
               <telerik:GridViewComboBoxColumn Header="Action" UniqueName="Action" DataMemberBinding="{Binding ActionID, Mode=TwoWay, ValidatesOnDataErrors=True}"
SelectedValueMemberPath="ActionID" DisplayMemberPath="Name" ItemsSource="{Binding DataContext.Actions, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}"
                                               IsComboBoxEditable="True">
               </telerik:GridViewComboBoxColumn>
               <telerik:GridViewDataColumn Header="Date of Action" UniqueName="ActionDate" DataMemberBinding="{Binding DateActionTaken, StringFormat={}{0:d}, ValidatesOnDataErrors=True,UpdateSourceTrigger=PropertyChanged}">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Text="{Binding DateActionTaken, StringFormat={}{0:d}, ValidatesOnDataErrors=True}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
                   <telerik:GridViewDataColumn.CellEditTemplate>
                       <DataTemplate>
                           <telerik:RadDatePicker SelectedValue="{Binding DateActionTaken, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                             SelectableDateEnd="{Binding Source={x:Static System:DateTime.Now}}"
                             SelectableDateStart="{Binding DataContext.Complaint.DateReceived, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellEditTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn Header="Action By" DataMemberBinding="{Binding ActionByUserID}" MinWidth="120">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Text="{Binding ActionBy.FullName}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
                   <telerik:GridViewDataColumn.CellEditTemplate>
                       <DataTemplate>
                           <StackPanel VerticalAlignment="Stretch" Orientation="Horizontal">
                               <TextBlock Margin="3,0" MinWidth="104"
                                                  Text="{Binding ActionBy.FullName, ValidatesOnDataErrors=True}" />
                               <telerik:RadButton Command="{Binding DataContext.ShowUsersPopup, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}">
                                   <Image Source="/Complaints.Common;component/Images/magnifier.png" />
                               </telerik:RadButton>
                           </StackPanel>
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellEditTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Comments}" Header="Comments" UniqueName="ActionComments" TextWrapping="Wrap" Width="300"
                                                CellEditTemplate="{StaticResource CommentEditorTemplate}">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Width="300" Text="{Binding Comments}" TextWrapping="Wrap" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding UserCreated}" Header="Recorded by" IsReadOnly="True" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding DateCreated}" Header="Date/Time Recorded" IsReadOnly="True" />
           </telerik:RadGridView.Columns>
       </telerik:RadGridView>
Rayne
Top achievements
Rank 1
 answered on 09 Sep 2011
2 answers
166 views
Hi,

Can telerik datagrid has a feature of zoom in and zoom out?
so grid data can be viewed properly.
Guru
Top achievements
Rank 2
 answered on 09 Sep 2011
11 answers
319 views
Hello,

I have a WPF application in which I load a multipage tiff file and use the TileView Control to display the BitmapFrames in tiles. The end user needs to change the order of the pages(tiles) and the save the tiff. The dragging of the tiles works ok but I also need to change the order of the objects in the ObservableCollection<PageViewModel> which is bound to the ItemsSource of the TileView. How can I achieve that ?

Thanks,

Alex.
Peter
Top achievements
Rank 1
 answered on 09 Sep 2011
5 answers
2.4K+ views

Hello,
how i can multi bind a column? I tried the to set multibinding to DataMemeberBinding but i gives me a compilation error

<tel:GridViewColumn.DataMemberBinding> 
     <MultiBinding Converter="{StaticResource PriceByCurrency}" Mode="OneWay">  
            <Binding Path="Price"/>  
            <Binding Path="DefaultCurrency"/>  
      </MultiBinding> 
</tel:GridViewColumn.DataMemberBinding> 

Thanks
Vanya Pavlova
Telerik team
 answered on 09 Sep 2011
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?