Telerik Forums
UI for WPF Forum
1 answer
67 views
Hi,

the user wants to enter the time directly in a RadTimePicker.
If he enters "00:59" everything is fine. But if he uses "0059" instead, the result is "05:09".
That's surprising and not reasonable for the user.

Other examples for this behaviour are:
"0201" => "20:01"
"0022" => "22:00"

Is there any reason for this behaviour?

Thanks for your help.
Kind Regards
    Bettina 
Konstantina
Telerik team
 answered on 23 Sep 2011
3 answers
257 views
I've created my own Filtering Control (class derived from FilteringControl) so that I can set a default FilterOperator to something other than Equal To. It works great, but it's using the default theme. My application uses the Office Blue theme, not the default Black theme. How do I get it to use the application's theme instead of the default?

I'm defining my class as a resource for the grid, then using it as a static resource for the column I want to change. Here is the related code for my grid:
<telerik:RadGridView.Resources>
     <common:ChangedFilteringControl x:Key="StartsWithFilterControl" DefaultFilter="StartsWith" />
</telerik:RadGridView.Resources>
.....
<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}" FilteringControl="{StaticResource StartsWithFilterControl}" />

I'm guessing I need to apply a style but it's just not working.
Rayne
Top achievements
Rank 1
 answered on 23 Sep 2011
0 answers
157 views
What happened with the MapProviderBase RadMap.Provider - SetMapSource.
We installed versjon 2011.2.0920.35 and SetMapSource no longer exists.

Update: After restarting my computer everything was ok again!
Rieni De Rijke
Top achievements
Rank 1
 asked on 23 Sep 2011
7 answers
1.1K+ views
I'm trying to hide my GridView when it is empty with a trigger, but I'm having trouble with that. The problem seems to be that Items.Count doesn't update when the ItemsSource of the GridView is updated.

I have a GridView and a TextBlock like this:

<telerikGridView:RadGridView Name="MyGrid" 
    ItemsSource="{Binding MyBindingList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" 
    Style="{StaticResource MyGridStyle}"
    ... 
</telerikGridView:RadGridView> 
 
<TextBlock Text="No records..." Style="{StaticResource NoRecordsTextStyle}" /> 

And they reference these styles:

<Style x:Key="MyGridStyle" TargetType="telerikGridView:RadGridView"
    <Setter Property="Visibility" Value="Visible" /> 
    <Style.Triggers> 
        <DataTrigger Binding="{Binding ElementName=MyGrid, Path=Items.Count}" Value="0"
            <Setter Property="Visibility" Value="Collapsed" /> 
        </DataTrigger> 
    </Style.Triggers> 
</Style> 
                    
<Style x:Key="NoRecordsTextStyle" TargetType="TextBlock"
    <Setter Property="Visibility" Value="Collapsed" /> 
    <Style.Triggers> 
        <DataTrigger Binding="{Binding ElementName=MyGrid, Path=Items.Count}" Value="0"
            <Setter Property="Visibility" Value="Visible" /> 
        </DataTrigger> 
    </Style.Triggers> 
</Style> 

So the default is that the GridView is visible and the TextBlock is collapsed. When Items.Count is 0, i.e. when there are no records to show, the triggers make sure that the GridView is collapsed and the TextBlock is visible.

What happens is that the GridView never shows up but the TextBlock does, even though the GridView has records. If I use exactly the same code but swap out the GridView to a standard WPF ListBox it all works fine.

After some experimenting I've come to the conclusion that it is the Items.Count property that is the problem. It never gets updated. Initially the source of the GridView is empty and thus Items.Count is 0. But when I add items to the source (which I do immediately when the app starts) the Items.Count still remains 0.

Is this a known issue? How can I get around it? Or am I missing something?

Thanks // David
Maya
Telerik team
 answered on 23 Sep 2011
1 answer
117 views
Hi,

We have a large PNG image that represents a marine chart, this displays as a layer successfully using the UirImageProvider but not at its native resolution which is between zoom level 5 and 6.  At level 5 it is slightly 'shrunken' and at level 6 it is slightly 'zoomed in'.

How do you display the layer at its native resolution?

Regards

John
Andrey
Telerik team
 answered on 23 Sep 2011
1 answer
115 views
Hi,

I am looking to create a heat map that changes its heat distribution when a parameter is changed. I have added custom data to my shape files and would like to have a drop down box that allows a user to change which property is used for the coloring (i.e Population rather than Area in the case of the Heat Map demo). I would like to have the legend and tool tip change as well. Is there a why to do this without deleting and recreating the map and legend each time a user changes which property is selected?

Any assistance provided will be greatly appreciated.

Thank you,

Jay
Andrey
Telerik team
 answered on 23 Sep 2011
1 answer
126 views
We've recently made the switch from using RadRibbonBar to RadRibbonView, but have found a problem with tabs within contextual tabs. Using the WPF inspector, we can see that tabs in inactive contextual tab groups are given a width of 0, but the left and right margins remain as '2'.
We have about 35 contextual tab groups, so the problem is really noticable (see attached files - I've included a screenshot from the Contextual Tabs help page where it is also visible), we see the tabs shifting to the right while the contextual tab group header remains in the correct place.
I've tried using a style to set the visibility to collapsed when the width is 0, but according to WPF Inspector, the width is never actually defined. Is there another way around this, or will this be fixed in a future release?
Thanks.
Petar Mladenov
Telerik team
 answered on 23 Sep 2011
1 answer
108 views
We are using 2011 Q1.

I have a RadNumericUpDown setup as the following:

<telerik:RadNumericUpDown Margin="2" Name="GotoPageValue" IsInteger="True" Value="1" ValueChanged="GotoPageValue_ValueChanged" IsEnabled="False" IsEditable="True"></telerik:RadNumericUpDown>

NullValue is not set and when inspected under a debugger in the watch window, it looks like this:
NullValue=""

My problem is this.  When a user has navigated to a value like 2 using the up/down arrows, if they then highlight the value, delete it, and then hit the up arrow, the value always returns to 1.

The NullValue was previously set to 1 which I thought must be causing the problem, but after removing NullValue, the problem continued.

Basically inside the ValueChanged event and want to check if e.NewValue == null and if it is null, change e.NewValue to the previous value + 1.  Is this the wrong thing to do?

private void GotoPageValue_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
      {
         // has user cleared value manually?
         if (e.NewValue == null)
         {
            if (_pageNumber <= GotoPageValue.Maximum)
            {
               // reset back to previous value
               e.NewValue = _pageNumber;
            }
         }
 
         FireCommandActivated(SearchResultsNavigationToolbarCommand.GotoPageValue, e);
 
         // remember new value incase user clears value manually and hits up/down
         _pageNumber = (int)e.NewValue;
      }
Gleedo
Top achievements
Rank 1
 answered on 23 Sep 2011
1 answer
140 views
If I double click inside a cell, RowActivated is fired. If I double click on a row in the space to the right of my last column (empty space), RowActivated is not fired.

The row highlights continue to change as the mouse is moved in the empty space. It's more natural to assume that a double click should activate the row even if the cursor is in the empty space.

Is there a way to enable this?
Maya
Telerik team
 answered on 23 Sep 2011
1 answer
238 views
Hi

We have RadGridView with various columns which also includes some GridViewComboboxColumns. We are binding RadGridView with ObservableCollection. The combobox needs to be multi column with Autocomplete enabled on first columns.

As per telerik suggestions we are able to create custom gridviewcombobox with multiple columns but when combox box is opened the columns headers are missing.

Can you please help us in getting Multi Column Combobox that is placed in Grid with:
1. Combobox column headers visible
2. Auto complete enabled on first column of combobox.

Thanks,
Wajihuddin
Maya
Telerik team
 answered on 23 Sep 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?