Telerik Forums
UI for WPF Forum
1 answer
132 views
I have a ribbonview with 2 close buttons.
Only one button is visible at a time using the visible property binding
The problem is that when I use the KeyTip for the close button (CS for both) the first
command always fires even if that button is not visible.
I would think that it should skip over the invisible button and fire the command for the
second button.
Is this a bug/missing functionality or expected behaviour?
  




          
<!--  Close SIN (Client Info)  -->                            <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseClientInformationCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close_SIN],                                                     FallbackValue='Close',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_Client_Info_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotGeneralInquiry,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />                       <!--  Close General Inquiry  -->                      <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseGeneralInquiryCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close],                                                     FallbackValue='Close SIN',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_General_Inquiry_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotClientInformation,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />
Tina Stancheva
Telerik team
 answered on 28 May 2012
3 answers
144 views
I have the following code in my RowActivated EventHandler

private void dgv_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e)
{
            dgv.SelectedItems.Clear();
 
                foreach (var t in collection)
                {
                    dgv.SelectedItems.Add(t);
                }
}

I have SelectionUnit="FullRow" and SelectionMode="Extended" 

The problem is that the rows are highlighted for a second, then only the row I double clicked on remains highlighted. Is there any way to do this?

Nedyalko Nikolov
Telerik team
 answered on 28 May 2012
1 answer
205 views
Hello,

According to this thread  (see Konstantina's answer), pressing the "Escape"  key with the Confirm dialog opened should return false.

But the following sample returns true:
bool? dialogResult = null;
Telerik.Windows.Controls.RadWindow.Confirm(
new Telerik.Windows.Controls.DialogParameters()
{
Closed = (w, e) =>
{
       dialogResult = e.DialogResult;
}
});

Is this the expected result? I would think escape would return false.

Thanks,

Simon

Konstantina
Telerik team
 answered on 28 May 2012
1 answer
93 views
Hi,

I  am using a RAD control (combobox) in my application that is a type of custom IDE, i am facing an issue with the combobox when i use it within a Isolated shell custom IDE. The issue description is as follows:-

When i click on the combobox the drop down opens and if i click on any other control or i click on the page that is contained in the IDE the drop down closes. However if i click and open the drop down and insted click on the header of the IDE (i.e. the top most part of the IDE, where the logo is diaplyed) the drop down will not close,

also if i resize the IDE and and move the window around the drop down list persists on the same position where it was opened as if it was no way attached to the combobox.

Instead if i use a normal WPF combobox it behaves normally and the drop down closes on clicking the IDE header also.

Please suggest what can be done in order to resolve the issue.

Regards,

Avinash Saxena
Boyan
Telerik team
 answered on 28 May 2012
6 answers
308 views
Hi,

How do I go about getting the character position along a given line wherever the caret is placed?

I can get the CaretPosition easily enough, but the I don't want the X & Y coordinates. I need to count how many characters there are along a line up to where the caret is placed.

Thanks for your time,

Rob
Martin Ivanov
Telerik team
 answered on 28 May 2012
1 answer
183 views
Hi,

How can i bind DocumentSource to a PDF file in network path. 

//property
public string FilePath
{
get; set;
}
DocumentSource = {Binding Filepath}

Thanks in Advance.



Kammen
Telerik team
 answered on 28 May 2012
1 answer
137 views
Could not load file or assembly 'Telerik.Windows.Documents.FormatProviders.Rtf, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.

[oops hit enter too early]

 
  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
  xmlns:telerikRTF="clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents.FormatProviders.Rt
  xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

<
telerik:RadGridView ItemsSource="{Binding Equipments}" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" IsSynchronizedWithCurrentItem="True" IsReadOnly="True" >
     <telerikGridView:RadGridView.Columns>
         <telerikGridView:GridViewDataColumn Header="Notes" IsReadOnly="true" IsFilterable="False" IsGroupable="False" IsSortable="False">
             <telerikGridView:GridViewDataColumn.CellTemplate>
                 <DataTemplate>
                     <Grid>
                         <telerikRTF:RtfDataProvider Name="rtfDataProvider" Rtf="{Binding Path=CalibrationInstructions, Mode=TwoWay}"
                 RichTextBox="{Binding ElementName=TextBoxCalibrate}"/>
 
                         <telerik:RadRichTextBox Name="TextBoxCalibrate">
 
                         </telerik:RadRichTextBox>
                     </Grid>
                 </DataTemplate>
             </telerikGridView:GridViewDataColumn.CellTemplate>
         </telerikGridView:GridViewDataColumn>
     </telerikGridView:RadGridView.Columns>
 </telerik:RadGridView>



 
Mihail
Telerik team
 answered on 28 May 2012
1 answer
105 views
Hello everybody!

I need to achieve the following behavior:
Select multiple dates by clicking them one by one.
Unselect a date by clicking a selected one.

Can I have these behavior with the Multiple selection mode?

I hope you can help me.
Best regards.
Yana
Telerik team
 answered on 28 May 2012
1 answer
240 views
Hi,

It would be great if you guys could develop controls that can scan documents and read the BarCodes and tick box fields etc.

I work in a company where engineers visit sites to complete jobs which are detailed in printed job sheets/reports. When they return to the head office, a member of our admin staff has to manually "check off" the completed items in the database system. It would be great if we could scan the reports that have been returned, read the BarCodes and "tick boxes" so that the system can automatically tick off the completed outstanding jobs in the database system.

Something similar to what these guys offer here.

Just a suggestion.

Thanks,

Rob
Yavor
Telerik team
 answered on 28 May 2012
1 answer
99 views
Hi Telerik team, I'm facing a problem of using RadCarousel as RowDetail in a GridView, as the RadCarousel path isn't streching along the row detail, only the RadCarousel background is.

The result is a big empty blank space from the RadCarousel, and the Carousel itens left-aligned.

Here is the sample:

<telerik:RadRibbonWindow
    x:Class="EDAS.MainWindow"
    xmlns:telerikRibbon="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    Title="EDAS - Environmental Documentation Alert System"
    Height="640"
    Width="1024"
    WindowStartupLocation="CenterScreen">
 
    <!-- hidded code -->
 
        <telerik:RadGridView Grid.Row="1"
                             ItemsSource="{Binding Path=Documentos}"
                             CanUserFreezeColumns="False"
                             RowIndicatorVisibility="Collapsed"
                             RowDetailsVisibilityMode="VisibleWhenSelected"
                             AutoGenerateColumns="False"
                             x:Name="DocGrid"
                             IsReadOnly="True"
                             Visibility="{Binding Path=DocVisibility}">
 
    <!-- hidded code -->
 
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <UserControl>
                        <Grid DataContext="{Binding Path=AnexosContext}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.Resources>
                                <Path x:Key="Horizontal"
                                      Stretch="Fill"
                                      Opacity="1"
                                      Data="M 9,200 C9,200 450,200 450,200 "
                                      Stroke="#FFB4B4B4"
                                      StrokeThickness="1" />
                            </Grid.Resources>
                            <telerik:RadCarousel Grid.Row="0" ItemsSource="{Binding Path=Anexos}" HorizontalScrollBarVisibility="Disabled">
                                <telerik:RadCarousel.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerik:RadCarouselPanel HorizontalAlignment="Stretch" Path="{StaticResource ResourceKey=Horizontal}" IsContinuous="True" IsPathVisible="True" />
                                    </ItemsPanelTemplate>
                                </telerik:RadCarousel.ItemsPanel>
                            </telerik:RadCarousel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
                                <telerik:RadButton Content="Adicionar" Width="75" Command="{Binding Path=AddCommand}" />
                                <telerik:RadButton Content="Remover" Width="75" Command="{Binding Path=DeleteCommand}" />
                            </StackPanel>
                        </Grid>
                    </UserControl>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
</telerik:RadRibbonWindow>

Am I missing some configuration?

Thanks.
Vlad
Telerik team
 answered on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?