Telerik Forums
UI for WPF Forum
3 answers
239 views
What is the best way to set a minimum width on a slider while having it still function correctly?

I have a timeline that can be zoomed out to a number of years and zoomed into a few minutes.  When zooming in, the slider's width is shrinking down to the point the middle thumb is unusable.

I thought this may be an existing forum discussion,but I was unable to spot it in a search so my apologies if I missed it.
Tsvetie
Telerik team
 answered on 25 Oct 2012
1 answer
202 views
Hi,

is there any Example with datasource binding?
What is possible (xml, sqlite,...)?
Whats the best way?

Thanks
Best Regards
Rene
Rosen Vladimirov
Telerik team
 answered on 25 Oct 2012
5 answers
326 views
Hello,

I am having problems with the grid's built in ScrollViewer when the grid is resized. I am using AutoGenerateColumns to set up the grid from a DataTable. There are enough columns in the table that no matter the size of the window.

When I start the application the horizontal scrollbar in the ScrollViewer is active, but when I maximize the application it goes away, even though there are still too many columns to fix on a screen.

The structure of the view is

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <telerik:RadGridView AutoGenerateColumns="True"
                           Other properties to set bindings/>

        <View:SomeView Grid.Row="1"
                           MinHeight="75"
                           Visibility="{Binding ShowThisView, Converter={StaticResource BooleanToVisibilityConverter}}" />

</Grid>

In the other view there is basically a grid and a chart. Selecting an item from the grid selects data for the view and opens it. If I select a row *before* maximizing then the scrollbar updates automatically, if not then it will not.

Also, if I seize the vertical scrollbar and  scroll down part of the way, then the horizontal scrollbar snaps back into place.

Not sure what the problem is, something to do with the resize event, or how the columns are generated.

Thank you,

Eli
Dimitrina
Telerik team
 answered on 25 Oct 2012
2 answers
222 views
Hi,

i use a RadGridView with a "GridViewImageColumn" like this:
<telerik:GridViewImageColumn DataMemberBinding="{Binding Bild}" Width="50" IsEnabled="False" ImageStretch="None" />

But how do i bind an image to this column:
public class Calls
{
public string Name { get; set; }
public string Tele { get; set; }
public string time { get; set; }
public string Datum { get; set; }
public Image bild { get; set; }
}
ObservableCollection<Calls> _CallCollection = new ObservableCollection<Calls>();
_CallCollection.Add(new Calls
{
Name = name_s,
Tele = tele_s,
time = time_s,
Datum = datum_s,
bild = image
});

Name, Tele, time and Datum is ok, but i can't see an image. How do i solve this?

i tried:
var image = new Image();
image.Source = new BitmapImage(new Uri("pack://application:,,/Images/settings.png", UriKind.Absolute));

But this is wrong...

thanks a lot
Rene
ITA
Top achievements
Rank 1
 answered on 25 Oct 2012
1 answer
552 views

Hi,
I am using radGridView with 2 level hierarchy with 
HierarchyChildTemplate. I don't want to show any column headers for the lowest level grid and I set ShowColumnHeaders to False. I  do not want to show that there's an inner grid at the first child level. How can I remove the space around the  radGridView? 

I do not have any margins, padding, border thickness properties. I tried removing the whole HierarchyChildTemplate
but still there is empty space. Can anyone please help where that space is coming. Please refer to attached pictures for clarity. Requirement is that the area marked with green should not appear.
Thanks,
Rosy



Dimitrina
Telerik team
 answered on 25 Oct 2012
1 answer
113 views
On my RichTextBox if you type something in, select the text, and increase the font size the width of the selector is no longer spanning the width of the text.  See attached please.  Works fine with decreasing the font.
Vasil
Telerik team
 answered on 25 Oct 2012
1 answer
139 views
I asked this in the webinar yesterday but I failed to get a good answer on this.

Is it possible to add the themes found in those Sales Dashboard demos as selectable themes? I think
they look far better than the default themes.
Kalin Milanov
Telerik team
 answered on 25 Oct 2012
3 answers
150 views
Hi, 

i have a problem with SplineSeriesDefinitinion.
On my project i have a RadChart with different SeriesDefinition on the same Data. I have buond the seriesDefinition type with the model, therefore i can change the series definition at runtime (without use code behind but only model).

The series definition that i use are:
  • StackedBarSeriesDefinition
  • StackedBar100SeriesDefinition 
  • BarSeriesDefinition
  • SplineSeriesDefinition

I attach code (xaml) and image (1.png, 2.png, 3.png) for example.

<telerik1:RadChart x:Name="PassFailChart" BorderThickness="0" Padding="0,10,0,0" Background="{x:Null}" IsTabStop="False" Grid.Row="1">
            <telerik1:RadChart.DefaultView>
                <telerik1:ChartDefaultView>
                    <telerik1:ChartDefaultView.ChartLegend>
                        <telerik1:ChartLegend x:Name="chartLegend" LegendItemMarkerShape="Circle" Background="{x:Null}" BorderBrush="{x:Null}" UseAutoGeneratedItems="True" />
                    </telerik1:ChartDefaultView.ChartLegend>
                    <telerik1:ChartDefaultView.ChartArea>
                        <telerik1:ChartArea LegendName="chartLegend">
                            <telerik1:ChartArea.AxisY>
                                <telerik1:AxisY StripLinesVisibility="Hidden" MinorTicksVisibility="Hidden" ExtendDirection="Up" />
                            </telerik1:ChartArea.AxisY>
                        </telerik1:ChartArea>
                    </telerik1:ChartDefaultView.ChartArea>
                </telerik1:ChartDefaultView>
            </telerik1:RadChart.DefaultView>
            <telerik1:RadChart.AnimationSettings>
                <telerik1:AnimationSettings ItemDelay="00:00:00" DefaultSeriesDelay="00:00:01" />
            </telerik1:RadChart.AnimationSettings>
             
            <telerik1:RadChart.SeriesMappings>
                <telerik1:SeriesMapping LegendLabel="{Binding ElementName=cbPass, Path=Content}" ItemsSource="{Binding Path=GraphRuntime[Pass], Mode=TwoWay}" SeriesDefinition="{Binding Path=PassDefinition, Mode=TwoWay}">
                    <telerik1:SeriesMapping.ItemMappings>
                        <telerik1:ItemMapping DataPointMember="YValue" FieldName="Value"/>
                        <telerik1:ItemMapping DataPointMember="XCategory" FieldName="Label" />
                    </telerik1:SeriesMapping.ItemMappings>
                </telerik1:SeriesMapping>
                <telerik1:SeriesMapping LegendLabel="{Binding ElementName=cbFail, Path=Content}" ItemsSource="{Binding Path=GraphRuntime[Fail], Mode=TwoWay}" SeriesDefinition="{Binding Path=FailDefinition, Mode=TwoWay}">
                    <telerik1:SeriesMapping.ItemMappings>
                        <telerik1:ItemMapping DataPointMember="YValue" FieldName="Value"/>
                        <telerik1:ItemMapping DataPointMember="XCategory" FieldName="Label"/>
                    </telerik1:SeriesMapping.ItemMappings>
                </telerik1:SeriesMapping>
                <telerik1:SeriesMapping LegendLabel="{Binding ElementName=cbReconstitution, Path=Content}" ItemsSource="{Binding Path=GraphRuntime[Reconstitution], Mode=TwoWay}" SeriesDefinition="{Binding Path=ReconstitutionDefinition, Mode=TwoWay}" >
                    <telerik1:SeriesMapping.ItemMappings>
                        <telerik1:ItemMapping DataPointMember="YValue" FieldName="Value"/>
                        <telerik1:ItemMapping DataPointMember="XCategory" FieldName="Label"/>
                    </telerik1:SeriesMapping.ItemMappings>
                </telerik1:SeriesMapping>               
            </telerik1:RadChart.SeriesMappings>
        </telerik1:RadChart>


When the graph opened, all graph it's ok (view image).

If i select StackedBar100SeriesDefinition the axisY range changed, but when i return to SplineSeriesDefinition the graph is cut (like image problem.png).
This problem occurs and remain only if i select StackedBar100SeriesDefinition. For resolve the problem, software must be restarted.


Another problem with the SplineSeriesDefinition is that on the X-Axis the first label is cut (like problem.png image and 2.png image). Is there a way to resolve this issue?

Thanks in advance.
Francesco.
Nikolay
Telerik team
 answered on 25 Oct 2012
1 answer
455 views
My grid seems to be generating an empty column header before the first column and also after the last. How do I get rid of these? I've attached an image showing my issue. Thanks
Dimitrina
Telerik team
 answered on 25 Oct 2012
0 answers
82 views
no issue. it is working correctly.
Hitesh
Top achievements
Rank 1
 asked on 24 Oct 2012
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
LayoutControl
ProgressBar
Sparkline
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
Callout
Rating
Accessibility
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?