Telerik Forums
UI for WPF Forum
1 answer
135 views
Hi,

I'm trying to have custom TabItems in a RadGroupPane in DocumentsHost. As I'm understand RadGroupPane items are rendered using TabItemPresenter (looked at RadGroupPane template) and are RadTabItem controls. Problem is that I can not get them to style.
A litle sample or idea how to set custom template for TabItem's in a RadGroupPane would be really good, as setting it in RadGroupPane resources as style with TargetType for RadTabItem seems don't work.

Thanks,
Saulius
Pana
Telerik team
 answered on 09 Jun 2010
8 answers
991 views
Hello,

I have a RadGridView with a custom row style targeting GridViewRow (set using RowStyle property and defined in resource dictionary).
In that style I have a control template targeting GridViewRow.
In that template I have a couple of GridViewCells definitions.
Here is one of them, for example:

<telerik:GridViewCell x:Name="theCell"  
                                        BorderThickness="0" 
                                        Foreground="{StaticResource ColorMessageText}" 
                                        Value="{Binding Owner}" 
                                        Margin="0,0,0,2" 
                                        Content="Owner" 
                                        Background="{x:Null}" 
                                        BorderBrush="{x:Null}" 
                                        FontSize="11"                                    
                                        HorizontalAlignment="Left" 
                                        HorizontalContentAlignment="Left" 
                                        Width="90" 
                                        Visibility="{Binding Column.IsVisible, Converter={StaticResource VisibilityOfBool}, ElementName=theCell}"/> 


Now, what I am trying to accomplish is to bind the Visibility property to the column IsVisible property (using the required converter).
The problem is that both Column and DataColumn properties of the GridViewCell are unknown at run time (saw it using Snoop).

How do I make my GridViewCell hide when the matching column is hidden?

Thanks,
Gili
Gili Korman Golander
Top achievements
Rank 1
 answered on 09 Jun 2010
3 answers
391 views
Hello Telerik. I've encountered a problem while styling the GridView component. As you can see from the attached image, there are some black borders around the header cells and around the row content as well, that i want to remove. Hope you can help me with this. Thank you  
Kalin Milanov
Telerik team
 answered on 09 Jun 2010
1 answer
90 views
Hello,

I try customize control in Blend 4. But it doen't allow edit styles(Only suggests to create the empty)
Can u share dictionary with default RadGridView styles?
Vlad
Telerik team
 answered on 08 Jun 2010
2 answers
288 views
Hello,

I've already created a topic in this forum, and I need your help once again.
I work with the same configuration (it's the same application) : Telerik + MS Prism
Link : Close tabs - RadTabControl + Prism

I have a problem with the Binding and RadTabControl.
I have a button to add a RadTabItem in my RadTabControl, and the content of the RadTabItem work with a ContentTemplate.
The content is a form with some TextBox and each textbox has a Binding with an Object in my Model.

CODE :
So, here the XAML code of my RadTabControl :
<telerik:RadTabControl Name="RadTabControlAddress" SelectionChanged="RadTabControlAddress_SelectionChanged"
                    <telerik:RadTabControl.ItemContainerStyle> 
                        <Style TargetType="{x:Type telerik:RadTabItem}"
                            <Setter Property="ContentTemplate"
                                <Setter.Value> 
                                    <DataTemplate> 
                                        <Grid Name="Grid"
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="100" /> 
                                                <ColumnDefinition Width="*"/> 
                                            </Grid.ColumnDefinitions> 
                                            <Grid.RowDefinitions> 
                                                <RowDefinition /> 
                                            </Grid.RowDefinitions> 
                                            <TextBlock Text="{Loc address1}" Grid.Row="0" Grid.Column="0"></TextBlock> 
                                            <TextBox Grid.Row="0"  Grid.Column="1" Text="{Binding Adresse.Adresse1 }" Height="30" Margin="5"></TextBox> 
                                        </Grid> 
                                    </DataTemplate> 
                                </Setter.Value> 
                            </Setter> 
                        </Style> 
                    </telerik:RadTabControl.ItemContainerStyle> 
                 
                </telerik:RadTabControl> 
(I deleted some field for a short version)

I have a simple RadButton with this event :
private void AddAddressTab() 
        { 
            _model.AddAddress(); 
            RadTabItem itemToAdd = new RadTabItem() 
            { 
                Header = "New Tab" 
            }; 
            RadTabControlAddress.Items.Add(itemToAdd); 
            RadTabControlAddress.SelectedIndex = RadTabControlAddress.Items.Count - 1; 
        } 

The constructor in my XAML.cs is :
public AjouterView(AjouterViewModel model) 
        { 
            InitializeComponent(); 
            // Sauvegarde du model dans un attribut de la classe. 
            _model = model; 
            // On se sert de notre model en tant que DataContext. 
            this.DataContext = model; 
 
            //AddAddressTab(); 
        } 

In my Model I have two attribute :
private IAdresse _adresse = null
        public IAdresse Adresse 
        { 
            get { return _adresse; } 
            set 
            { 
                _adresse = value; 
                OnPropertyChanged("Adresse"); 
            } 
        }
My Model implement INotifyPropertyChanged - (And sorry for french name...)

The AddAddress() Method (in the model) :
public void AddAddress() 
        { 
            IAdresse address = new Adresse("Just a test"); 
            ListAdresse.Add(address); 
            Adresse = address; 
        } 

I not include the system to change the address when we select an other Tab.

PROBLEM :
The first time we add an address (add a Tab in the TabControl), the binding doesn't work. I need to add two address for work. I don't find why ! The binding work only if I click the Button (to add an other address) if there is already a Tab in the TabControl.

ATTACHED FILE :
You can download a demo here : Download

If you need more informations, please tell me.
Thank you in advance for your answer.

Regards,
G.B.

[EDIT] : Nobody shall have the beginning of solution ? I don't find how to fix this problem !
George Bill
Top achievements
Rank 1
 answered on 08 Jun 2010
3 answers
186 views
Hi,
I want to cancel drag operation on right click. i dragged item by pressing left click now i press right click(Simultaneously) and want to cancel drag operation.  This is same behavior as window expolere.

Thanks
Bala
Kiril Stanoev
Telerik team
 answered on 08 Jun 2010
7 answers
315 views
When I try to change the point size on a scatter plot, it doesn't increase in size, it's as if the container is fixed at a size and the point get clipped (so when I draw a circle point of point size 20, i see only a quarter of the circle appear on the graph).

here is my code i'm using to adjust the size:

DataSeries series = new DataSeries();
            ScatterSeriesDefinition l = new ScatterSeriesDefinition();
            l.Appearance.Fill = Brushes.DeepPink;
            l.Appearance.Stroke = Brushes.Black;
            l.PointSize = 20;
            series.Definition = l;

Appreciate your thoughts,
Nelson



James DAmour
Top achievements
Rank 1
 answered on 08 Jun 2010
3 answers
140 views
Hi,

I have a grid that is bound to a DataTable. The structure of the DataTable varies at runtime so I cannot set the columns at design time (AutoGenerateColumns is set to true). When a column of the DataTable is of type System.Byte[] the grid shows "System.Byte[]" and I would like it to show an image instead. I am guessing I should be using a DataTemplate for this type but I am unsure of how to do this with the GridView, can you please help or point me to the relevant resource?

Cheers,
Jose
Yavor Georgiev
Telerik team
 answered on 07 Jun 2010
1 answer
131 views
Hi All

I am using the WPF 2010 Q1 controls and as per the documentation here: http://www.telerik.com/help/wpf/gridview-events-validation.html

I am calling the rowisvalidating event and on a condition setting e.IsValid = false; But even when this is set to false, the rowisvalidated event is still fired. I thought that this would not be the case.

Nick
Nedyalko Nikolov
Telerik team
 answered on 07 Jun 2010
2 answers
334 views

Hi,

I'm using RadControls for WPF 2010 Q1 (V2010.1.528.35). I have to customize the RadGridView according the following points :

  • the grid needs to define a first column that is a checkbox column allowing to select/deselect rows
  • this column is databound (2way) to a boolean property (IsSelected) of an object.
  • the column must be always in edit mode. The user needs to be allowed to check directly the checkboxes without a previous click/double click that put the cells in editmode.

The first 2 points are done without any problem. For the third, I've tried differents ways to achieve this goal but without success :/

Can someone provide me a little help on this point ?

Greets,

Thomas

Thomas
Top achievements
Rank 1
 answered on 07 Jun 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
Rating
SplashScreen
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?