Telerik Forums
UI for WPF Forum
3 answers
316 views
I am adding tabs to my tab control in the code behind.

Can you please provide an example of how to set the tab's image from the code behind?

Thank you
Petar Mladenov
Telerik team
 answered on 15 Feb 2012
5 answers
275 views
Hello,

I'm evaluating different WPF grids for a current software project in our company. By reading your documentations, forum threads and trying your demos, I couldn't find out if your GridView control could meet our special requirements:

- multiple grouping (could be fixed groups, not necassary for user to change grouping at runtime)
- different formulas/expressions per cell not just per column
- formulas/expressions related to other cells in other columns and rows, i.e. formula in cell A1: "B1 + C3"
- possibility for user to change the formulas (maybe with your expression editor?)

Could you tell me if this is somehow possible and give me an example?
Maya
Telerik team
 answered on 15 Feb 2012
3 answers
378 views
I have a RadGridView with a RadDataForm inside the RowDetails. When I expand a row and then scroll my mouse wheel through the grid results, the scrolling halts when my mouse array is over the RadDataForm....as if the DataForm is grabbing the scroll focus (but there are no scrollbars on the DataForm).

How can I prevent this? Thanks.

Here is my main xaml code:

<telerik:RadGridView Grid.Row="1" IsReadOnly="True" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" IsFilteringAllowed="False" ItemsSource="{Binding Results}" AutoGenerateColumns="False">
            <telerik:RadGridView.Style>
            </telerik:RadGridView.Style>
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewSelectColumn IsVisible="{Binding DataContext.IsMultiSelect, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:PatientSearchView}}}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Width="*" />
................
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <telerik:RadTabControl Height="400" HorizontalAlignment="Stretch" Margin="8,8,20,8" VerticalAlignment="Center">                
                        <telerik:RadTabItem Header="Details" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">
                            <local:DetailsView DataContext="{Binding Details}" />
                        </telerik:RadTabItem>
...............
                    </telerik:RadTabControl>
 
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>

And then this is my DetailsView

<s:View ....>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border BorderBrush="Black" BorderThickness=".5" Grid.Row="0" Height="90" Width="90" Margin="10,0,0,0" HorizontalAlignment="Left" >
            <Image Source="{Binding Details.Photo}" />
        </Border>
        <telerik:RadDataForm AutoGenerateFields="True" CurrentItem="{Binding Details}" CommandButtonsVisibility="Commit,Cancel,Edit" Grid.Row="1" ScrollViewer.CanContentScroll="False">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="EditEnded">
                    <i:InvokeCommandAction Command="{Binding Save}" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </telerik:RadDataForm>
    </Grid>
</s:View>
Dimitrina
Telerik team
 answered on 15 Feb 2012
2 answers
67 views
Hello,

i've noticed that the radbusyindactor does not go to the "busy" state when you change the isBusy property fast. You can test this behavior in the telerik demos application when you use the busyIndicator Configurator and switch off isinditerminate. Then you click isbusy 3 times quickly. Now the state should be "busy" but it's not.
I've found out i can get it to go to busy state after applying a thread.sleep of 200 millisecs but that's a dumb solution.

Any chance of helping me out here?

Thanks in advance!
Ivo
Telerik team
 answered on 15 Feb 2012
1 answer
123 views
Hello


I am in the trial period right now and want to make sure of the distinction between the tabs created by the RadPaneGroup and the TabControl.

  • Would the RadPaneGroup be databound like the tabcontrol is? Is it used for a different purpose then the tabcontrol?
  • It seems that the RadPaneGroup is used inside of a Docking control, correct? is this the only correct place?


Thanks! These controls have been great to work with!

harold

Miroslav Nedyalkov
Telerik team
 answered on 15 Feb 2012
1 answer
204 views
Hello,

I created a RadGridView and binded a dataset. While double click a row, it should popup a message with the content of the ID cell. Can someone explain how to do this?

<telerik:RadGridView ItemsSource="{Binding}" x:Name="Listing" AutoGenerateColumns="False" SelectionMode="Single" IsReadOnly="True">
     <telerik:RadGridView.Columns>
      <telerik:GridViewDataColumn Header="ID" MinWidth="25" DataMemberBinding="{Binding Path=ID}"></telerik:GridViewDataColumn> 
          <telerik:GridViewDataColumn Header="Lastname" MinWidth="150" DataMemberBinding="{Binding Path=surname}"></telerik:GridViewDataColumn>
          <telerik:GridViewDataColumn Header="Initials" MinWidth="75" DataMemberBinding="{Binding Path=initials}"></telerik:GridViewDataColumn>
     </telerik:RadGridView.Columns>
</telerik:RadGridView>

After I added an event handler

Listing.MouseDoubleClick += RadGridView1_MouseDoubleClick;

How do I show the ID of the cell clicked?

public void RadGridView1_MouseDoubleClick(object sender, RoutedEventArgs e)
 {
            MessageBox.Show("ID" + ????);
 }

Dennis van Espelo
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
127 views
Hello,

We are currently working with the Docking control and it works wonderfully.
There is only one problem If I only (un)pin a control   the LayoutChangeEnded event is not fired. Meaning that my code for save will not be executed.

With kind regards,
Kevin Hendriks
Miroslav Nedyalkov
Telerik team
 answered on 15 Feb 2012
0 answers
102 views
How can I set the width of any column in the GridView to fill(*)?
Rohit
Top achievements
Rank 1
 asked on 15 Feb 2012
1 answer
87 views
I have a grid that contains 18,000 order objects. When I add an aggregate function to a column to sum the total of the orders, it takes approximately 10 minutes for the operation to be completed. I realize that the aggregate function is going order by order to get the correct amount for the column's property, and as it does this, my objects have to calculate the value that needs to be added to the sum. However, while it does this, my user's screen is frozen and the program is not responding. It does eventually complete the operation, and everything is correct/usable.

My question is, is there a good way to add an aggregate function in the background, so the user doesn't experience a frozen screen? Is there a way to cancel adding the aggregate function if it is taking too long, or does the operation have to be completely executed before anything else can be done?
Vlad
Telerik team
 answered on 15 Feb 2012
2 answers
103 views

I have been trying to implement drag and drop within a listbox in my application and I can’t seem to get the following lines to work from the tutorial and other solutions that admins have posted on the forum:

    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"

                            <vsm:VisualStateManager.VisualStateGroups>

                                <vsm:VisualStateGroup x:Name="DragCue">

                                    <vsm:VisualState x:Name="NoDrop" />

                                    <vsm:VisualState x:Name="DropPossible">

I get the following error message from VS:

The tag 'VisualStateGroup' does not exist in XML namespace 'clr-namespace:System.Windows;assembly=System.Windows'.

Is there something I am missing?

I am using VS2008 in Windows XP and the trial version of Telerik RadControls for WPF.

Any help would be greatly appreciated! :)

Vlad
Telerik team
 answered on 15 Feb 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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?