Telerik Forums
UI for WPF Forum
4 answers
123 views
Hi,
please take a look at the my GridView in the attached image.
I think it's much easier than trying to explain with words. I hope that the title is enough for your search indexer! :)
How can I remove the indicated line?
papadi
Top achievements
Rank 1
 answered on 24 Aug 2012
8 answers
256 views
I am using the DataTemplate in the GirdViewDataColumn.CellTemplate as follows. 

<telerik:GridViewDataColumn  DataMemberBinding="{Binding Others}" ColumnGroupName="ATTRIBUTES">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding Path=Others}" IsChecked="{Binding Path=IsSelected,Mode=TwoWay}" Height="16" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Top" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

I want the check box to appear only when I have data in that cell. How would I achieve this? Right now, I am getting just the CheckBox in the cells where there is no data to display. 

I am attaching the screen shot of the current behavior. Any help is greatly appreciated. 
Dimitrina
Telerik team
 answered on 24 Aug 2012
5 answers
303 views
Hello I was wondering if there is a way to make the checkbox that appears in the respective columns "un-checkable" , essentially read only. I say that because when I set the column to be read only the user is still able to check the checkbox. Even if I set the whole RadGridView
<telerik:GridViewDataColumn Width="40" IsReadOnly="True">
                                   <telerik:GridViewDataColumn.Header>
                                       <StackPanel>
                                           <TextBlock Text="Lab"></TextBlock>
                                           <TextBlock Text="Req"></TextBlock>
                                       </StackPanel>
                                   </telerik:GridViewDataColumn.Header>
                                   <telerik:GridViewDataColumn.CellTemplate>
                                       <DataTemplate>
                                           <CheckBox HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding LabRequired}" />                                                                                                                               
                                       </DataTemplate>
                                   </telerik:GridViewDataColumn.CellTemplate>
                               <telerik:GridViewDataColumn.CellStyle>
                                   <Style TargetType="telerik:GridViewCell">
                                       <Setter Property="Background" Value="{Binding LabStatus, Converter={StaticResource MyConverter}}" />
                                   </Style>
                               </telerik:GridViewDataColumn.CellStyle>
                           </telerik:GridViewDataColumn>
to read only along with the individual columns it still is able to be clicked.
Rajendra
Top achievements
Rank 1
 answered on 24 Aug 2012
6 answers
227 views
Hi,

Consider adding IsSynchronizedWithCurrentItem to GridViewComboBoxColumn. As of now I am using this to work around the issue:

<Style TargetType="{x:Type telerikInput:RadComboBox}" BasedOn="{StaticResource {x:Type telerikInput:RadComboBox}}">
            <Setter Property="IsSynchronizedWithCurrentItem" Value="False" />
</Style>

The problem is that I bind the GridViewComboBoxColumn to a StaticResource of type CollectionViewSource and by default (in the latest release) you have IsSynchronizedWithCurrentItem  set to true this will make all my columns show the same item.

Let me know if you need a demo for this.

Regards,
Ivo
Telerik team
 answered on 24 Aug 2012
3 answers
110 views
If an attribute is of type DateTime, the default control on the right side is a Date Picker, however when I try to get the filtered expression, I get in this format: '8/21/2012 11:10:00 PM'

Is there a way we can customize this in the following (or any other format?): 21-AUG-2012 (I also don't need the time attribute)

Please let me know.
Dimitrina
Telerik team
 answered on 24 Aug 2012
1 answer
112 views
Hello,

I am exploring the PieChart and, like som many others, I've stumbled across problems with its size. As I understand it the PieChart should take up 100% of its parent's area but so far it is always rendered at some sort of minimum size and I need help understanding why. The only difference between my XAML and the ones I've seen in your vanilla examples is the fact I render using DataTemplates, as a result of using MVVM.

This is the XAML I use to try it out:

<DataTemplate x:Key="PieChartTemplate">
    <Grid Background="Beige">
            <telerik:RadPieChart VerticalAlignment="Center" HorizontalAlignment="Center" Background="CadetBlue" >
  
                <telerik:PieSeries ShowLabels="True">
                    <telerik:PieSeries.DataPoints>
                        <telerik:PieDataPoint Value="10" Label="A"/>
                        <telerik:PieDataPoint Value="4" Label="B"/>
                        <telerik:PieDataPoint Value="7" Label="C"/>
                        <telerik:PieDataPoint Value="11" Label="D"/>
                        <telerik:PieDataPoint Value="15" Label="E"/>
                    </telerik:PieSeries.DataPoints>
                </telerik:PieSeries>
            </telerik:RadPieChart>
    </Grid>
</DataTemplate>

And here's how it renders:

http://www.flickr.com/photos/59656722@N06/7830046920/in/photostream/lightbox/

Please note that the PieChart's parent is the beige grid. I also set a background color ("CadetBlue") for the PieChart itself to see how much space it uses.

Please help me understand how to fix this.
Thanks
Petar Marchev
Telerik team
 answered on 24 Aug 2012
1 answer
240 views
Hello,

I use the pdfViewer control, and want to remove/hide the 'open' and/or 'print' button from the toolbar.

A. Is there a way to do this without having to create a new toolbar ? Currenty wiithout setting any property or xaml I see the default toolbar.
B. If I have to create a 'new' toolbar ... How do I hide the default toolbar ?

In my first try , using this link telerik help I see two toolbars :-S

Thanks in advance.

Todor
Telerik team
 answered on 24 Aug 2012
5 answers
242 views
Hello,

Currently the trackball line follows the mouse cursor when moving mouse cursor over the chartarea.

Can I get following behaviour that trackball line not move until I "drag" it with mouse cursor and then moved it in another place?

Regards,
Auvo
Petar Marchev
Telerik team
 answered on 24 Aug 2012
0 answers
94 views
Hi

I have seen some examples of how to set up a column of type combo but they all include functionality and other code on the page.

I set a combobox type column given a dataset that comes from a database query, but all through code behind.

I require that the XAML does not hold beyond labels and minimum properties and necessary for a creation of RadGridView.

Is this possible?
Could you provide me an example or direction where to inquire?

Language: VB.NET
Platform: WPF Web.

thanks
Romell
Top achievements
Rank 1
 asked on 23 Aug 2012
5 answers
366 views
Hello,

I am building a tree programmatically. After adding all of the items i would like to select one of them and to scroll to it (ensure that it is visible). i am using the node object (RadTreeViewItem) to set the IsSelected property to true, and then use the EnsureVisible method. The node is indeed selected. However any methods that are registered to the Selected event are not invoked. In addition, the item stays invisible and manual scrolling is required. 

Any ideas?

thanks,
Liat.
Tina Stancheva
Telerik team
 answered on 23 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?