Telerik Forums
UI for WPF Forum
1 answer
161 views
Hi friends,

Problem: I do have form which has lots of controls in that i have radio button namely basic and advance. If i choose basic form should have generic controls and if i choose advance extra controls should add respective places in form. 

What i have done is i hidden controls which not a generic , so in that place i m getting blank or empty space which makes my form ugly. I just want controls to fill empty space in basic mode .

Please reply me as soon as possible , i m waiting for ur reply friend :).
Petar Mladenov
Telerik team
 answered on 13 Jan 2011
1 answer
1.1K+ views
Hi! I'm trying to add toggle button to telerik toolbar with ability to change image on different states (IsChecked = true or false).
Here is the code sample:

<telerik:RadToolBar Height="43" HorizontalAlignment="Left" Name="RadToolBar1" VerticalAlignment="Top" Width="509" Background="#FF6A6A6A" GripVisibility="Collapsed" OverflowButtonVisibility="Collapsed" Grid.Row="1" Margin="0,2,0,0" Grid.RowSpan="2">
   
<ToggleButton  x:Name="BtnRec" ToolTip="Start record" Width="32">
   <ToggleButton.Style>
      <Style TargetType="ToggleButton">
         <Style.Triggers>
            <Trigger Property="IsChecked" Value="false">
                <Setter Property="Content">
                    <Setter.Value>
                        <Image Source="/3DSuit_01;component/Images/Rec_Mode.png"></Image>
                    </Setter.Value>
                </Setter>
           </Trigger>
           <Trigger Property="IsChecked" Value="true">
               <Setter Property="Content">
                    <Setter.Value>
                         <Image Source="/3DSuit_01;component/Images/Play.png"></Image>
                    </Setter.Value>
               </Setter>
           </Trigger>
        </Style.Triggers>
      </Style>
    </ToggleButton.Style>
   </ToggleButton>
</telerik:RadToolBar>

The problem is that there is no image shown on the button and button appears like tiny smooth on toolbar. The same code works fine with the standard (non telerik) toolbar, or without toolbar. Please help.
Thank You!
Petar Mladenov
Telerik team
 answered on 13 Jan 2011
2 answers
90 views

Prism2.2: Two modules and each module represent a pane, and these two RadPane at a panelGroup in a Region and both panes have a RadGridView with different ItemsSource data binding. It works once and then data disappears when you click on each pane 2nd time. It looks like ItemsSource binding from GridView and button's command binding of each pane are looking for the same property in other module's ViewModel. It looks like a bug to me.
1. System.Windows.Data Error: 40 : BindingExpression path error: 'Pane4Source' property not found on 'object' ''Pane2ViewModel' (HashCode=63892678)'. BindingExpression:Path=Pane4Source; DataItem='Pane2ViewModel' (HashCode=63892678); target element is 'RadGridView' (Name='RadGridViewPane4'); target property is 'ItemsSource' (type 'Object') .
2. System.Windows.Data Error: 40 : BindingExpression path error: 'Pane4ButtonCommand' property not found on 'object' ''Pane2ViewModel' (HashCode=63892678)'. BindingExpression:Path=DataContext.Pane4ButtonCommand; DataItem='RadGridView' (Name='RadGridViewPane4'); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

Herewith I have attached the sample project[Change the extension as zip]
Could I know what the workaround is if there is a known issue?

Thanks.

Krish
Top achievements
Rank 1
 answered on 13 Jan 2011
1 answer
174 views

Hello all,

Sorry if, at least the title, might seem odd at least but bear with me because it does make sense in the end.

I need a TreeList to show items that are not initially editable (i.e.: clicking on them won't start editing) but are editable in certain conditions controlled programatically. Such as pressing F2 or adding a new item in the TreeList...

Otherwise a double click is a command that should open the item in a new window (or something) and in this case the first click selects it and the second makes it enter edit mode although it is read-only.

I have isolated the problem and it seems that no matter if I set IsReadOnly=true for both the RadTreeListView and the column itself. Just adding a CellEditTemplate makes it by default editable although I wish it weren't. The only workaround that I have found is to remove completely the CellEditTemplate.

I am not able to attach an archive with a specially-prepared project that shows this exact problem. Therefore I will attach snapshots of the main files involved.

Veselin Vasilev
Telerik team
 answered on 13 Jan 2011
1 answer
107 views
I tried to override RadComboBox action for Page Down key by adding an InputBinding that associates Page down to my command. This did my command in addition to RadComboBox standard action ( open drop down and move highlight).
Is there a way override this action?
George
Telerik team
 answered on 13 Jan 2011
5 answers
339 views
Hi there, I'm just starting with first rehearsing with your controls and WPF, and I would like to change the color (or any other property) of the text displayed in a bound data column, using a simple ValueConverter that return a Black/Red SolidColorBrush based on the passed value:
MyPublic Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, _
                        ByVal culture As Globalization.CultureInfo) As Object _
                      Implements IValueConverter.Convert
  Dim myColor As New SolidColorBrush(System.Windows.Media.Colors.Black)
  Try
    Dim cur As Decimal = CDec(value)
    If cur < 0 Then myColor = New SolidColorBrush(System.Windows.Media.Colors.Red)
  Catch ex As Exception
  End Try
  Return myColor
End Function
and then in the XAML use an expression like this:
xxxx.ForecolorPropertyName={Binding Path=DataColumnName, Converter=MyClassConverter}
Is this possible ? Or what other way to keep it at simplest ?
regards
Ubaldo
Maya
Telerik team
 answered on 13 Jan 2011
1 answer
73 views
My guess is that the only way to PRINT ALL DATA  in the RadGridView is using PrintExtension codes (described in GridView Forum) after getting rid of RadDataPager.
Is it?

If that is the case, I will try to toggle RadDataPager off from code-behind before printing and back on afterwards.
Is there any other way to handle printing with DataPager?

Thanks,
Vlad
Telerik team
 answered on 13 Jan 2011
9 answers
125 views
I'm having some trouble understanding how the editing infrastructure in the grid works.

1) When I edit a value and press Esc once and then navigate away, nothing is set. However, if I press Esc twice, the setter for the model is triggered. Why?

2) If I go into editing mode and immediately press Enter, even though nothing has changed, the grid will still set the value on the model. Why? As a basis for comparison, the WPF toolkit grid does not exhibit this type of behavior.

3) Entering edit mode and navigating away from the cell by clicking somewhere else also exhibits the same issue.

All of these issues are present no matter what value I set ActionOnLostFocus to (I tried all 3).

Any ideas?
Vlad
Telerik team
 answered on 13 Jan 2011
3 answers
192 views
Hi,

I have a checkbox column and we want the filter showing something else when user clicking Filter instead of  (True, False). Is there a way to change the default? FilterDescriptor??

Thanks
Li
Top achievements
Rank 1
 answered on 12 Jan 2011
6 answers
128 views
Hello,

I have a long RadTreeView with scrolls. This tree enables Drag&Drop (IsDragDropEnabled="True").
After a double click on an item in the tree, a mouse down on tree' scroll starts the drag operation.

Is it a bug ? How can I prevent it ?

Edit :
It is not only after a double click. This seems to occur when the event handler open a modal dialog.
Example with selection changed :
        private void RadTreeView_SelectionChanged(object sender, SelectionChangedEventArgs e)  
        {  
            MessageBox.Show("Tree - SelectionChanged");  
        }  
 
If you select an item, then without any click on tree, you click on a tree' scroll, the drag operation starts.


I use Q1 2010 version. (2010.1.603.35)

Thanks,
Guillaume R.
Brent
Top achievements
Rank 2
 answered on 12 Jan 2011
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?