Telerik Forums
UI for WPF Forum
3 answers
58 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
804 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
119 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
80 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
300 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
217 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
105 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
65 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
65 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
1 answer
1.0K+ views
Hi

I want to remove the expander button icon?

So Which Property of this control need to change or how to define style for this.

for reference I have attached a image having a red circular part wants to remove from the expander control.

hope you will help.


Regards

Sopan Vaidya
Petar Mladenov
Telerik team
 answered on 24 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?