Telerik Forums
UI for WPF Forum
5 answers
309 views
Hello!

I would like to style a GridViewCheckBoxColumn triggered if the CheckBox is readonly or not. The differense between true and false is to small.

<telerik:GridViewCheckBoxColumn Header="Klart"
                   DataMemberBinding="{Binding ChKlar, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                   IsReadOnlyBinding="{Binding Uppdaterbar, Mode=OneWay}"
                   EditTriggers="CellClick"
                   AutoSelectOnEdit="True" />

Any Ideas?

Best regards / Anna
Vanya Pavlova
Telerik team
 answered on 25 Nov 2010
1 answer
103 views
Hi,
 Can you let me know how can we change the default style for radgridview in wpf.Like how can i apply custom alternate row color style and selected row style.

Thanks
Vanya Pavlova
Telerik team
 answered on 25 Nov 2010
3 answers
118 views
Hi!

I am new to WPF and I am trying to add a pinnable tooltip to my project.  Unfortunately I don't know how to do this.  If you could provide guidance or point me to some examples that would be great.  I am using visual studio 2010.

Thanks,

Sonia
Ivan Ivanov
Telerik team
 answered on 25 Nov 2010
1 answer
72 views

Hi
I have a problem.just like below, I want to get the value of the TextBox named TitleEx. But I don't known how to,Can you help me? Thanks very much;

<telerik:RadGridView.RowDetailsTemplate>
     <DataTemplate>
         <Grid>
             <TextBox Height="23" HorizontalAlignment="Right" Margin="0,42,382,0" Name="TitleEx" VerticalAlignment="Top" Width="181" Text="{Binding Title}" />
         </Grid>
     </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
Rossen Hristov
Telerik team
 answered on 25 Nov 2010
5 answers
173 views
I have a RadComboBox in a popup and when I click the drop down button, it closes the popup. This does not happen with the standard ComboBox. Is there a way to prevent this?
Konstantina
Telerik team
 answered on 25 Nov 2010
2 answers
110 views
I need to create a scatter chart where I have to fade off points over time. For that I need to change the point color of a series dynamically in the code. How could I do that ?
Velin
Telerik team
 answered on 25 Nov 2010
1 answer
180 views
Hi,
      I am using a RadTabControl and the RadTabItems are created using a datatemplate. I am having an RadPanelbaritem as accordion inside the tabcontrol. I am using MVVM model and there is no code behind. when the tab selection changes, the search will be based on the tab id and if i click on the panelbaritem, the search will be done within that panelbaritem. If i click again on the same tab(Selection Changed will not be fired here) the search should be done for that tab id. Since there is no click event for the tab control and the selection changed event will not fire within the same tab, i used MouseLeftButtonUp event to capture the click event. but during clicking of the radpanelbaritem, it even triggers the mouseleftbuttonup event instead of Accordion Selection Changed event. Which event should i capture for refreshing the tab?

Thanks in advance
R.Saranya.
Petar Mladenov
Telerik team
 answered on 25 Nov 2010
1 answer
87 views
I saw a post from the May timeframe indicating that switching to the page of a specific row was not possible. Has there been any progress on this issue?
http://www.telerik.com/community/forums/wpf/gridview/paging-focus-sepecific-row.aspx#1197073

What we're trying to achieve is a 'quick navigation' style grid, where the user has a text box at the top that they can use to search across all columns and then snap to the selected item on a specific page.

Thanks in advance.
Veselin Vasilev
Telerik team
 answered on 25 Nov 2010
2 answers
196 views
Hello,

I want to implement a ComboBox in two of my FilterDescriptors. I do exactly the same as in the Demos, and it does not work at all. My ComboBox return value is String, I checked it and it returns the value I want. But the DataFilter does not filter the DataGrid. It work with the regular text input method, but not with the ComboBox. 

Here is what I've done:
<DataTemplate x:Key="RegionFilterEditorTemplate">
            <telerik:RadComboBox SelectedValue="{Binding Path=NAME, Mode=TwoWay, FallbackValue=null}" DisplayMemberPath="NAME" SelectedValuePath="NAME"
                                     MinWidth="100" SelectionChanged="RegionSelected"/>
        </DataTemplate>
        <DataTemplate x:Key="MUNFilterEditorTemplate">
            <telerik:RadComboBox SelectedValue="{Binding Path=NAME, Mode=TwoWay, FallbackValue=null}" DisplayMemberPath="NAME" SelectedValuePath="NAME"
                                     MinWidth="100" SelectionChanged="MunicipalitySelected"/>
        </DataTemplate>
        <local:MyEditorTemplateSelector x:Key="MyEditorTemplateSelector">
            <local:MyEditorTemplateSelector.EditorTemplateRules>
                <local:EditorTemplateRule PropertyName="N_MUN.N_REGION.NAME"
                                              DataTemplate="{StaticResource RegionFilterEditorTemplate}"/>
                <local:EditorTemplateRule PropertyName="N_MUN.NAME"
                                              DataTemplate="{StaticResource MUNFilterEditorTemplate}"/>
            </local:MyEditorTemplateSelector.EditorTemplateRules>
        </local:MyEditorTemplateSelector>
<telerik:RadDataFilter Name="CitiesFilter" Source="{Binding}" Loaded="CitiesFilter_Loaded" AutoGenerateItemPropertyDefinitions="False" CanUserCreateCompositeFilters="False" EditorCreated="OnRadDataFilterEditorCreated" EditorTemplateSelector="{StaticResource MyEditorTemplateSelector}" >
                    <telerik:RadDataFilter.ItemPropertyDefinitions>
                        <datafilter:ItemPropertyDefinition PropertyName="N_MUN.N_REGION.NAME" PropertyType="{Binding String, Source={StaticResource Types}}" DisplayName="Област" />
                        <datafilter:ItemPropertyDefinition PropertyName="N_MUN.NAME" PropertyType="{Binding String, Source={StaticResource Types}}" DisplayName="Община" />
                        <datafilter:ItemPropertyDefinition PropertyName="NAME" PropertyType="{Binding String, Source={StaticResource Types}}" DisplayName="Населено място" />
                    </telerik:RadDataFilter.ItemPropertyDefinitions>
                </telerik:RadDataFilter>
<telerik:RadGridView x:Name="CitiesGrid" ItemsSource="{Binding FilteredSource, ElementName=CitiesFilter}"
                                     AutoGenerateColumns="False"
                                     IsReadOnly="True"
                                     ScrollMode="RealTime"
                                     CanUserReorderColumns="False"
                                     GridLinesVisibility="Both"
                                     IsFilteringAllowed="False"
                                     ShowGroupPanel="False"
                                     ColumnWidth="Auto">
                                      
                    <telerik:RadGridView.Columns>
 
 <telerik:GridViewDataColumn Header="{x:Static res:CitiesDialogFormRes.REGION}"
                                                    DataMemberBinding="{Binding Path=N_MUN.N_REGION.NAME}"
                                                    Width="Auto"/>
                        <telerik:GridViewDataColumn Header="{x:Static res:CitiesDialogFormRes.MUN}"
                                                    DataMemberBinding="{Binding Path=N_MUN.NAME}"
                                                    Width="Auto" />
                        <telerik:GridViewDataColumn Header="{x:Static res:CitiesDialogFormRes.CITY}"
                                                    DataMemberBinding="{Binding Path=NAME}"
                                                    Width="Auto" />
 
 
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

And the .cs file:
                  
private void OnRadDataFilterEditorCreated(object sender,Telerik.Windows.Controls.Data.DataFilter.EditorCreatedEventArgs e)
        {
 
            switch (e.ItemPropertyDefinition.PropertyName)
            {
                case "N_MUN.N_REGION.NAME":
                    regionComboBox = (RadComboBox)e.Editor;
                    regionComboBox.ItemsSource = db.N_REGION.OrderBy(N_REGION => N_REGION.NAME);
                    break;
                case "N_MUN.NAME":
                    munComboBox = (RadComboBox)e.Editor;
                    break;
                    
            }
        }
 
private void CitiesFilter_Loaded(object sender, RoutedEventArgs e)
        {
            FilterDescriptor regionsFilterDesc = new FilterDescriptor("N_MUN.N_REGION.NAME", FilterOperator.IsEqualTo, ""true);
            FilterDescriptor munsFilterDesc = new FilterDescriptor("N_MUN.NAME", FilterOperator.IsEqualTo, ""true);
            this.CitiesFilter.FilterDescriptors.Add(regionsFilterDesc);
            this.CitiesFilter.FilterDescriptors.Add(munsFilterDesc);
        }
 
private void RegionSelected(object sender, SelectionChangedEventArgs e)
        {
            regionComboBox = (RadComboBox)e.OriginalSource;
            var selectedRegion = regionComboBox.SelectedValue;
            munComboBox.ItemsSource = db.N_MUN.Where(N_MUN => N_MUN.N_REGION.NAME.Equals(selectedRegion)).OrderBy(N_MUN => N_MUN.NAME);
        }
Hristiliyan
Top achievements
Rank 1
 answered on 25 Nov 2010
2 answers
65 views
Hi All,

I have two line series on my chart area. I  want to show custom tooltip on ItemTooltipOpening event. I have one problem while showing tooltip, how do I recognize that on which lineseries datapoint mouse hover?
I want to show different tootip with single ItemTooltipOpening  event ?
how do I capture particular line series?

Thanks,
shashank
Top achievements
Rank 1
 answered on 25 Nov 2010
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
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
SplashScreen
Rating
Accessibility
Callout
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?