Telerik Forums
UI for WPF Forum
2 answers
263 views
Hi,
I am facing one problem.I am using RowDetailstemplate to show nested data.....working fine..
But when I expand the some other row  it need Collapse previous expanded row.
I want show expanded row one at a time.

Is there any way to achieve the functionality.It is help full if you provide sample solution..............

Thanks and Regards
Naresh Mesineni
Rossen Hristov
Telerik team
 answered on 09 Sep 2013
2 answers
63 views
We are looking at moving from Q1 2012 to Q1 2013 controls.

Our app uses the RibbonView and in the 2012 version, the ribbon does not collapse buttons, only adds a scroll area on the right to get the other ribbon buttons.
In 2013, the buttons are collapsed into their groups, with no scroll bar.

Is there a way to have the 2012 behavior in 2013?

- Lutz
James
Top achievements
Rank 1
 answered on 07 Sep 2013
1 answer
161 views
Hi,
How can i get selected text from pdfviewer? I have opened a pdf file in Text Selection mode. Now i will select some sentence from third and fourth line...
how can i get the whole sentence in C# or VB?
Petya
Telerik team
 answered on 06 Sep 2013
5 answers
183 views
When I call the Layout() method, all nodes are aligned according to the layout settings. I would like to apply this layout logic only to connected nodes. Often, I create several nodes and then start connecting them. It makes sense to align the connected ones and leave my disconnected ones unchanged - until I actually connect them too.

As it is now, all unconnected nodes end up at the root level which is really annoying when you are working with larger trees.
Hristo
Telerik team
 answered on 06 Sep 2013
2 answers
130 views
I have a grid where the first column is "Region"

When I create a new row I want to ensure that the user can specify the value for "Region" only once. After that I want the cell to be readonly. The region is selected from a control which is specified in the CellEditTemplate. The CellTemplate simply contains a TextBlock

The GridViewDataColumn has the IsReadOnlyBinding property bound to a property on the row object called "RegionIsDefined". I set this to true once the region is selected. Unfortunately this does not make the cell readonly (it still has focus and is in edit mode).

How should I inform the view that I have finished selecting the Region with the CellEditTemplate control?
- should I lose focus on the column?
- is there a cell editing ended event I can call?

<telerik:GridViewDataColumn IsReadOnlyBinding="{Binding RegionIsDefined}">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <myRegionControl>
...
            </myRegionControl>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>


Many thanks


Charles
Top achievements
Rank 1
 answered on 06 Sep 2013
9 answers
218 views
We are using the HierarchyChildTemplate in the GridView to allow interaction with the rows respective record.  When the user enters some text in a TextBox and clicks a button we are persisting their input then we are setting focus back on the TextBox.  We have tried textBox.Focus, FocusManager.SetFocusedElement and Keyboard.Focus.  We also attempted to set e.Handled to true in the Executed hander.  The closest we get is that the TextBox gets logical focus but not keyboard focus.  We are reusing the same control elsewhere within a RadPane and the keyboard focus is set correctly, just not from within the GridView's HierarhcyChildTemplate.  By running Snoop we can se that the window is responding to the keyboard events.

How can we get keyboard focus to remain on the TextBox within the HierarchyChildTempalte?

Thanks

Paul
Dimitrina
Telerik team
 answered on 06 Sep 2013
2 answers
133 views
Hello,
Is it possible to have the spark line above axis line? The problem is when data are zero, the spark line is hidden under axis line, the same as if there is no data...

Thanks
Stephane
Stéphane
Top achievements
Rank 1
Iron
 answered on 06 Sep 2013
2 answers
224 views
I want to use RadPanelBar with CM (use MEF as DI container). Every RadPanelBarItem should has something that is determined by other modules.

For examples, the following is my code structure:

MyProject.NavigationPane
       NavigationPaneView.xaml
       NavigationPaneViewModule.cs

MyProject.NavigationItem.Example1
       Example1View.xaml            (maybe any content)
       Example1ViewModel.cs

MyProject.NavigationItem.Example2
       Example2View.xaml             (maybe any content)
       Example2ViewModel.cs

NavigationPaneView.xaml contains the RadPanelBar. I want to use the strength of CM to dynamically create two RadPanelBarItem to show the content of Example1View.xaml or Example2View.xaml.

I want to make the code in NavigationPaneView.xaml like this:
<Grid>
  <Grid.Resources>
    <HierarchicalDataTemplate x:Key="NavigationItemTemplate">
      <ContentControl cal:View.Model="{Binding }" />
    </HierarchicalDataTemplate>
 
    <HierarchicalDataTemplate
      x:Key="rootLevelTemplate"
      ItemTemplate="{StaticResource NavigationItemTemplate}"
         ItemsSource="{Binding }">
      <TextBlock Text="{Binding Name}" />
    </HierarchicalDataTemplate>
  </Grid.Resources>
  <telerik:RadPanelBar
         x:Name="pBar"
         ItemTemplate="{StaticResource rootLevelTemplate}"
         ItemsSource="{Binding NavigationItems}"/>
</Grid>

in NavigationPaneViewModel.cs:
public BindableCollection<INavigationItem> NavigationItems { get; set; }

and
public interface INavigationItem
{
    string Name { get; }
}

in Example1ViewModel.cs: (Example2ViewModel.cs is the same)
[Export(typeof(INavigationItem)),
ExportMetadata("Name", "Example1")]
public class Example1ViewModel : INavigationItem
{
    public string Name
    {
        get { return "Example1"; }
    }
}

Because I'm a newbie for Telerik and CM. So I totally have no idea now. Can anybody kindly give me some hint or help?
Pencil
Top achievements
Rank 1
 answered on 06 Sep 2013
2 answers
128 views
Hi there,
.
I'm a newbie with this control. Now I'm using it directly binded to one dataset.

XAML:

 <telerik:RadGridView x:Name="dgvOrdenes" ShowGroupPanel="False" ShowColumnHeaders="True" ShowColumnFooters="False"
                             ItemsSource="{Binding V_Or2}" HorizontalAlignment="Left"
                             Margin="10,44,0,0" ShowInsertRow="False" VerticalAlignment="Top" Height="216"
                             Width="405" Grid.ColumnSpan="2" Grid.RowSpan="4" >

Code-behind:

        Dim connexio As SqlConnection
        Dim ada As New SqlDataAdapter()
        Dim ds As New DataSet

        connexio = New SqlConnection("Server='ENRIC-PC\ENRIC';Initial Catalog=****;User ID=*****Password=******;current language=spanish")


        connexio.Open()


        ada = New SqlDataAdapter("select * from V_Or2", connexio)
        ada.Fill(ds, "V_Or2")
        Me.dgvOrdenes.DataContext = ds



I'd like to assign manually every column but using the same code-behind, how can I do that?
Obviously this doesn't work ("Modelo" is one of the views' Sql Server fields returned)

            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding V_Or2.Modelo}" Header="First Name" UniqueName="FirstName" />
            </telerik:RadGridView.Columns>

Enric
Top achievements
Rank 1
 answered on 05 Sep 2013
3 answers
357 views
Hi,

I've implemented the ColumnGroups feature on a grid and it works well enough, but I'm running into a problem when the header of the column group exceeds the width of the actual group and it runs over the borders instead of wrapping onto a new line.

There isn't much documentation available on the ColumnGroups as far as I can see, so I'm not sure how we can get around that? Is there a style setting that we can use in the HeaderStyle or is there another way to do it?

Thanks,
Nemanja
F Beto
Top achievements
Rank 1
 answered on 05 Sep 2013
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?