Telerik Forums
UI for WPF Forum
3 answers
432 views
Lets say I have 100 rows, I want to select row number 10, how do I do that and also scroll the selected row into view.

Milan
Telerik team
 answered on 03 Dec 2009
1 answer
209 views
Why doesn't the FooterTextAlignment property in the following style work?
<Teltrik:GridViewDataColumn FooterTextAlignment="Right" FooterCellStyle="{DynamicResource FooterCellStyle}" CellStyle="{DynamicResource RightAlignedCellStyle}" Width="120" DataMemberBinding="{Binding UnaTantum,Converter={StaticResource EuroConverter}, ConverterParameter=\{0:c\}}" >  
                    <Teltrik:GridViewDataColumn.Header>  
                        <StackPanel Margin="30,0,0,0" HorizontalAlignment="Center" Orientation="Vertical" >  
                            <TextBlock HorizontalAlignment="Center" Text="Una Tantum"></TextBlock>  
                        </StackPanel>  
                    </Teltrik:GridViewDataColumn.Header>  
                    <Teltrik:GridViewColumn.AggregateFunctions>  
                        <telerikData:SumFunction ResultFormatString="{}{0:c}" SourceField="UnaTantum"></telerikData:SumFunction>  
                    </Teltrik:GridViewColumn.AggregateFunctions>  
                </Teltrik:GridViewDataColumn> 

I tried also to set both FooterTextAlignment="Left" and FooterTextAlignment="Center" but nothing changed!!!

The style FooterCellStyle is:
<Style x:Key="FooterCellStyle" TargetType="{x:Type GridView:GridViewFooterCell}">  
        <Setter Property="FontWeight" Value="Bold"></Setter>  
    </Style> 

Please help me
Kalin Milanov
Telerik team
 answered on 03 Dec 2009
1 answer
247 views
I want to display label of Tick value in slider control. If it is possible than give me solution.
 
Valentin.Stoychev
Telerik team
 answered on 03 Dec 2009
4 answers
666 views
is there a way to disable the animation in all the telerik controls?,
for example RadExpander.IsExpanded

igal a
Top achievements
Rank 1
 answered on 03 Dec 2009
1 answer
116 views
I have a need for short paragraphs on the nodes/leaves of a RadTreeView.  I was readily able to bind a (wrapping) TextBlock's Text to in-memory objects, and all works fine.

The next step was to get multicolor text, instead of plain text, on these nodes.  Now I have hit a snag ... can't figure out how to use that TextBlock (or what to replace it with) to get bindable multicolor text.  Searching on this a bit, evidently "bindable Run" is a bit of an issue, and won't be resolved until WPF 4.0.

I'd really appreciate any suggestions that would work, prior to WPF 4.0.  Is there something in the Telerik suite that works around this? 

Thanks in advance for any help!
Miroslav
Telerik team
 answered on 03 Dec 2009
2 answers
170 views
Hi,

We have several RadGridViews set up with manually defined columns.  Our column widths were defined to support relative sizing, ie Width="20*".  ColumnWidthMode for the grid was set to "Fill".  The reason for this was that we did not want certain fields to wasting space.  For example in the example below the "Date of Birth" and "Licence Number" are only narrow columns allowing for the other columns to take up more space. 

After installing the Q3 release all the columns appear on screen with the same width, ignoring the column widths that we have defined.  I don't want to change the columns to be fixed width as this will cause problems on different sized screens and/or when user resizes the window.  Is there anything we can do to get this functionality back?

Here is the XAML for the column definitions from one of our grids.
<telerik:RadGridView.Columns> 
                        <telerik:GridViewDataColumn Header="Name" 
                                                    DataMemberBinding="{Binding PersonDetails}" 
                                                    Width="35*" 
                                                    IsFilterable="False" 
                                                    ShowDistinctFilters="False"/>  
                        <telerik:GridViewDataColumn Header="D.O.B." 
                                                    DataMemberBinding="{Binding BirthDate}" 
                                                    Width="15*" 
                                                    ShowDistinctFilters="False"/>  
                        <telerik:GridViewDataColumn Header="Address" 
                                                    DataMemberBinding="{Binding ResidentialAddress}" 
                                                    Width="35*" 
                                                    ShowDistinctFilters="False"/>  
                        <telerik:GridViewDataColumn Header="Licence Number" 
                                                    DataMemberBinding="{Binding LicenceNumbers}"   
                                                    Width="15*" 
                                                    ShowDistinctFilters="False"/>  
                    </telerik:RadGridView.Columns> 



Nedyalko Nikolov
Telerik team
 answered on 03 Dec 2009
10 answers
1.2K+ views
Hello,
I've Problems with binding a comman for a Button inside a RadGridView-Column. I'm using the Q3 Release.

This is my XAML:
<telerik:GridViewDataColumn Header=""  UniqueName="Product.ProductID" IsReadOnly="True"  Background="{StaticResource ProductColumnsBackground}" HeaderCellStyle="{StaticResource DefaultHeaderStyle}">
  <telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
      <Button Margin="2" Command="{Binding Path=DataContext.AddDefectCommand, ElementName=productGrid}" CommandParameter="{Binding }">
        <StackPanel Orientation="Horizontal">
          <Image RenderOptions.BitmapScalingMode="NearestNeighbor" Width="16" Height="16" Source="../Resources/Defect_16.png"/>
          <TextBlock Margin="5" Text="Neuer Mangel"/>
        </StackPanel>
      </Button>
    </DataTemplate>
  </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>



"productGrid" is the name of the RadGridView.
Vlad
Telerik team
 answered on 03 Dec 2009
1 answer
76 views
Already used more brain cycles than I want to just evaluate the product :(

System.Security.SecurityException was unhandled by user code
  Message="Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
  Source="mscorlib"
  StackTrace:
       at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
       at System.Security.CodeAccessPermission.Demand()
       at System.Environment.GetCommandLineArgs()
       at System.Windows.StartupEventArgs.GetCmdLineArgs()
       at System.Windows.StartupEventArgs.get_Args()
       at Telerik.Windows.Examples.App.OnStartup(StartupEventArgs e)
       at System.Windows.Application.<.ctor>b__0(Object unused)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
  InnerException:
Boyan
Telerik team
 answered on 02 Dec 2009
1 answer
73 views
Hi,
i have created a new style for my panel items. within the style (in the RD) everything is working as i need but in the project itself the behavior isnt as requested. for example:
the text foreground is usually black but when selected- white. that how it looks as i work in blend, but in run time is stays black....
any idea why....?
Valentin.Stoychev
Telerik team
 answered on 02 Dec 2009
3 answers
76 views
Hi.
I was playing with the Q3 DatePicker Demo. I noticed the following:
When I open the picker after having enterd a date using the keyboard the picker alway closes after the first click. Even when this click is no date selection (i.e. clicking the header, to go to "month-choose-mode")

Is this inentionally ?

Yours, Nils
Kaloyan
Telerik team
 answered on 02 Dec 2009
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?