Telerik Forums
UI for WPF Forum
3 answers
266 views
I have a docking system that has a few permanent and many dynamic possible panes or documentpanes. I set the serialization tags for the ones I want to be saved with the docking layout but I cannot seem to find a sure way to keep all other dynamic added panes from saving with the layout. Basically any items oftype radpane that do not have a serialization name I want to omit from the xml layout.

I have a routine that iterates the documenthost.items and removes any that are not names with one of the known pane names I want to keep. But I notice when debugging the items only contains ones with serialization tags, and I can see that the DocumentHost.Panes has many, these are the ones I do not want to keep...

(Called before saving docking layout)
(holderMain is documentHost, panesToKeep is array of panes by name we know we want to keep with the saved layout)
for(int p = 0; p<=holderMain.Items.Count; p++)
{
    try
    {
        RadPane pane = holderMain.Items[p] as RadPane;
        if (!panesToKeep.Contains(pane.Name)) pane.RemoveFromParent();
    }
    catch { }
}


But I still see in the saved xml that it contains various raddocumentpanes that have no serialization tags.
Rosen Vladimirov
Telerik team
 answered on 25 Jul 2013
3 answers
75 views
Hi All

When you Seletced a Appt the slot under this appt is not be selected.That`s mean when you using  CopyPaste if there are Appt(s) on a slot ,you can`t paste again.But DragDrop are woking if there are Appt(s) on a slot,you can drop again.

Thanks

Rosi
Telerik team
 answered on 25 Jul 2013
4 answers
920 views
Hi,

I'm developing a control that will run on a touch device on which all the thouch effects have been disabled.

In this control i need a GridView so actually I'm evaluating your library that seems to fit my needs except for one thing:

How can I disable the "Tap and Hold" gesture or at least prevent that displays a circle? (I'm working with Q2 2013 libraries)

Regards,
John



Nick
Telerik team
 answered on 25 Jul 2013
12 answers
137 views
Hi guys,

I've got to display data from different models in one gridview. The models have some common properties, but some models also have exclusiv properties.

My approach is to create a specific viewmodel type (derived from a common base viewmodel type) for every model type, that I need to display in the gridview. In the viewmodels I simply create a readonly property returning "NA" for those properties, that are not available at the corresponding model type.

So far so good, but there're two problems I can't solve:

  • Filtering and Sorting is gone (I'm a newbee and was hoping to be able to use the auto-creation of these features, which worked without my viewmodels.)
  • When trying to modify a dummy property (which has no setter and is supposed to be readonly) an exception occurs. (A TwoWay or OneWayToSource binding cannot work on the read-only property)

Here're examples of two viewmodels:

public class BaseItemViewModel : ViewModelBase
{
    private BaseItem _baseItem;
 
    public BaseItemViewModel(BaseItem baseItem)
    {
        _baseItem = baseItem;
    }
 
    public string ItemId
    {
        get
        {
            return _baseItem.ItemId;
        }
    }
 
    public string CollectionId
    {
        get
        {
            return _baseItem.CollectionId;
        }
    }
 
    public DateTime CreationDate
    {
        get
        {
            return _baseItem.CreationDate;
        }
    }
 
    public string Name
    {
        get
        {
            return "NA";
        }
    }
 
    public string Description
    {
        get
        {
            return "NA";
        }
    }
 
    public string CreatorCollectionId
    {
        get
        {
            return "NA";
        }
    }
}
 
 
public class ItemViewModel : ViewModelBase
{
    private Item _item;
 
    public ItemViewModel(Item item)
    {
        _item = item;
    }
 
    public string ItemId
    {
        get
        {
            return _item.ItemId;
        }
    }
 
    public string CollectionId
    {
        get
        {
            return _item.CollectionId;
        }
    }
 
    public DateTime CreationDate
    {
        get
        {
            return _item.CreationDate;
        }
    }
 
    public string Name
    {
        get
        {
            return _item.Name;
        }
        set
        {
            _item.Name = value;
        }
    }
 
    public string Description
    {
        get
        {
            return _item.Description;
        }
        set
        {
            _item.Description = value;
        }
    }
 
    public string CreatorCollectionId
    {
        get
        {
            return _item.CreatorCollectionId;
        }
        set
        {
            _item.CreatorCollectionId = value;
        }
    }
}


Any help is highly appreciated.

Cheers,

Jan
Yordanka
Telerik team
 answered on 25 Jul 2013
0 answers
104 views
Hi,

I have a layout requirement as shown in the attached image.

Basically:

There is multiple resources, belonging to the same resource group.
(I don't need those resource groups at all.)

All of them resources need to display stacked on top of each other ( 1st column )
2nd column represents the time of day (hour) part.
Top row carries the date part.

Should an appointment range two or more days, it is duplicated by ScheduleView.

Support already told me this would not be possible....

What I can get out of ScheduleView is very close to that, except for the resources
are rendered horizontally.

To me it seems this not something unusual when scheduling across multiple resources
in a daily manner.

Anyone?

Thanks Martin
Martin
Top achievements
Rank 1
 asked on 24 Jul 2013
1 answer
392 views
Hi

I need to do something that II assume is very simple and hope there is a simple example that I could reference or even better a code snippet.

Using Plain Text only
No special formatting is required except to recognize carriage return and tab

Set Line Spacing 1.0
Set FontSize 10

I tried changing those properties but my values were not effective

Paste from the clipboard a simple plain text string to the RichTextBox  (This makes up the complete document)

Read a text file into the RichTextBox This makes up the complete document)

Get complete data string from RichTextBox to string.

I can do this quite easily in Microsoft's RichTextBox but since the scrollbars look different than Teleriks scrollbars I can't use the microsoft RichTextBox.  .One feature of the microsoft RichTextBox that I like is when I copy the sql string from the Sql Server Data Management Studio and paste it to the RichTextBox it picks up the colors, font, fontsize etc.  I would like that but I can live without it.

Thanks
Rich
Petya
Telerik team
 answered on 24 Jul 2013
1 answer
251 views

In the Telerik Radtreeview I want some of the treeviewitems to be unSelectable until the previous steps are completed. In the background I have a Boolean property isSelectable which is Binded to the TreeviewItem Focusable Property. Before when I was using the windows TreeView Control this Focusable property made the treeviewitems to be UnSelected until the previous steps were completed which is a default behaviour in windows control. Now after converting to the telerik Radtreeview control I can select items even with focusable property set to false And also the treeviewitem are highlighted on hovering over the item. Is there a way I can make it to work so that on setting the RadTreeviewItem focusable property to false the respective Radtreeviewitems are not selectable and shouldn’t highlight on mouse over as a default Focus Behaviour?  following snippet and the screenshot attached is just an example to demonstrate the issue with the focusable property where even with focusable false category1 can be selected and highlighted.

Thanks.

Tina Stancheva
Telerik team
 answered on 24 Jul 2013
1 answer
130 views
Is it possible to put a RadContextMenu on a MapPolygon? I have tried and the menu does not show up on right-click.

Thanks,
Mike
Andrey
Telerik team
 answered on 24 Jul 2013
0 answers
78 views
Hi,

How can i drag an item from the first list and drop it inside an item in a second list, I want to drop it exactly in the item and not in the listbox control, as described in the attached image.

Many thanks.



Youness
Top achievements
Rank 1
 asked on 24 Jul 2013
1 answer
78 views

hi

I have used your cross-hair example but trying to extend it and having issues

I boiled it down to the code example below

1) Get a mouse position
2) Get the data representing that position
3) For that data, get the mouse position

how can these return different values?

regards
martin

            var plotAreaPanel = sender as ClipPanel;
            var mousePosition = e.GetPosition(plotAreaPanel);
           
            var dataAtMouse = _Chart.DefaultView.ChartArea.AxisX.ConvertPhysicalUnitsToData(mousePosition.X);
            var physicalAtMouse = _Chart.DefaultView.ChartArea.AxisX.ConvertDataUnitsToPhysical(dataAtMouse);

            if (mousePosition.X != physicalAtMouse)
            {
                Debug.Assert(false, "Should never happen");
            }

Petar Kirov
Telerik team
 answered on 24 Jul 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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?