Telerik Forums
UI for WPF Forum
3 answers
121 views
Normally if user select text in web page and paste to MS Word or Excel file the pasted text should retains the same format as source text. The font color, size and font family info should be copied either. As required I have applied font family Courier New onto the RadGridView. However if I select cell in grid and paste to MS word the font family was gone and the pasted text is in New Times Roman and size of 12. How can I retain the format when the grid is in selection mode of extend and selection unit of cell ?
Vlad
Telerik team
 answered on 12 Oct 2012
4 answers
115 views
Hi,

I am using RadGridView to select itemsfrom a database to be archived to an external drive, applying complex filters in code-behind, I then need to iterate RadGridView.Items, however because I am also using a RadPager control, I can only access up to a complete page full (in this case 25). How do I iterate all items that are currently available.

Best regards
Peter
Peter
Top achievements
Rank 1
 answered on 12 Oct 2012
0 answers
100 views
Hi.

        I am creating a class library with user controls containing raddiagram, raddiagramthumbnail, settingspane. when i refer this .dll in another application, the calling application also need to refer telerik.windows.controls.input.dll. if not reffered in the calling application, it generates exception saying failed to load particular dll. in case of calling from .net application, i can reffer the dll and problem is solved. but now i need to refer that .dll in vb6.0 application by creating .tlb for that class library. as i cant refer the telerik.windows.controls.input.dll in vb6.0, the same failed to load .dll problem is occurring. can some one please help me.....?


Thanks And Regards
   Koteswararao.M
Koti
Top achievements
Rank 1
 asked on 12 Oct 2012
4 answers
215 views
Putting some feelers out there... we are using a navigation pane in our software and call different pages into that view.  One of them is RadScheduleView.  We use a scrollviewer around the navigation pane to supply scrolling where the pages are too large for the resolution, but in the case of RadScheduleView, we want to envoke it's own scrollbars;  but it seems display the entire day instead, using the parent ScrollViewer.

I did see one thread that said ScheduleView wasn't designed to be put in ScrollViewer:  http://www.telerik.com/community/forums/wpf/scheduleview/disable-scrollbars-and-move-scheduleview-inside-scrollviewer.aspx

Given the architecture of our software package, I'd appreciate some advice on how to tell the ScheduleView to use the parent's boundaries instead of sizing to the maximum height. 

I've attached a PNG for clarification.

Any help is greatly appreciated.
Spurk
Top achievements
Rank 1
 answered on 11 Oct 2012
4 answers
399 views
The documentation for How to Remove the Header of the PadPane clearly states that setting the RadDocumentPane Visibility to Collapsed and the CanUserClose to False will remove the Tab and Gray area; yet as illustrated in attached image this is not exactly the case. 

Apparently I am missing something.

Any help would be appreciated,
Steve
Steve
Top achievements
Rank 1
 answered on 11 Oct 2012
0 answers
108 views

When I click on a row in my TreeListView, I get a NullReferenceException error in my SelectionChanged method:

<telerik:RadTreeListView Name="equipmentTreeView" Margin="8" Background="Beige"
                     ItemsSource="{Binding FirstGeneration}"
                     telerik:StyleManager.Theme="Vista"  IsDragDropEnabled="True"
                     SelectionMode="Single"
                     SelectionUnit="FullRow"
                     SelectionChanged="equipmentTreeView_SelectionChanged"
                     IsSynchronizedWithCurrentItem="False"
                     AutoGenerateColumns="False" >
   
  <telerik:RadTreeListView.ChildTableDefinitions>
    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
  </telerik:RadTreeListView.ChildTableDefinitions>
  <telerik:RadTreeListView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding TagName}"
                                Header="{l:Translate ModuleEquipmentNavigator_ColumnHeaderTag}"
                                Width="Auto"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding Description}"
                                Header="{l:Translate ModuleEquipmentNavigator_ColumnHeaderDesc}"
                                Width="Auto"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding ImportedEquipmentType}"
                                Header="{l:Translate ModuleEquipmentNavigator_ColumnHeaderIET}"
                                Width="Auto"/>       
  </telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>

 

public class AssetRowItem
{
    public string TagName { get; set; }
    public string Description { get; set; }
    public string ImportedEquipmentType { get; set; }
}



private void equipmentTreeView_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
    AssetRowItem aRI = this.equipmentTreeView.SelectedItem as AssetRowItem;
 
    string message = string.Format("Tag Name: {0} \n Description: {1} \n Imported Equipment Type: {2}",
                            aRI.TagName,
                            aRI.Description,
                            aRI.ImportedEquipmentType);
    MessageBox.Show(message);
 
}


 

 

 

 

 

Rob
Top achievements
Rank 1
 asked on 11 Oct 2012
0 answers
122 views
I have following window:

<telerik:RadWindow x:Class="IdealHost.FaceToFace.Controls.MessageBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" MinHeight="140" MinWidth="300"
                   WindowStartupLocation="CenterOwner" ResizeMode="NoResize"  >
 
<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="1" Margin="15,10,15,10" Name="txtMessage" />
 
          </Grid>
</telerik:RadWindow>

When I'm assigning text using following code:

this.txtMessage.Text = message;

The window is propery resized to size of text.

But when I change TexBlock to use Binding:

<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="1" Margin="15,10,15,10" Text="{Binding Message}"/>

The window is not automatically resizing. And text is cut.

How can I fix this issue? I realy would like to use binding not direct code.
Marcin
Top achievements
Rank 1
Veteran
 asked on 11 Oct 2012
3 answers
118 views
Hi,

i'm using wpf and RadControls, I bound my Dataform to an ObservableCollection.
I like to add a new item to my Collection on "EditEnded".
private void VerbindungForm1_EditEnded(object sender, Telerik.Windows.Controls.Data.DataForm.EditEndedEventArgs e)
{
    if (e.EditAction == Telerik.Windows.Controls.Data.DataForm.EditAction.Commit)
    {
       ??????????
    }
}

But how do i get the new Item ???
Thanks a lot
best Regards
Ww
Ivan Ivanov
Telerik team
 answered on 11 Oct 2012
1 answer
291 views
I used the Style prsented in the following post to get rid of the dotted border in the RadTreeView, and looked for a similar solution for the RadListBox, but couldn't find anything in the RasListBox Style.  Does anyone know of a way to remove the dotted border so I can have a consistent RadListBox and RadTreeView UI?

Remove black dotted border around RadTreeViewItem (or ...


Thanks in advance,
Steve
Masha
Telerik team
 answered on 11 Oct 2012
4 answers
61 views
Hi folks,

Wondering if anyone can point me in the right direction to modify the style of the RadWindow that the EditAppointmentTemplate is hosted in? 

-Sheldon
Spurk
Top achievements
Rank 1
 answered on 11 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?