Telerik Forums
UI for WPF Forum
0 answers
172 views

Hello.

I'm using double click cell event in grid for opening new form.

But when I try auto resize width column (double click on border between column header) or changing sorting mode (double click on column header) this event are executing too.

How I can use this event only for clicking current data row?

Edit:

Excuse me. Posted for WinForms forum...

Alex
Top achievements
Rank 1
 asked on 21 May 2012
1 answer
116 views
Filtering on the lower  level nodes  works  only when you type something and Click filter, but it doesn't show the distinct values for these nodes. It shows only for the Top Level node. 

Is this a BUG or is there anything we can do to make it appear for all the nodes?

This is really important feature that we were hoping to show to the users. 

Any help on this is greatly appreciated. 
 
Vlad
Telerik team
 answered on 21 May 2012
0 answers
91 views
hi!
i have a problem with refreshing data after insert new item to entity framework
in my project i used Entity framework with local database(sdf) + Observabllecollection and INotifyPropertchanged
i checked , and data that inserted is all fine , but i can't get the items in real time after i made the insert.
i tried everyhing without successfull to solve this problem

NOTE: this is a very small project for test,i attached the files hopefully someone will take a look on my code

Regards
Orel

Files


orel gabay
Top achievements
Rank 1
 asked on 20 May 2012
0 answers
127 views
Below shows month year as I want in the column but when you click the drop down date picker it shows days also. I need it show the month year picker control. How can I do this ? thanks
<telerik:GridViewDataColumn DataMemberBinding="{Binding CheckDate}"  Header="CheckDate" DataFormatString="{} {0:MMM-yyyy}" />

Geena
Top achievements
Rank 1
 asked on 20 May 2012
3 answers
635 views
Hi,

how do i set an indiv tooltip to a Listboxitem?

Thanks
Regards
Rene
Georgi
Telerik team
 answered on 19 May 2012
3 answers
1.0K+ views
I am using telerik radgridview to bind to a collection of my model objects. Also, have added a validation rule class that triggers the validation.


Now i want to show a validation error around the radgridview row in case the error occurs. An custom error template is defined in my resource file.  Below is the xaml for the same.


    <telerik:RadGridView Grid.Column="0" Grid.Row="2"                                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
                                 ItemsSource="{Binding Path=CollectionOfObjects}" SelectedItem="{Binding Path=SelectedObject, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" 
                                 GdEvent:DoubleClickGridViewCommandBehaviour.OnDoubleClick="{Binding Path=GridRowDoubleClickCommand}" 
                                 RowIndicatorVisibility="Collapsed" ColumnWidth="*" EditTriggers="None" IsFilteringAllowed="False" 
                                 AutoGenerateColumns="False" AllowDrop="False" 
                                 CanUserFreezeColumns="False" CanUserReorderColumns="False" 
                                 CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" 
                                 SelectionMode="Single" SelectionUnit="FullRow">
    <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Width="Auto" Header="Header1" DataMemberBinding="{Binding Header1}" TextAlignment="Left"/>
                    <telerik:GridViewDataColumn Width="Auto" Header="Header2" DataMemberBinding="{Binding Header2}" TextAlignment="Left"/>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.BindingGroup>
      <BindingGroup NotifyOnValidationError="True">
       <BindingGroup.ValidationRules>
         <util2:ModelValidationRule ValidationStep="ConvertedProposedValue" ValidatesOnTargetUpdated="True" />
       </BindingGroup.ValidationRules>
      </BindingGroup>


But when i run the app, an the validation error fails. it is not showing any error against that row.


Please help
     </telerik:RadGridView.BindingGroup>
    <telerik:RadGridView.Resources>
     <Style TargetType="{x:Type telerik:GridViewRow}">
       <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}"/>
       <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}"/>
     </Style>
    </telerik:RadGridView.Resources>
Nedyalko Nikolov
Telerik team
 answered on 19 May 2012
5 answers
265 views
Hi,

I'm interested in recreating an existing UI using the RadDock with a splitter and RadPane objects.  I have nearly everything I need through existing properties but I could use some advice on how to achieve a particular effect.  (see Desired.png - attached)

In a given RadPane, I set the Contents during the ElementLoading event. But, the element which becomes the RadPane's child is responsible in our app for creating the particular tool buttons we want to show within the Title/Header.

For the Recent Files pane I show, the folder and two filter buttons are created by the same UserControl responsible for the list. 

I'd like to create something like this for my TitleTemplate -- this does not work -- clearly the binding needs work.

<DataTemplate x:Key="TitleTemplate">
     <Grid>
         <Grid.ColumnDefinitions>
             <ColumnDefinition Width="*" />
             <ColumnDefinition Width="Auto" />
             <ColumnDefinition />
         </Grid.ColumnDefinitions>
         <ContentPresenter Content="{Binding}" 
                       Name="titleTemplate"
                       Margin="0,0,0,0"/>
         <ContentPresenter Content="{Binding Path=SelectedPane.Content.ToolStack, 
             RelativeSource={RelativeSource AncestorType=FrameworkElement}}" 
                           Name="toolStackHolder" 
                           Margin="0" />
     </Grid>
 </DataTemplate>

<telerik:RadPaneGroup>
    <telerik:RadPane 
        telerik:RadDocking.SerializationTag="RecentFilesPane"
        ContextMenuTemplate="{x:Null}"
        TitleTemplate="{StaticResource ResourceKey=TitleTemplate}" 
        Header="Recent Files"
        CanUserPin="True">
        <!-- CONTENT FILLED DYNAMICALLY -->
    </telerik:RadPane>
</telerik:RadPaneGroup>


The first ContentPresenter should be for the Title and I'll fixup the formatting, font, etc. later to match my requirements.

The second ContentPresenter is where I'd like to have the object which is within the RadPane to supply a FrameworkElement such as a StackPanel or Toolbar or ToolbarTray etc.. based onthe particular pane.

Can anyone suggest a way for me to bind to a property on that object within the TitleTemplate?  Here, I invented one called "ToolStack" which my usercontrol list object implements -- but it's not bound to of course...

John

Miroslav Nedyalkov
Telerik team
 answered on 19 May 2012
1 answer
260 views
Hi..
I have RadButton in a DataTemplate in a ListView. I have a command bound to the button that works fine.
But when I click my button, without selecting the row - i need to get the current row - how can I get the SelectedItem of the current ListView Row when the RadButton is clicked.   For example I want to name the Button REMOVE and remove the current row - without having to click 'behind' the RadButton to select the row to be deleted. first.
thanks!!!!!!!!!!!!!!!!!


<

 

 

ListView x:Name="lstRangeColors" Width="225" MaxHeight="275" ScrollViewer.VerticalScrollBarVisibility="Visible" Margin="0,0,0,0" ItemsSource="{Binding Path=Filters.RangeColors}" SelectedItem="{Binding Path=RangeColor}">

 

 

<ListView.ItemTemplate>

 

 

<DataTemplate>

 

 

<ContentPresenter Margin="5,5,5,5" Content="{Binding}">

 

 

<ContentPresenter.ContentTemplate>

 

 

<DataTemplate>

 

 

<Grid x:Name="gridContent" Height="35" VerticalAlignment="Stretch">

 

 

<Grid.ColumnDefinitions>

 

 

<ColumnDefinition Width="20*"/>

 

 

<ColumnDefinition Width="60*"/>

 

 

<ColumnDefinition Width="40*"/>

 

 

</Grid.ColumnDefinitions>

 

 

<Grid.RowDefinitions>

 

 

<RowDefinition Height="30" />

 

 

</Grid.RowDefinitions>

 

 

<CheckBox Grid.Row="0" Grid.Column="0" Width="40" IsChecked="{Binding RangeValue.IsSelected, Mode=TwoWay}" Margin="5,5,0,0"/>

 

 

<TextBox Grid.Row="0" Grid.Column="1" BorderBrush="Navy" BorderThickness="1" Width="40" Text="{Binding RangeValue, Mode=TwoWay}" Margin="15,0,0,0" FontSize="14" />

 

 

<<telerik:RadButton Grid.Row="0" Grid.Column="2" Height="30" Background="{Binding BlockColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}, Path=DataContext.SelectColorCommand}" HorizontalAlignment="Left" Margin="25,0,0,0" Name="btnColor" Width="40" />

 

 

</Grid>

 

 

</DataTemplate>

 

 

</ContentPresenter.ContentTemplate>

 

 

</ContentPresenter>

 

 

</DataTemplate>

 

 

</ListView.ItemTemplate>

 

 

</ListView>


Zarko
Telerik team
 answered on 18 May 2012
3 answers
155 views
Hello,

I have a user control that contains a text box and a search button. This user control has been added to a RadMenu as follows:

 <telerik:RadMenu HorizontalAlignment="Stretch" DataContext="{Binding SimpleSearchViewModel}">
            <telerik:RadMenu.ItemsPanel>
                <ItemsPanelTemplate>
                    <DockPanel HorizontalAlignment="Stretch" />
                </ItemsPanelTemplate>
            </telerik:RadMenu.ItemsPanel>
            <telerik:RadMenu.Items>
                <telerik:RadMenuItem Header="Menu1" /> 
                <telerik:RadMenuItem Header="Menu2" />  
                <telerik:RadMenuItem HorizontalAlignment="Right">
                    <telerik:RadMenuItem.Header>
                        <searchctrls:SimpleSearchView />
                    </telerik:RadMenuItem.Header>
                </telerik:RadMenuItem>

            </telerik:RadMenu.Items>
</telerik:RadMenu>

This seems to work fine. The problem I am experiencing is that when the user control (SimpleSearchView) is focused, say, with the cursor in the textbox, it takes two (2) clicks to close the application using the "X" at the corner of the window. This behavior does not seem to appear with any other UI item in my application, i.e. I can focus the textbox in the SimpleSearchView control and then click another menu item without a problem.

Could you help me resolve this issue?

Let me know if a separate sample project would be helpful.

Many thanks
Simon
Top achievements
Rank 1
 answered on 18 May 2012
4 answers
129 views
Hi,

in my application, I have 3 possible contexts: Exports, Reports and Sessions. In my application I have only one RadGridView and the RadGridView layout change regarding the current active context. Regarding the context, the grid have differents converters for columns who contains enumeration values.

Before changing the grid layout, I call the following methods:

    - GV.GroupDescriptors.Clear()
    - GV.SortDescriptors.Clear()
    - GV.FilterDescriptors.Clear()

I don`t know why but when I switch from one context to another, after I change the layout of my grid, if I go on a column which contain a converter for my enumeration, I click on the filter dialog button, when the filter dialog appear, in the top part of the filter dialog, I have all existing values in my columns that I can check or uncheck but when I click in the combobox to apply a specific filter, the values in the dropdown it's the value corresponding to my previous context.

Thank's
Oliver
Top achievements
Rank 1
 answered on 18 May 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?