Telerik Forums
UI for WPF Forum
1 answer
266 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
83 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
497 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
182 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
136 views
The TileList do not seem to support swiping with the mouse?
Maya
Telerik team
 answered on 28 Oct 2013
8 answers
953 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
168 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
172 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
240 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
7 answers
317 views
I have a radgrid that I am working on for a client that contains about 15 columns and at times upwards of 8k rows.

The crux of my situation lies in re-generating the collection that is the ItemsSource to the RadGrid.  On first load the data comes back (1000 records at a time) and loads into the grid smooth with everything operating as desired.  Now if I go and retrieve the exact same data set (or a different one) using the same call and getting the data 1000 records at a time...the loading dialog that I have in place freezes each time a new batch of 1000 records returns, presumably because the data is being drawn in the grid.

Keep in mind that during load the visibility of the grid is set to collapsed as I was trying to optimize performance when I realized that the true issue seems to be that after initial load the virtualization turns off and the subsequent loads then draw every item returned which is less then pretty.

Any thoughts/ideas would be welcome thanks!

Sorry I cannot provide the code and at this moment do not have time to write a demo, but the main issue here is that first load is GREAT!...any load there after unless you restart the app is slower when iteratively populating the collection the ItemsSource is 'OneWay' bound to.  And all styles being used for cells are implicit as to prevent each cell needing special treatment.
Dimitrina
Telerik team
 answered on 28 Oct 2013
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?