Telerik Forums
UI for WPF Forum
0 answers
61 views
Hello,
Their if any event in raddatafilter which get fired on each time user filter the records.

I trying to implement a filter in which work like this:
If user select containg string "abc" then i want to show all record those contains "abc" as well as "cde". But i don't want to show user both option "abc" and "cde" because in my case meaning of "abc" and "cde" is same.

There is any other way to do this?

Thanks in advance.
Zaheer
Top achievements
Rank 1
 asked on 12 Sep 2011
1 answer
284 views

Hi All,

I have a datagrid with one of datacolumn contains a combobox.

DataGrid contains a RowDetails template attached to it.

When i add a row into datagrid on click of button or delete a row from datagrid, selection change event of combobox gets called.

RowDetails template also contains a combobox with a selection change event.

When i am trying to click somewhere inside the rowdetailstemplate or trying to use a template scroll bar, combobox selection change event is getting fired.

Please provide the solution how we can avoid selection change event of combobox in above cases.

Please find below piece of code:

 

 

<telerik:RadGridView ItemsSource="{Binding Path=Customers}"

 

 

IsReadOnly="{Binding IsChecked, Mode=TwoWay, ElementName=IsReadOnlyCheckBox}" RowDetailsVisibilityMode="{Binding RowDetailsTemplateVisibilityMode, Mode=TwoWay}"

 

 

SelectionMode="Multiple" AutoGenerateColumns="False" VerticalAlignment="Stretch"

 

 

ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible" MinHeight="100" MaxHeight="350">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewToggleRowDetailsColumn Width="30"/>

 

 

 

<telerik:GridViewSelectColumn Width="30"/>

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding SlNo}" Header="S.no" IsReadOnly="True" IsEnabled="False" Width="20" />

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Product}" Header="Product" IsReadOnly="True" IsEnabled="False" Width="250"/>

 

 

 

<telerik:GridViewDataColumn Header="Customer" Width="Auto">

 

 

 

<telerik:GridViewDataColumn.CellTemplate>

 

 

 

<DataTemplate>

 

 

 

<ComboBox ItemsSource="{Binding Path=Customer}" HorizontalAlignment="Left" DisplayMemberPath="RunDesc" SelectedItem="{Binding RunsSelected}" IsEnabled="{Binding IsEnabledRun}" Style="{StaticResource SmallComboBox}">

 

 

 

<i:Interaction.Triggers>

 

 

 

<i:EventTrigger EventName="SelectionChanged">

 

 

 

<cmd:EventToCommand Command="{Binding Path=LoadCustomersCommand}" PassEventArgsToCommand="False" CommandParameter="{Binding Path=DataContext,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}}"/>

 

 

 

</i:EventTrigger>

 

 

 

</i:Interaction.Triggers>

 

 

 

</ComboBox>

 

 

 

</DataTemplate>

 

 

 

</telerik:GridViewDataColumn.CellTemplate>

 

 

 

</telerik:GridViewDataColumn>

 

 

 

</telerik:RadGridView.Columns>

 

 

 

<telerik:RadGridView.RowDetailsTemplate >

 

 

 

<DataTemplate>

 

 

 

<Grid Background="{StaticResource MainBackgroundColor}" >

 

 

 

<ComboBox ItemsSource="{Binding Path=Customer}" HorizontalAlignment="Left" DisplayMemberPath="RunDesc" SelectedItem="{Binding RunsSelected}" IsEnabled="{Binding IsEnabledRun}" Style="{StaticResource SmallComboBox}">

 

 

 

<i:Interaction.Triggers>

 

 

 

<i:EventTrigger EventName="SelectionChanged">

 

 

 

<cmd:EventToCommand Command="{Binding Path=LoadCustomersCommand}" PassEventArgsToCommand="False" CommandParameter="{Binding Path=DataContext,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}}"/>

 

 

 

</i:EventTrigger>

 

 

 

</i:Interaction.Triggers>

 

 

 

</ComboBox>

 

 

 

</Grid>

 

 

 

</DataTemplate>

 

 

 

</telerik:RadGridView.RowDetailsTemplate>

 

 

 

</telerik:RadGridView>

Maya
Telerik team
 answered on 12 Sep 2011
1 answer
102 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
104 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
109 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
135 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
108 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
352 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
139 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
155 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
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?