Telerik Forums
UI for WPF Forum
2 answers
190 views
how can i get the value of a cell, in Winform:

radGridView1.Rows[e.RowIndex].Cells[5].Value.ToString();

in WPF, i cant
. THX














phuoc tran ngoc
Top achievements
Rank 1
 answered on 05 Oct 2012
0 answers
179 views
Hi Telerik Team!!

Sorry to bother you, but one more time I have an issue :S,

I have a RadGridView and one of the columns has a datatemplate (button), i.e. if I select the row 1 and after I click the button from the row 5, the  row 1 keeps selected.

<

 

 

telerik:GridViewDataColumn Header="title" >

 

 

 

 

    <telerik:GridViewDataColumn.CellTemplate>

 

 

 

 

        <DataTemplate>

 

 

 

 

            <telerik:RadButton Content="{Binding Value}"

 

 

 

                Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},

 

 

 

                Path=DataContext.X}"

 

 

 

                CommandParameter="{Binding Number}"/>

 

 

 

 

        </DataTemplate>

 

 

 

 

    </telerik:GridViewDataColumn.CellTemplate>

 

</telerik:GridViewDataColumn>

Thanks.

 

hugo cesar
Top achievements
Rank 1
 asked on 04 Oct 2012
0 answers
165 views

Hi Telerik Team.

I have a problem with the rows using the RadGridView and implicit styles, I'll explain:

I have a RadGridView and when it is loaded and I click over a columns name to sort the rows everything is ok, the problem
arise when I added a rowstyle to highlight rows which contain specific data.

 

<

 

 

telerik:RadGridView.RowStyle>

 

 

 

 

    <Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}">

 

 

 

 

        <Style.Triggers>

 

 

 

 

            <DataTrigger Binding="{Binding Status}" Value="2">

 

 

 

 

                <Setter Property="Background" Value="Red"/>

 

 

 

 

            </DataTrigger>

 

 

 

 

        </Style.Triggers>

 

 

 

 

    </Style>

 

 

 

 

</telerik:RadGridView.RowStyle>

After add those lines when I click over the column name to sort, the rows disappear.

Please any help is really helpful. Thanks.

 

hugo cesar
Top achievements
Rank 1
 asked on 04 Oct 2012
1 answer
158 views
Hi,

Ever since upgrading to the latest release of the WPF libraries (Q2 2012) I am experiencing issues with the currency format in my RadGridView. My PC is set to en-GB but the application was reporting values back in en-US.

I managed to overcome the issue by setting the following code in each of my windows & pages:

//Set Language
this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);


However, I have just stumbled across another issues.
I have a radgridview hosted in a RadDocking pane. When the pane is docked the currency reported in my cells are as they should be, en-GB (£). When the pane becomes floating, the grid cells switch back to en-US ($).

Do you know how I can prevent the culture of my pane from switching when it becomes floating?

Thank you for your time,

Rob


Yana
Telerik team
 answered on 04 Oct 2012
0 answers
121 views

Hi,

We would like to implement a spin progress bar (see the attached image) into Tabs, Toolbars etc.
Could you give us info whether you have any or similar solution to this control in WPF?

Thanks,
Laszlo

Zsolt
Top achievements
Rank 1
 asked on 04 Oct 2012
1 answer
168 views
Is there any easy way to center a diagram? I believe I may need to use the align feature, but not 100% sure.

I've been using autofit and that centers it however when exporting to an image, even with the bounds set for the entire viewport it doesn't export in the center.

Any ideas on what I can try?
Tina Stancheva
Telerik team
 answered on 04 Oct 2012
1 answer
303 views
Hi,
Am having some issues with the Dropdown content in RadDropDownButton.
I get multiple instances of the dropdown content (attached screen shot).
Below is my xaml.

<telerik:RadDropDownButton AutoOpenDelay="0:0:0.0" Grid.Column="1" Grid.Row="0" FlowDirection="RightToLeft" DropDownButtonPosition="Left" 
                                                       Visibility="{TemplateBinding SearchHistoryListVisibility}" KeepOpen="False" DropDownMaxHeight="170"
                                                       IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}">
                                    <telerik:RadDropDownButton.DropDownContent>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="{Binding SearchHistoryWidth}" />
                                            </Grid.ColumnDefinitions>
                                            <ListBox Grid.Column="0" FlowDirection="LeftToRight" 
                                                     ItemContainerStyle="{StaticResource SearchHistoryItemStyle}" BorderThickness="0.25" BorderBrush="DarkGray"
                                                     ItemsSource="{Binding Path=SearchHistoryList}" 
                                                     SelectedValue="{Binding Path=SelectedSearchQuery, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                                     HorizontalAlignment="Stretch" />
                                        </Grid>
                                    </telerik:RadDropDownButton.DropDownContent>
                                </telerik:RadDropDownButton>

Am trying to close the dropdown content on click of a listbox item. Am setting  IsSearchHistoryOpen=false from SelectedSearchQuery property.

This happens only when I specify Mode=TwoWay in 
IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}".
But if I dont specify the twoway mode, the dropdowncontent doesnt close when i click the listbox item.

Any help is much appreciated.

Thanks
Zarko
Telerik team
 answered on 04 Oct 2012
3 answers
200 views
I'm trying to dislpay a text informing the user that more items are loaded on the background of the tree view. I am trying to change the template. As soon as the ItemsPresenter is not a direct child of ScrollViewer the tree stops displaying the items.

Here is my template:

    <ControlTemplate x:Key="RadTreeViewWithLoadingTemplate" TargetType="{x:Type telerik:RadTreeView}">
        <Grid x:Name="RootElement">         
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                <Grid>
                    <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Background="{x:Null}" CanContentScroll="True" HorizontalScrollBarVisibility="Auto" IsTabStop="False"
                                  Padding="{TemplateBinding Padding}" VerticalScrollBarVisibility="Auto"
                                  Style="{DynamicResource LoadingScrollViewerStyle}">
                        <Grid>
                            <Grid.RowDefinitions>
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <ItemsPresenter/>
                            <TextBlock Text="Loading more items!" Height="20" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1"/>                       
                    </ScrollViewer>
                    </Grid>
            </Border>
        </Grid>
    </ControlTemplate>

Thanks,
Justyna
Tina Stancheva
Telerik team
 answered on 04 Oct 2012
1 answer
109 views
Hi

With release .Net version 4.0 of wpf diagram, we have overrided the OnPositionChanged to prevent the user to move the chart to the left and upward compared to the position (0,0).   If the coordinates of the diagram exceed the point of origin, the position is reset to the origin point.  Ex.: (10, -10) is converted into (0, -10).
 
We have updated our solution with the beta 4.5 and the behavior has changed. It is impossible to change the Position property of the diagram in the method "OnPositionChanged."

I attache a sample project. The source code is in the class "MyDiagram." Download project here

Could you
restore the original behavior or offer a solution?

Sincerely,

    protected override void OnPositionChanged(Point oldPosition, Point newPosition)
    {
        base.OnPositionChanged(oldPosition, newPosition);
        Point newPoint = newPosition;
 
        if (newPosition.X > 0)
        {
            newPoint.X = 0;
        }
        if (newPosition.Y > 0)
        {
            newPoint.Y = 0;
        }
        //With the 4.0 DLL version, there is no problem to set the new position
        if (newPoint != newPosition)
        {
            this.Position = newPoint;
        }
 
        if (newPoint != newPosition)
        {
            //With the 4.5 DLL version, I need to invoke the method to get the same behaviour
            //but the diagram flikers
            Dispatcher.BeginInvoke(new Action(() =>
                                                  {
                                                      this.Position = newPoint;
                                                  }), DispatcherPriority.Render);
        }
 
        sh.SetText(((int)this.Position.X).ToString("") + "  -  " + ((int)this.Position.Y).ToString(""));
    }
}
Hristo
Telerik team
 answered on 04 Oct 2012
3 answers
224 views

It is not clear to me how one would go about virtualizing vertically.

For example, if one has many possible "groups" in a scroll viewer which are controlled by a single slider they would not want to materialize all of the UI elements.  Subsequently if the query could be broken up by group, they would not want to query the records for all of the groups.

Any ideas or examples out there?
Tsvetie
Telerik team
 answered on 04 Oct 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?