Telerik Forums
UI for WPF Forum
1 answer
107 views
I am updating an old VB 6 application to VS 2013 using the Telerik for WPF controls version 4.5.  I think we are moving to using the Tilegrid and tiles for the opening navigation.  We are anticipating moving to touch soon and this fits with most people's experience with smart phones.  I have laid out the Tilegrid and have some tiles working, and by the way very easy to use.  I just need some guidance and direction on how to proceed when the user clicks a tile or touches a tile.  I would like to have an input form open on top of the grid with the inputs needed and I would like it to animate up and over the tilegrid, and when the form is closed, have it shrink back down and out of site and reveal the Tilegrid again.

Does anyone have an example of how this works and the Telerik controls to use?  I don't need full solution, just a tile click and animated form to get started, I think I can take it from there.

Thanks.
Pavel R. Pavlov
Telerik team
 answered on 30 Oct 2014
1 answer
96 views
 Have a RadGridView with a RadContextMenu whice contains a RadMenuItem.
Clicking on that RadMenuItem should allow the user to edit the relavent GridViewCell.
In reallity the cell becomes ediable but doesn't accept any key strokes except Backspace, Enter and Esc.
How may I fix that?

Thanks!
Matan
Top achievements
Rank 1
 answered on 30 Oct 2014
4 answers
196 views
I am working on a Behavior to extend the GridView with CheckBoxes inside the group headers. To achieve this I created a System.Windows.Interactivity.Behavior where in the "Loaded" event of the GridView I add Eventhandlers to all Checkboxes in the group headers. To get a list of all GroupHeaderRow items I use the following code:

var groupHeaderRows =
    AssociatedObject.ChildrenOfType<GroupHeaderRow>().ToList();

This is working as expected, I get all group headers and can work with them. (Note: the "AssociatedObject" is the GridView to which the Behavior is attached to; the GroupRenderMode is "Flat".)

When a user changes the grouping be dragging/dropping a column to/from the group panel the "Grouped" event occurs. Unfortunately the list of GroupHeaderRow items is empty right after this event occurs and using the code above. On the other side I tried to respond to the "GroupDescriptors.CollectionChanged" event, but the list of GroupHeaderRows has not been refreshed which means I get the GroupHeaderRows of the old grouping before the collection was changed.
Now I am stuck. How can I get the list of all current GroupHeaderRow items after the user changed the grouping via UI?

Second question: how can I get the GroupHeaderRow that a selected item belongs to when I respond to the "SelectionChanged" event of the GridView?

TIA
Neils
Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 30 Oct 2014
1 answer
119 views
I have a record in my database which i need  to display in the radschedule view. Please suggest me how to do it.
Nasko
Telerik team
 answered on 30 Oct 2014
5 answers
394 views
Hi guys,

I am try my best to make myself clear. I have two pages with one of them being Config page. In the config page, I have a RadCombox to choose a time span value. The code snippets are below.
<telerik:RadComboBox Width="125" FontSize="{DynamicResource FontSizeBig}"
        VerticalAlignment="Center" Height="32" Margin="0,0,5,0" SelectedValue="{Binding Realtime.TimeRemaining, Converter={StaticResource DetectionDurationConverter}, Source={StaticResource Locator}}">
              <telerik:RadComboBoxItem Content="10 s" />
              <telerik:RadComboBoxItem Content="10 minutes"/>
              <telerik:RadComboBoxItem Content="1 hour"/>
              <telerik:RadComboBoxItem Content="Custom" Margin="0"/>
</telerik:RadComboBox>

As you can see from the above code, I binds the selected value to TimeRemaing property and I would use a customized converter named DetectionDurationConverter to turn 10 s, 10 minutes and 1 hour into a time span value in C#.  Here is my converter. 
public class DetectionDurationConverter : IValueConverter
{
    private static readonly string[] durationSet = new[] {"10 s", "10 minutes", "1 hour"};
 
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        var timeSpan = (TimeSpan) value;
        if (timeSpan == TimeSpan.FromSeconds(10.0))
        {
            return durationSet[0];
        } else if (timeSpan == TimeSpan.FromMinutes(10.0))
        {
            return durationSet[1];
        } else if (timeSpan == TimeSpan.FromHours(1.0))
        {
            return durationSet[2];
        }
        return string.Empty;
    }
 
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        var timeSpan = TimeSpan.MinValue;
        if (value is RadComboBoxItem)
        {
            var val = System.Convert.ToString((value as RadComboBoxItem).Content);
            if (val == durationSet[0])
            {
                timeSpan = TimeSpan.FromSeconds(10.0);
            }
            else if (val == durationSet[1])
            {
                timeSpan = TimeSpan.FromMinutes(10.0);
            }
            else if (val == durationSet[2])
            {
                timeSpan = TimeSpan.FromHours(1.0);
            }
        }
        return timeSpan;
    }
}

For example, when I select a '10 s', it goes to ConvertBack method as expected and TimeRemaining is a 10 second time span value. Then I switched to another page and switched back, it goes to Convert method with TimeRemaining being 10 seonds still. Note, the method Convert would be entered twice. However, in the UI, no items have been selected. I just hope the selected item would be consistent with the value of TimeRemaining.

Thanks,
-J
Jackey
Top achievements
Rank 1
 answered on 30 Oct 2014
1 answer
118 views

How do I tell the SpellChecker to do a case-insentitive word comparison?

So if my dictionary of valid words contains "Foo" how do I tell the SpellChecker not to underline lower-case "foo"?


(I don't mean DocumentSpellChecker.Settings.SpellCheckUppercaseWords feature)

Petya
Telerik team
 answered on 29 Oct 2014
2 answers
151 views
Hello,

I have a RadListBox with 10 items in it, when I drag and drop them to re-order everything is working correctly except when I drop in the very last position.

I expect to get position 10 from DragDropState state.InsertIndex, however, I get position 0 and my item will get added to the top of the list.

Thank,

Kevin
Nasko
Telerik team
 answered on 29 Oct 2014
1 answer
138 views
How to set RadButtonElement's Properties like FontSize, Padding, Margin???
Milena
Telerik team
 answered on 29 Oct 2014
2 answers
208 views
I guess I am missing something on the outlook bar.  I have the outlook bar in a grid with horizontal and vertical size set to stretch.  When I resize the form, the outlook bar resizes, great.  However, when I do a minimize with either the header icon or with the right side sizer, the outlook bar doesn't move to the left, it "pinches" together in the center of the column.  I know that you can have the bar collapse to the left, one of the demos show it, but I can't figure it out.  How can I collapse the outlook bar to the left?

Thanks.
Milena
Telerik team
 answered on 29 Oct 2014
11 answers
571 views
Hi,
I want to change the default behavior of autohide are, 

at present if i mouseover on auto hide area a panel will opens from left to right with a animation, but i want to open the panel on clicking on auto hide area. 

is it possible if yes can you please tell me how can i do that ?
please check the attached png for more information.

Thanks in advance,
Srinivas.
Kalin
Telerik team
 answered on 29 Oct 2014
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?