Telerik Forums
UI for WPF Forum
1 answer
309 views
I am using a ComboBox with the following settings:
<Setter Property="TextSearchMode" Value="StartsWith" />
<Setter Property="IsEditable" Value="True" />
<Setter Property="IsReadOnly" Value="True" />

Is there a codeless (MVVM) way to force a valid value to be chosen?  As it stands, the user can click into the "TextBox" part of the RadComboBox, hit the backspace key repeatedly to clear out the text, and effectively set the value to null.  This is even though the ComboBox does not have a null / blank value available for selection via the mouse / arrow keys.

The ideal situation would be to return the ComboBox to its original value if the user does not select a valid value.

I'm sure there is a method of doing this via code behind, but this seems like something that could already be built into the control.

Thank you,
Kevin
Yana
Telerik team
 answered on 30 Dec 2011
5 answers
577 views
I've got a RadGridView on a WPF form.  The control is in a cell of a Grid control.  The cell isn't tall enough to show a full number of rows all of the same height.  That is, the last row at the bottom is displaying as a partial row.

When I scroll all the way down to the bottom, the last row is not displaying fully.  Even though the scroll bar is all the way down, it doesn't scroll the whole last row into view.

How do I fix this so the last row will display in full?

Tony

Edit:  Here is the XAML for the RadGridView control:

<my:RadGridView AlternationCount="1" 
           AutoExpandGroups="True" 
           AutoGenerateColumns="False" 
           CanUserDeleteRows="False" 
           CanUserFreezeColumns="False" 
           CanUserInsertRows="False" 
           CanUserResizeColumns="True"
           CanUserSortColumns="True" 
           DataLoadMode="Asynchronous" 
           EnableColumnVirtualization="True" 
           EnableRowVirtualization="True" 
           FontSize="18" 
           FontWeight="Bold" 
           Grid.Column="1" 
           Grid.Row="1" 
           IsReadOnly="True" 
           Margin="5" 
           Name="HotListResults" 
           SelectionChanged="HotListResults_SelectionChanged"
           SelectionUnit="FullRow" 
           ScrollViewer.CanContentScroll="True" 
           ScrollViewer.HorizontalScrollBarVisibility="Auto" 
           ScrollViewer.VerticalScrollBarVisibility="Auto" 
           ShowGroupFooters="True"
           ToolTip="Matching Hot List Entries">
    <my:RadGridView.Columns>
        <my:GridViewDataColumn DataMemberBinding="{Binding ListName,   Mode=OneWay}" Header="Hot List"    Width="150" />
        <my:GridViewDataColumn DataMemberBinding="{Binding AlarmClass, Mode=OneWay}" Header="Alarm Class" Width="200" />
        <my:GridViewDataColumn DataMemberBinding="{Binding CountryId,  Mode=OneWay}" Header="Country"     Width="100" />
        <my:GridViewDataColumn DataMemberBinding="{Binding LocaleCode, Mode=OneWay}" Header="State"       Width="75" />
        <my:GridViewDataColumn DataMemberBinding="{Binding Plate,      Mode=OneWay}" Header="Plate"       Width="150" />
        <my:GridViewDataColumn DataMemberBinding="{Binding BeginDate,  Mode=OneWay, Converter={StaticResource DateConverter}}" Header="Begin Date" Width="200" />
        <my:GridViewDataColumn DataMemberBinding="{Binding EndDate,    Mode=OneWay, Converter={StaticResource DateConverter}}" Header="End Date"   Width="200" />
    </my:RadGridView.Columns>
</my:RadGridView>
Vanya Pavlova
Telerik team
 answered on 30 Dec 2011
5 answers
185 views
Hi,

is it possible to create chart using the new ChartView like the meteo chart in the original RadChart?
I need to show image and value on y axis, and date on x axis. 
Charly
Top achievements
Rank 1
 answered on 30 Dec 2011
2 answers
284 views
.xaml:
            <ListBox Name="itemsControl" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"/>
            <telerik:RadDataPager Name="radDataPager" Height="30" VerticalAlignment="Bottom"
               Source="{Binding myItemsSource}"
               PageSize="10"
               DisplayMode="All"/>
.cs:
            List<string> list = new List<string>();
              
            for (int i = 0; i < 36; i++)
            {
                list.Add(i.ToString());
            }
              
            this.radDataPager.Source = list;

Hi,
Now I got a problem that using ListBox with RadDataPager,When turn the lastpage to previouspage(for example,the last page only have 1 item),the previouspage's itemcount turn to 1,how could I fix that?Here is a demo code above,with telerik 2010 Q2,Thanks.

 

Best Wishes,

Sky

Yu
Top achievements
Rank 1
 answered on 30 Dec 2011
1 answer
92 views
Hello,

I am trying to create a row template which is only applied to certain items. It is not clear which template governs the row in a treelistview (is it a GridViewGroupRow or a GridViewRow). Additionally, I appear to be unable to modify a copy of either the RowStyle or the GroupRowStyle in Expression Blend. Are the XAML representations of the default styles listed somewhere?

Cheers,

Mike
Mike
Top achievements
Rank 1
 answered on 29 Dec 2011
3 answers
214 views
I have a RadGridView control on a screen in my WPF application.  It holds the results of a search the user can perform.  There are two different types of objects that can be in this control; they both implement an interface that the window that holds the RadGridView is aware of.

One of these two types contains an array of a third type of object that I want to display in a Row Details data template, but only if the array isn't empty.  The other type does not have any information in it that I want to display in any row details area.

So I need a way to set the Row Details Visibility property for each row in the RadGridView based on its underlying type.  I've already added a boolean property called CanDisplayDetails.  For the type that  I don't want to display any details for, this always returns false.  Of the other type, this returns true if the number of rows in an array property is greater than zero. 

How do I hook this property up to each row's DisplayRowDetails property?

Tony
Tony
Top achievements
Rank 1
 answered on 29 Dec 2011
1 answer
144 views
Hello
 How can we bind parent-child relationship in Treeview recursively remember this could be for n-tier for e.g

Company
Division-1
           Sub-Division-11
           Sub-Division-12
           Sub-Division-13
Division-2
           Sub-Division-21 
           Sub-Division-22
           Sub-Division-23  

In my database i have Node ID and Parent Node ID also i want to do drag and drop inside this tree.


  
Zarko
Telerik team
 answered on 29 Dec 2011
1 answer
279 views
I have a RadChart (2011-Q3) with a single X axis and 2 Y axis's. The right Y axis gets its MaxValue and Step from binding to properties in my associated view model. Every three minutes the underlying data in the VM refreshes itself. I'm noticing that when the underlying data refreshes itself, the data on the chart refreshes, but the right Y axis does not. It does not attempt to retrieve new values for the MaxValue and Step. I've determined this by setting breakpoints on my getter properties. The getter is called once, when the chart first loads, and is never called again, even when the chart data refreshes.

Is this a bug in the Chart control, or is there something I need to do to cause the entire chart to refresh (including the axix's) when the underlying data refreshes?
Petar Marchev
Telerik team
 answered on 29 Dec 2011
6 answers
390 views
Hello,

I'm trying to replace the window that appears on AppointmentEditing event of the radscheduleview.


I'm updating an appointment, then I try to commit the changes with .Commit() method (which actually returns false -> there must be an error in this method, but I can't see it :P )

I'll give you a code snippet of what i'm trying to do:

  private void AppointmentEditingHandler(object sender, AppointmentEditingEventArgs e)
        {
            try
            {
...
 var appointment = e.Appointment;
...
 var radScheduleView = (RadScheduleView)e.Source;
                appointment.BeginEdit();
                appointment.Start = newStartDateTime;
                appointment.End = newStopDateTime;
                appointment.Subject = courseTypeToString;
                appointment.EndEdit();
                radScheduleView.Commit();
 
                e.Handled = true;
                e.Cancel = true;
                e.RoutedEvent = null;
}
catch (exception ex)
{}

I've tried every single thing on your forum but I haven't manage to make it work.

Please help me with the above issue, it's VERY annoying.
Nadisan
Top achievements
Rank 2
 answered on 29 Dec 2011
4 answers
155 views
Hi all,

I've made the first row of my grid contain comboboxes using a DataTemplateSelector. This works like a charm.

My problem is associated with validation errors when they occur in a cell in a different row. When a cell fails to validate, the cells in the rest of the grid become readonly and non-focusable, or disabled in some fashion, so the focus cannot be changed to a different cell in the grid. However, the comboboxes remain enabled. I want to disable them but cannot find a property in the tree above them to bind to.

I am trying to use something like:

const string xaml =
      "<DataTemplate>"
    + "<ComboBox Tag=\"{0}\" IsEnabled=\"{{Binding Path=IsEnabled, RelativeSource={{RelativeSource FindAncestor, AncestorType=telerik:GridViewCell}}}}\" />"
    + "</DataTemplate>";
string dataTemplateXaml = string.Format(xaml, fieldIndex);

In this example, I am looking to the IsEnabled property on the enclosing GridViewCell but it does not work. I've used Snoop to walk up the tree to the RadGridView to find a property to which I can bind to get the correct behavior. I cannot find a property that changes when there is a validation error in a cell in the grid.

Maybe I'm way off base on this approach. Suggestions would be greatly appreciated.
Scott
Top achievements
Rank 1
 answered on 29 Dec 2011
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?