Is there a way, in XAML, to cause the tab item headers to stretch across the width of the tab control.
For example, I have three tabs, red, blue and green. I have a tab control with it's width set to auto, the tab headers will only fill up part of the space above the tab content, I want them to fill up all the space.
More specifically if I have 4 tabs I want last tab to take up the remaing space.
<telerik:RadGridView Grid.Row="1" Margin="0,5,0,5" Name="rgvAdministrativeAgent" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" SelectionChanged="rgvAdministrativeAgent_SelectionChanged" AutoGenerateColumns="False" RowEditEnded="rgvAdministrativeAgent_RowEditEnded" ValidationMode="Row"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Name" DataMemberPath="Name" /> |
<telerik:GridViewDataColumn Header="Abbreviation" DataMemberPath="Abbreviation" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
Hi.
I updated to Q2 2009 SP1 and now I have problem with small sliders (Width less than 56).
I use default theme (I think Office_black) and when I want to create slider with small Width it is not working right.
For example I want to do something like this:
myTestSlider = new Telerik.Windows.Controls.RadSlider();
myTestSlider.IsSnapToTickEnabled = true;
myTestSlider.TickPlacement = Telerik.Windows.Controls.TickPlacement.None;
myTestSlider.TickFrequency = 1;
myTestSlider.Focusable = false;
myTestSlider.Width = 34; // 8+20+6
myTestSlider.Minimum = 1;
myTestSlider.Maximum = 10;
Canvas.SetLeft(myTestSlider, 10);
Canvas.SetTop(myTestSlider, 10);
myTestCanvas.Children.Add(myTestSlider);
Slider Control has width 34 but its "internal" parts look and work like on width around 56 and so right part is not visible and goes beyond right border.
I don’t know if I am doing something wrong but currently I am not able to make small sliders.
Best regards,
Michal
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 |