Telerik Forums
UI for WPF Forum
4 answers
138 views
In WPF telerik gridview control if you have a gridViewComboBoxColumn, during runtime I am seeing a problem:

1. Select the 'Click here to add new item' button to add a new row to the grid
2. click the comboxBox item (the DDLB) and select something from the drop down.
3. hit the 'tab' button on keyboard.
4. click the add new item button again.
5. click the combox item to open the drop down
*** at this point the combobox does not open or become selected, instead the row just adds without allowing any modification***

I am getting the same problem with your sample project as well as my project.
(sample I found at the link below)
http://www.telerik.com/community/forums/wpf/gridview/use-combobox-while-inserting-data.aspx

Has anybody else seen this issue and hopefully have a workaround?

Thanks again - Chris
Chris
Top achievements
Rank 1
 answered on 23 Sep 2011
1 answer
105 views
Hi,
My Treeview's ItemsOptionListType is set to CheckList and binded it with data. 
My requirement is:-
For some of treeviewitem's checkbox need to be Read only.
I am able to set IsEnable to 'false' in ItemContainerStyle then total item appearance is is disabled mode.
But i want to set IsReadOnly to True which is not available as i want to see same look for all treeview items.

Any Suggestions?


Petar Mladenov
Telerik team
 answered on 23 Sep 2011
1 answer
65 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
248 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
151 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.0K+ 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
114 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
107 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
122 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
102 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?