Telerik Forums
UI for WPF Forum
2 answers
252 views
I'm thoroughly confused.. Please help.
Then following xaml displays two columns of text, followed by two columns of checkboxes... But you can see that the third column, "tight Hole" does not define a checkbox style. I removed the cell header style also, and I still have a checkbox column there! What am I doing wrong? 

<telerik:RadGridView.Columns>
     <telerik:GridViewDataColumn Header="Property ID" DataMemberBinding="{Binding PropertyID}"              IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" TextAlignment="Left" />
       <telerik:GridViewDataColumn Header="Property Name" DataMemberBinding="{Binding Property.PropertyName}" IsReadOnly="True" HeaderCellStyle="{StaticResource HeaderStyle}" Width="200" TextAlignment="Left" />
       <telerik:GridViewDataColumn Header="Tight Hole" DataMemberBinding="{Binding Property.TightHole}"       IsReadOnly="True" Width="100" TextAlignment="Left"  />
        <telerik:GridViewCheckBoxColumn Header="Read Only" DataMemberBinding="{Binding ReadOnly}"              IsReadOnly="False" HeaderCellStyle="{StaticResource HeaderStyle}" Width="100" CellStyle="{StaticResource StyleChkBoxCenter}" />

Just for FYI purposes, I define the Grid like this: 

<telerik:RadGridView x:Name="gvProperties" Grid.Row="2" 
                                                 ItemsSource="{Binding WellAssignments}"
                                                 Margin="0,5,0,0"
                                                 AutoGenerateColumns="False" CanUserFreezeColumns="False" 
                                                 CanUserDeleteRows="True" CanUserInsertRows="False" ShowGroupPanel="False" 
                                                 IsFilteringAllowed="False" IsReadOnly="False"
                                                 EnableLostFocusSelectedState="False"
                                                 GridLinesVisibility="None" 
                                                 ScrollMode="RealTime"
                                                 SelectionMode="Extended"
                                                 IsSynchronizedWithCurrentItem="True"
                                         >

The attached images show what I have and what I need. I need that third column to be text!

Richard
Top achievements
Rank 1
 answered on 19 Jan 2015
1 answer
115 views
Hallo Telerik-Team,

in our application we want to display empty rows in the ScheduleView. These rows are readonly and will have a special look.
My idea was to create a special kind of Resource (SpacerResource) with a custom style. This works fine and I can add them between the other resources to insert the empty rows. I also generate a readonly SpacerSlot to which I add all the SpacerResources. A custom SpecialSlotStyleSelector is used to display the empty rows the way we want. This also works fine.

Now for the problem: If no SpacerRow is added to the resources and therefore the SpacerSlot.Resources list is empty, drag&drop of our Appointments does not work anymore. Note that the SpacerSlot is always added to the list of special slots, even when no SpacerResource instances exist. If I add a SpacerResource and "register" it in the SpacerSlot, the drag&drop works again. The ScheduleView is used in TimeLineView only.

To me this seems to be a bug. Would you please tell me if I do something wrong or if this is indeed an incorrect behavior?

The special slot is created like this:
01.public static Slot GenerateSpacerSlot(DateTime viewportStart, DateTime viewportEnd)
02. {
03.   return new Slot()
04.   {
05.    Start = viewportStart.StartOfDay(),
06.    End   = viewportEnd.EndOfDay(),
07.    IsReadOnly = true,
08.    TimeZone = TimeZoneInfo.Utc,
09.    RecurrencePattern = new RecurrencePattern(
10.        null,
11.        RecurrenceDays.EveryDay,
12.        RecurrenceFrequency.Weekly,
13.        1,
14.        null,
15.        null)
16.   };
17.}

The parameters define the current viewport displayed. StartOfDay() and EndOfDay() are custom extension methods.


Regards,

Hendrik 
Kalin
Telerik team
 answered on 19 Jan 2015
1 answer
113 views
Hi,

I've been playing with the online demo and the trial version of the RadSpreadSheet. It looks great, but the only thing that is making me a little reserved about possibly purchasing the product is that I can't seem to copy a RadSpreadsheet with all of it's formatting to an Excel spreadsheet. It will only paste as Text in the Excel spreadsheet with no formatting. I even tried in the online demos, and it still didn't work. Is there any way to paste a RadSpreadsheet with all of it's formatting to an Excel spreadsheet retaining all of the RadSreadsheet's formatting?

Thanks,
Roman
Anna
Telerik team
 answered on 19 Jan 2015
2 answers
320 views
Hello

Where can I find older dll files from UI For WPF package?
Pawel
Top achievements
Rank 1
 answered on 19 Jan 2015
3 answers
47 views
GridView V2014.1.0428.45

So I have the following GridViewDataColumn.  Everything was working fine with the editing binding until I added the DataMemberBinding to the GridViewDataColumn header to facilitate sorting.

<telerikGrid:GridViewDataColumn IsReadOnly="{Binding Data.IsReadOnly, Source={StaticResource bindingProxy}}"
                                                            Header="Public Domain" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" Width="100"
                                                            DataMemberBinding="{Binding PublicDomain}">
                                <telerikGrid:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding PublicDomain}" />
                                    </DataTemplate>
                                </telerikGrid:GridViewDataColumn.CellTemplate>
                                <telerikGrid:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding PublicDomain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                 PreviewTextInput="PublicDomainTextBox_PreviewTextInput" />
                                    </DataTemplate>
                                </telerikGrid:GridViewDataColumn.CellEditTemplate>
                            </telerikGrid:GridViewDataColumn>

Once I added the DataMemberBinding to the ColumnHeader, now when I navigate out of this cell on the Grid, I get an additional set to PublicDomain that sets it back to null, no matter what the user has typed into the TextBox.  I've verified that taking out the DataMemberBinding returns things to working.

My understanding was that adding that DataMemberBinding shouldn't change the behavior of the CellEditTemplate.  Is there something else that's been done wrong here that could be causing the binding to not work properly once DataMemberBinding is set?

Thanks.

Dimitrina
Telerik team
 answered on 17 Jan 2015
3 answers
250 views
Hello,

Currently I am trying to use implicit styles with the RadDocking control but I am having an issue with the dragged floating windows.  When I attempt to drag a pane to move it elsewhere on the UI it goes invisible as soon as I start the drag.  When I drag the cursors around the screen I still get the compass appearing as if to dock at a specific direction.  Then when I drop them at one of the targets it rehosts the radpane but now without a header and can no longer drag it.  

I am trying to start with the default style then modify it to fit my UI requirements but I can't even get the untouched style to work right.

Additional Information:
1. I am using an MVVM approach.  I have a list of objects that is bound to the PaneSource and the RadDocking control is creating the correct number of segments according to the bound list.
2. I am using the No Xaml dlls provided.
3. I have copied the necessary xaml files into project and have them referenced in a merged resource dictionary inside my user control.  (I have not modified these)
     a. System.Windows.Xaml
     b. Telerik.Windows.Controls.xaml
     c. Telerik.Windows.Controls.Docking.xaml
     d. Telerik.Windows.Controls.Navigation.xaml
4. I am using the Q1 2014 version of the control.  

Nasko
Telerik team
 answered on 16 Jan 2015
2 answers
212 views
I've created a small application with a View and ViewModel.

In the view a PropertyGrid is used it  edit the properties from the ViewModel based on data annotations.

The ViewModel contains two properties:
    “SelectedBrand”            - the currently selected brand
    “Brands”                        - a list of all available brands.

The PropertyGrid should provide a ComboBox to edit the “SelectedBrand” and should hide the “Brands”.

So I’ve annotated “Brands”  with a “Browsable(false)” and “SelectedBrand” with a “Editor(typeof(RadComboBox))” attribute.

This works so far quite well.

Now here’s the catch: How do I tell the editor, that the “Brands” should be used as ItemsSource for  the ComboBox ?

Right now the combo box is just empty.

Thanksin advance
Stefan
Telerik team
 answered on 16 Jan 2015
3 answers
396 views
Hi All,
i am not able to find a find a load on demand combobox in wpf that populates itself depending on what is typed in the combobox.
Can anyone help me out...
Kalin
Telerik team
 answered on 16 Jan 2015
3 answers
137 views
Hello, two questions in one thread:

1. Is there any way to get real-time changes in VisiblePeriodStart and VisiblePeriodEnd?

2. I have a TimeBar whose PeriodEnd changes several times a second, and double-clicking to maximize the TimeBar's visible period doesn't cause the TimeBar to keep up with new PeriodEnd changes. Is there any way to set the TimeBar to auto-expand its visible period in code-behind?

Thank you!
Martin Ivanov
Telerik team
 answered on 16 Jan 2015
3 answers
149 views
Hi, 
I have a problem with using RichTextBox's context menu on computer with touchscreen.
When i use right button of mouse or right button of touchpad it works fine but when i use stylus the context menu not shows. 
When i holding stylus on a RichTextBox context menu Circle appears but no context menu shows up.

I use Windows 7 OS.

Please help.
Svetoslav
Telerik team
 answered on 16 Jan 2015
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?