or
| protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
| { |
| if (e.Item is GridHeaderItem) |
| { |
| GridHeaderItem header = (GridHeaderItem)e.Item; |
| // to set the height of the Grid Header |
| header.Height = Unit.Pixel(20); |
| // to add an Image in the Grid Header |
| Image img=new Image(); |
| img.ID = "Image1"; |
| img.ImageUrl = "~/Image1.gif"; |
| header["columnUniqueName"].Controls.Add(img); |
| } |
| } Can anyone please let me know how to do above thing in WPF RADGRIDVIEW because radgridview dont have any event like ItemDataBound. I m also using Telerik.windows.control namaspace not Telerik.Web.UI. Below is my Code // I m adding Columns dynamically, GridViewDataColumn IsUnRead = new GridViewDataColumn(); IsUnRead.Header = "R"; IsUnRead.UniqueName = "IsUnRead"; IsUnRead.Width = new GridLength(40); this.gvEmail.Columns.Add(IsUnRead); I want to have Image in header also dynamically by code. Thanks in advance. Your view will be highly appreciated. MIRAL SHAH |
I have seen several threads about this topic and all of them end with a reference to
Unfortunately it is out of date, because it doesn’t work with the last Telerik release libraries version 2009.2.813.35. I have tried to fix but I can’t makes it works and serialize to save it. I feel like inventing the wheel!
Could someone from Telerik update it?


| <ControlTemplate TargetType="telerik:Bar"> |
| <Canvas> |
| <Rectangle x:Name="PART_DefiningGeometry" |
| Height="{TemplateBinding ItemActualHeight}" |
| RadiusX="2" |
| RadiusY="2" |
| Stroke="Transparent" |
| StrokeThickness="1" |
| MinWidth="20" |
| Style="{TemplateBinding ItemStyle}" /> |
| </Canvas> |
| </ControlTemplate> |
HI,
Just wondering if there is a way to change the weekday view by letting a week starting from Wednesday and ending on Tuesday.
Thanks,
Kevin
| <telerik:GridViewColumn IsSortable="False" HeaderText="Amount"> |
| <telerik:GridViewColumn.CellStyle> |
| <Style TargetType="telerik:GridViewCell"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <ControlTemplate TargetType="telerik:GridViewCell"> |
| <StackPanel> |
| <TextBox PreviewKeyDown="TextBox_PreviewKeyDown" HorizontalAlignment="Stretch" |
| Margin="3" VerticalAlignment="Center" |
| Text="{Binding Path=Amount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
| </StackPanel> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </telerik:GridViewColumn.CellStyle> |
| </telerik:GridViewColumn> |