Telerik Forums
UI for WPF Forum
1 answer
216 views
I am trying to style the GridViewCheckBox in my application, but I can't seem to get the GridViewCheckBox style to take effect. I would like to show the CheckBox without a box around it (just the check or no check).

Using Blend, this is what I got for a style:
<ResourceDictionary
    <!-- Resource dictionary entries should be defined here. -->
    <Style TargetType="{x:Type telerik:GridViewCheckBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:GridViewCheckBox}">
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="13" Height="13">
                        <Grid Margin="0">
                            <Path x:Name="IndeterminatePath" Stretch="Fill" Stroke="#FF8D8D8D" StrokeThickness="1.5" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="7" Height="7" Visibility="Collapsed" Data="M14.708333,144.5L20.667,144.5"/>
                            <Path x:Name="CheckedPath" Stretch="Fill" Stroke="#FF8D8D8D" StrokeThickness="1.5" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Visibility="Collapsed" Data="M32.376187,77.162509L35.056467,80.095277 40.075451,70.02144"/>
                        </Grid>                             
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Visibility" TargetName="CheckedPath" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="IsThreeState" Value="True">
                            <Setter Property="Visibility" TargetName="IndeterminatePath" Value="Visible"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

I also see there is a class for the GridViewCheckBoxColumn, but I have been unsuccessful in changing the style template of that either.

How can I style the checkbox?

Thanks.
Vanya Pavlova
Telerik team
 answered on 22 Sep 2010
2 answers
219 views
Hi,

In my GridView I need to change the background of certain rows depending on one property of the object bound to that row. I found the forum thread below which explains how to do it but as soon as I change the references on the examples posted to the latest version of the GridView it does not compile. Would you please update the example or point me to another solution?

http://www.telerik.com/community/forums/wpf/gridview/how-can-i-apply-different-colors-to-radgridview-rows-through-bindings.aspx

Best Regards,
Jose Simas
Vanya Pavlova
Telerik team
 answered on 22 Sep 2010
1 answer
77 views
Hi I want most of the functionality of the tile view control, but I dont want to allow resizing - hence the height and width are fixed... Is this possible ? If not, any other controls that I could do a kind of tile approach (like on the iphone?)...

Cheers
Mark
Tina Stancheva
Telerik team
 answered on 22 Sep 2010
1 answer
107 views
Hello,
Currently I have a gridview populated with Data from local database(XML)

One of the features is to edit /add and save data to a database.
 Is is possible to edit or add data to gridview and it will save it to the current xml file?

I hope that makes sense..
Regards,
Rick Mueller
Rossen Hristov
Telerik team
 answered on 22 Sep 2010
1 answer
221 views
I have a IQueryable<T>, I'm wrapping it with a QueryableCollectionView. Setting the PageSize to 100. There are some 1500 items in the collection.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition
            Height="*" />
        <RowDefinition
            Height="Auto" />
    </Grid.RowDefinitions>
    <telerik:RadGridView
        Grid.Row="0"
        AutoGenerateColumns="True"
        ItemsSource="{Binding PagedSource}" />
    <telerik:RadDataPager
        Grid.Row="1"
        Source="{Binding PagedSource}"
        DisplayMode="All"
        IsTotalItemCountFixed="False" />
</Grid>

The GridView works fine. It shows only the first 100 records. The DataPager however renders showing page " " of 1, and doesn't let me change pages. It looks unaware of the QueryableCollectionView. I'm not sure what I'm missing. I'm assuming it's in setting up the Source improperly somehow.

Rossen Hristov
Telerik team
 answered on 22 Sep 2010
1 answer
131 views
I save/load the GridView layout similiar to your example at

http://www.telerik.com/help/wpf/radgridview-how-to-saveload-gridview-layout.html

Is there a way to save/load the expanded/collapsed state of GridView groups, too?

Thanks in advance.
Maya
Telerik team
 answered on 22 Sep 2010
3 answers
159 views
I have some items in a RadCarousel and their height is almost the same as the Carousel's panel. However, there is white space on the top of the RadCarousel, and the bottom of the visual is clipped off. How can I get a Carousel to correctly display items who's height is 100% of the panel?
Adam Petaccia
Top achievements
Rank 1
 answered on 21 Sep 2010
6 answers
92 views
RadChart demo, click on Flexible API -> exception is thrown.
Vlad
Telerik team
 answered on 21 Sep 2010
3 answers
549 views
Hi

I have a requirement where I need to add a radiobutton as first column of the grid and when the user selects the radiobutton the row should be selected I mean selecteditem should be set for the grid. I have used the below code to show the radio button in the grid but I am not able bind the radiobutton selection to the SelectedItem.

<telerik:GridViewDataColumn Name="GridColumnSelector" Header="">
    <telerik:GridViewDataColumn .CellTemplate>
        <DataTemplate>
               <RadioButton Name="rdCheck" GroupName="RadioSelectors" />
        </DataTemplate>
    </telerik:GridViewDataColumn .CellTemplate>
</telerik:GridViewDataColumn >

Regards
Kiran
Vlad
Telerik team
 answered on 21 Sep 2010
1 answer
109 views


Hello Telerik,
I am developing a customcontrol for radbutton .


I have a requirement to change the image of the radbutton to different image on 'Hover' operation.

public

 

 

class TngButton : TngBaseTemplateControl

 

 

 

{

 


 

 

static TngButton()

 

{

DefaultStyleKeyProperty.OverrideMetadata(

 

 

 

typeof(TngButton), new FrameworkPropertyMetadata(typeof(TngButton)));

 

}

 

 

#endregion

 

 

public override void OnApplyTemplate()

 

{

 

 

 

 

base.OnApplyTemplate();

 

 

 

 

 

RadButton btn = this.Template.FindName("PART_BaseControl", this) as RadButton;

 

 

 

 

 

ContentPresenter content = this.Template.FindName("PART_ContentControl", this) as ContentPresenter;

 

 

 

 

 

btn.Hover+=new EventHandler<Telerik.Windows.RadRoutedEventArgs>(btn_Hover);

 

 

}

 

 

 

 

 

void btn_Hover(object sender, EventArgs e)

 

{

 

 

 

 

 

// code to change the image at the hover .

 

 

 

 

 

 

}


i want to have two properties like 'originalimage' and 'hoverimage" which can be changed on mover hover action
can you help me in how to setting the logic for this ?

regards,
Srinivas

 

 

Viktor Tsvetkov
Telerik team
 answered on 21 Sep 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?