
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 |
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> |