Telerik Forums
UI for WPF Forum
3 answers
230 views
Hello
I've tried to make some customization to SelectionMiniToolbar based on information found on this forum but have some troubles.
To create similar custom toolbar I've used original code however I cannot use it directly because of some properties that are not accessible
  • this.radRichTextBox.CurrentSpanStyle
  • this.radRichTextBox.CurrentParagraphStyle
  • currentSpanStyle.GetPropertyValueSource
  • ((ToggleCommandBase)this.radRichTextBox.Commands.ToggleNumberedCommand).GetToggleState()

Could you advice me how to implement the same (as example) SelectionMiniToolbar as CustomSelectionMiniToolbar?

There is other issue I have that causing me trouble when using default SelectionMiniToolbar. When I put following code for RichTextBox:

this.editor.FontFamily = new FontFamily("Arial");
this.editor.FontSize = Unit.PointToDip(12);
this.editor.DocumentInheritsDefaultStyleSettings = true;
The values on mini toolbar are ones I want however Font and FontSize combos are too big. They are using the same font size as I set for RichTextBox instead of default toolbar ones, which is causing that values are not fit and look ugly (too big).
Petya
Telerik team
 answered on 28 Oct 2013
1 answer
231 views
Hi All,

    How can i achieve tab control to have the title bar feature too,I need to place a logo and maximise,minimise buttons in tab control style
 as shown in the attachment.
Hristo
Telerik team
 answered on 28 Oct 2013
2 answers
51 views
Hi

I am looking for slide show on Windows 8 UI using WPF application. However I see tile types like singleton, double and quadruple. Is there any way to create tile of 3x2 singletons tile.

Appreciate your help.

Thanks and regards,
Alpesh
David
Top achievements
Rank 1
 answered on 28 Oct 2013
5 answers
410 views
I have the folowing use of RadTreeView. I use Telerik_2012_3_1129

I bind RadTreeView hierarchically to ObservableCollection<FilterTreeNode>

public class FilterTreeNode : NotificationObject
{
  private ToggleState _checkState = ToggleState.On;
  protected ObservableCollection<FilterTreeNode> _children;
 
  public ToggleState CheckState
  {
     get { return _checkState; }
     set
     {
        if (_checkState != value)
        {
           _checkState = value;
           RaisePropertyChanged(()=>CheckState);
        }
     }
  }
 
  public ObservableCollection<FilterTreeNode> Children
  {
     get { return _children; }
     set
     {
        if (_children != value)
        {
           _children = value;
           RaisePropertyChanged(() => Children);
        }
     }
  }
}

For the RadTreeView ItemContainerStyle I use following style:

<Style x:Key="ItemContainerStyle" TargetType="telerik:RadTreeViewItem">
    <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
    <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
    <Setter Property="CheckState" Value="{Binding CheckState, Mode=TwoWay}" />
    <Setter Property="MinHeight" Value="0"></Setter>
</Style>

 Steps of usage:
 1. I initialize observable collection with few levels, eg. L1, L2, L3 (Items from level L1 are expanded by default). Item1 in L2 contains few items.
 2. I bind this observable collection to the tree. Everything is working correctly.
 3. After a while in separate thread I finds new element that I need to add to the Item1 (from the level L2) which wasn't expanded yet, but it have few items.
 4. I use Application.Current.Dispatcher.Invoke((Action) (AddRecordsFromQueue)) method to add these new elements to the tree in UI thread.
 5. I create FilterTreeNode class for the new element and by default this class have _checkState = ToggleState.On
 6. I add this new element to _children collection of element Item1
 7. AND THAN: suddenly Item1 is unchecked automatically in the tree :(
 
  I tried to investigate this and looked into the RadTreeViewItem code which is invoked in stack trace when its CheckState is changing to ToggleState.Off
 
 So what is happening:
1. MeassureOverride is invoked on RadTreeViewItem related to my Item1.
2. In MeasureOverride the method this.SetCheckStateWithNoPropagation(RadTreeViewItem.CalculateItemCheckState(this));
3. In CalculateItemCheckState the following code is invoked:

...
 
ToggleState state = ToggleState.Off;
if (item.Items.Count > 0)
{
    if (checkedCount == item.Items.Count)
    {
        state = ToggleState.On;
    }
    else if (checkedCount + indetermCount > 0)
    {
        state = ToggleState.Indeterminate;
    }
}
else
{
    state = item.CheckState;
}
 
return state;


5. Previous method probably returns ToggleState.Off and set in to the RadTreeViewItem
6. Via binding the CheckState in my Item1 is set to ToggleState.Off


First, the logic in the CalculateItemCheckState is interesting. Why Parent item gets CheckState set to ToggleState.Indeterminate when it contains at least 1 child in ToggleState.Indeterminate state? This is strange behaviour. I think some users (e.g. me) would like to have parent node checked no matter what are the states of its children.

Second, the most important is that before the CheckState in the Item1 was automatically set to ToggleState.Off there was no checking of the CheckState of the child items (I checked it by putting breakpoint in getter). So probably UI children of Item1 weren't created yet or they were created but wasn't binded yet to the underlying FilterTreeNode objects, so RadTreeViewItems had ToggleState.Indeterminate state before binding.
Probably children UI items wasn't created yet if parent wasn't expanded, so in that case the logic in section 3 should return the current CheckState of the item, but somehow it returns ToggleState.Off.

I also tested the case when I have Item1 expanded before this new element is added. In this case the CheckState of Item1 is automatically set to ToggleState.Indeterminate.



So, am I doing something wrong or it is a bug? What can I do to stop getting my tree nodes unchecked automatically? I think that if it is a bug not just my bad usage of this control than it is critical.

I think that this problem is also somehow related to these 2 problems:
http://www.telerik.com/community/forums/wpf/treeview/binding-to-checkstate.aspx
http://www.telerik.com/community/forums/wpf/treeview/databinding-for-checkstate.aspx


Regards,
Adrian
Tina Stancheva
Telerik team
 answered on 28 Oct 2013
1 answer
160 views

Hi,
I am using Radscheduleview control in my application.I wanted to check if  “Radscheduleview”  telerik control has option to select timeslots and display only the selected timeslots .

 
Currently I can filter the timeslot by setting start time and end time in Radscheduleview.
Example:  If Start time - 8:00 PM and End time - 11:00 PM  
Radscheduleview displays the timeslot as below (in week view) :

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Sunday

8:00 PM

 

 

 

 

 

 

 

8:30PM

 

 

 

 

 

 

 

9:00PM

 

 

 

 

 

 

 

9:30PM

 

 

 

 

 

 

 

10:00PM

 

 

 

 

 

 

 

10:30PM

 

 

 

 

 

 

 

 
Please let me know whether the time slot in Radschedview (week view) can be implemented as shown below.

If  user wants to see only for 8 , 8:30 ,10,11 then grid has to be displayed as :

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Sunday

8:00 PM

 

 

 

 

 

 

 

8:30PM

 

 

 

 

 

 

 

10:00PM

 

 

 

 

 

 

 

11:00PM

 

 

 

 

 

 

 


Thanks,
Konstantina
Telerik team
 answered on 28 Oct 2013
1 answer
112 views
The TileList do not seem to support swiping with the mouse?
Maya
Telerik team
 answered on 28 Oct 2013
8 answers
835 views
Hi..
How do you handle the selection change of a GridViewComboBox? What event should I use? I Don't see a selectionchange.
When the value changes I want to populate other columns in the grid with portions of the data. Any idea how I can do that?
thanks in advance
Yoan
Telerik team
 answered on 28 Oct 2013
3 answers
143 views

Putting a simple button in a Tile, but not getting any click event?

<telerik:RadTileList CanUserSelect="false" >
    <telerik:Tile TileType="Single">
        <Button Content="Hello" Click="ClickMe" />
    </telerik:Tile>
</telerik:RadTileList>
Maya
Telerik team
 answered on 28 Oct 2013
3 answers
127 views
Hi,

I use version 2013.2.611.40

My scenario is:
1. Opening application.
2. Adding RadPane with serialization tag = "abc"
3. Saving layout.
4. Closing application.
5. Opening application.
6. Loading layout..... than crash.

Crash is probably because I didn't add RadPane with serialization tag = "abc" and while loading RadDocking cannot find such RadPane and crashes.

Is this the case that loading process requires all the RadPane which were saved to be present during the load?
If so, than this is a critical bug because layout cannot be loaded.

Regards,
Adrian
Rosen Vladimirov
Telerik team
 answered on 28 Oct 2013
3 answers
202 views
Hi,
I'm using the latest version of telerik controls, and I wonder is it possible to set the culture for numbers shown in Pivot Grid.
There is an option to change the number format in the RadPivotFieldList control and in PropertyAggregateDescription class, but not for culture information.

Thanks.

Regards,
Gong
Rosen Vladimirov
Telerik team
 answered on 28 Oct 2013
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?