Telerik Forums
UI for WPF Forum
0 answers
112 views
Sorry, Problem solved, this is not due to RadDocking implementation but application bug.
Please ignore this issue
Thanks

********************************
Hi, 

Basically in my main window i have a left hand browse list and right hand side document host displaying radpane in tab form using MVVM  


     
<telerik:RadDocking Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="0" Padding="0" IsEnabled="{Binding Path=IsWebLoading, Converter={StaticResource ibcConverter}}" PreviewClose="RadDocking_PreviewClose">
        <telerik:RadSplitContainer InitialPosition="DockedLeft">
            <telerik:RadPaneGroup>
                <telerik:RadPane  Header="Menu" telerik:RadDocking.SerializationTag="PaneLeft">
                    <views:BrowsePanelView Margin="0" VerticalAlignment="Stretch"  x:Name="browsePanelView" DataContext="{Binding Path=BrowsePaneVM}"/>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
      
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup modules:PaneGroupExtensions.ItemsSource="{Binding Path=DocPanelTabCollection}" SelectionChanged="RadPaneGroup_SelectionChanged"
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>     
    </telerik:RadDocking>


However, i encountered strange behavior, i.e. the child control inside the RadPane does not have Mouse Hover effect (neither Left or right hand side), i.e. the cursor will not turn to "hand" when mouse over a button or a link inside the child control. But mouse click function work as per normal.

Anything i did wrong here?

Thank you

Shengwei
Top achievements
Rank 1
 asked on 19 Nov 2013
2 answers
88 views
As per message subject, does radPropertyGrid support RegularExpressionAttribute for validation? I can't find a mention in documentation.


Andrea
Top achievements
Rank 1
 answered on 18 Nov 2013
1 answer
74 views
Hallo,
I need lock moving appointment between resources, but leave moving appointment inside its resource.
How can I do that?

Thanks
Kalin
Telerik team
 answered on 18 Nov 2013
4 answers
165 views
Hello, when selecting a cell, the row is highlighted. I would like to have the cells on selection by column, not by row. I'm using dynamic columns, so I'm not sure how to do this. I tried e.Cell.Background = Brushes.Red; at the cell level but the colors didn't change.

Thanks,
Scott
Yoan
Telerik team
 answered on 18 Nov 2013
1 answer
125 views
Hi I am currently evaluating telerik silverlight controls. In richtextbox if try to type using google input tools for unicode inputs such as hindi, marathi I am facing cursor alignment issue. When i type one word its fine but next word comes to left of first word instead it should be at right of first word. 
Petya
Telerik team
 answered on 18 Nov 2013
1 answer
64 views
Hallo,
I add a custom context menu to schedule view. 
When I click over a slot (empty slot or not) I need retrieve current resource where the slot is in.
How can I do that?

Thanks
Rosi
Telerik team
 answered on 18 Nov 2013
1 answer
252 views
We are using the RadGridView with a VirtualQueryableCollectionView as Itemsource using WPF and EF. 
This works great for paging and scrolling, however we can't figure out how to deal with the following situation:

- We sort the grid by a property, name for instance. 
- Then, outside of the grid, the name property is altered
- Our viewmodel receives a message that the item has changed

What we want to do now, is to refresh the grid, with the current item still selected.
However, since the name has changed, we don't know the index that has to be queried to get the item with the id of the changed item.

So the question is: knowing the ID of an entity, how can you make VirtualQueryableCollectionView load the item with that ID into the grid?The same situation arises when we want to select a entity (with known id) that has been newly created outside of the viewmodel.


We use the following VirtualQueryableCollectionViewHelper to create the set the VirtualQueryableCollecitonView.

 QueryGenerator(QueryableXenoxContext) returns an EntityQuery


public class VirtualQueryableCollectionViewHelper<T> where T : Entity
{
    public IEventAggregator EventAggregator { get; set; }
    public VirtualQueryableCollectionViewHelper(Func<QueryableXenoxContext, EntityQuery<T>> queryGenerator, queryableXenoxContext queryableXenoxContext, XenoxGridView gridView)
    {
        EventAggregator = ClientIocContainer.Instance.GetExportedValue<IEventAggregator>();
        QueryGenerator = queryGenerator;
        QueryableXenoxContext = queryableXenoxContext;
        GridviewControl = gridView;
        DoNothing = i => { };
 
        View = new VirtualQueryableCollectionView<T>
        {
            LoadSize = 30,
            VirtualItemCount = 100
        };
 
        View.ItemsLoading += (sender, args) => LoadInternal(args.StartIndex, args.ItemCount, DoNothing);
 
 
        View.FilterDescriptors.CollectionChanged += (sender, args) => LoadInternal(0, View.LoadSize, DoNothing);
        View.FilterDescriptors.ItemChanged += (sender, args) => LoadInternal(0, View.LoadSize, DoNothing);
        View.SortDescriptors.CollectionChanged += (sender, args) => LoadInternal(0, View.LoadSize, DoNothing);
 
        if (gridView == null)
        {
            ScrollIndexIntoView = DoNothing;
        }
        else
        {
            ScrollIndexIntoView = i => gridView.ScrollIndexIntoCenterOfView(i);
        }
    }
     
    public void Load(int currentIndex, int pageSize)
    {
        LoadInternal(currentIndex, pageSize, ScrollIndexIntoView);
    }
 
 
    public void Refresh(bool scrollToIndex = false, int currentIndex = 0)
    {
        var postLoadAction = scrollToIndex ? ScrollIndexIntoView : DoNothing;
        LoadInternal(currentIndex, View.LoadSize, postLoadAction);
    }
 
    public IEnumerable<T> GetAllCollectionItems()
    {
        return QueryableXenoxContext.Load(QueryGenerator(QueryableXenoxContext)).Entities;
    }
 
    private void LoadInternal(int currentIndex, int pageSize, Action<int> onLoaded)
    {
        if (currentIndex < 0) currentIndex = 0;
        //also load content above current item
        pageSize = pageSize*2;
        var loadStartIndex = currentIndex - pageSize / 2 < 0 ? 0 : currentIndex - pageSize / 2;
 
        var entityQuery =
            QueryGenerator(QueryableXenoxContext)
                .Sort(View.SortDescriptors)
                .Where(View.FilterDescriptors)
                .Skip(loadStartIndex)
                .Take(pageSize);
 
        entityQuery.IncludeTotalCount = true;
 
        try
        {
            QueryableXenoxContext.Load(entityQuery, LoadBehavior.RefreshCurrent, lo => {
                if (lo.TotalEntityCount != -1 && lo.TotalEntityCount != View.VirtualItemCount) {
                    View.VirtualItemCount = lo.TotalEntityCount;
                }
 
                View.Load(loadStartIndex, lo.Entities);
 
                onLoaded(currentIndex);
            }, null);
        }
        catch (InvalidOperationException)
        {
            EventAggregator.Publish(new ErrorReportedEvent("Error loading items. Possible cause: too many items selected"));
        }
    }

Dimitrina
Telerik team
 answered on 18 Nov 2013
6 answers
214 views
Hi,

i got an error while the busy indicator is busy over the radtreelistview gridviewrow background. What can i do to remove the gray area?

Please have a look on my attached file radtreelistview_busyindicator.png.

Thanks for your help.
Vanya Pavlova
Telerik team
 answered on 18 Nov 2013
5 answers
152 views
Hello. I have a problem with row double click. I use next code:

protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            var element = InputHitTest(e.GetPosition(GetRowForItem(SelectedItem)));
            if (element != null)
            {
                if (DoubleClickCommand != null && DoubleClickCommand.CanExecute(DoubleClickCommandParameter))
                    DoubleClickCommand.Execute(DoubleClickCommandParameter);
            }
                 
            base.OnMouseDoubleClick(e);
        }

And some times InputHitTest return null. I can see that it happens when I scroll (Horizontal) to the right to the columns which aren't located in visible area. But if I resize gridView and some new columns will be located in visible area, InputHitTest will return right value. (My visual tree = RadDocumentPane -> ScrollViewer -> Canvas -> ContentControl -> RadGridView) Thanks.
Nick
Telerik team
 answered on 18 Nov 2013
5 answers
427 views
Hello,
I have a RadWindow with just a label and a textbox :

<telerik:RadWindow x:Class="TestWpf.MainWindow"    
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"    
        Header="Test" Width="400" Height="200"    
        FocusManager.FocusedElement="{Binding ElementName=tbxUser}">     
    <Grid>    
        <Label Content="User : " Height="28" Name="lblUser" />    
        <TextBox Height="23" Name="tbxUser" Width="120"/>     
    </Grid>    
</telerik:RadWindow> 

When I open the window I would have the focus in the textbox. So I add the FocusManager.FocusedElement attribute to the RadWindow but it doesn't work.
If I transform RadWindow to standard Window it works.
Is there another way to do this ?

Thanks in advance for your answer.
Dan
Top achievements
Rank 1
 answered on 17 Nov 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
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?