Telerik Forums
UI for WPF Forum
4 answers
787 views
Hi,

actually in my project, just before I start a huge treatment, I display a usercontrol with a message "In progress..." to show the user that the treament is in progress.

Now, I'm trying to add a RadBusyIndicator to my usercontrol and I'm facing 2 problems...

1. Can I change the indicator style: color, another kind of spinning wheel like we have on an iPhone
2. If I place the standard RadBusyIndicator on my usercontrol, I call IsBusy=True or False to start or stop the animation but the fact that I'm running a treatment in background, the indicator hang multiple time, the animation is not fluid :(

Can you provide a sample to solve this issue?

Thank's
Chiara
Top achievements
Rank 1
 answered on 29 Nov 2011
5 answers
356 views
Hello,

In my grid I display a number of values that are of type double.  When displaying these values in the table, I round the value to 2 decimal places using the GridViewDataColumn.DataFormatString property.  I also use the GridViewDataColumn.GroupHeaderFormatString to display full precision when grouping by these columns. 

However, the column filters still show duplicate entries in the list of column values, due to the rounding of the displayed values.  (See attached screenshot.)  I am wondering whether there is a way to display the values in the filter at higher precision (as I have done with grouping) so that it does not look like a list of duplicate values.  It sure would be nice if there were a property like GridViewDataColumn.FilterEntryFormatString!  Of course any other method would be helpful too! 

Any ideas as to what I might be able to do?

Thanks,
Mark


Mark
Top achievements
Rank 1
 answered on 29 Nov 2011
3 answers
105 views
I have  GridViewDataColumn with a constructed status field (using a CellTemplate) that I have set to sort using a numeric value (using a DataMemberBinding).  All fine and nice but I do not want to display that numeric value when the user filters the column.  I want to provide a value (using a converter perhaps) that the column filter UI will apply to render the numeric value for display in the selection list for the user to pick from so that use user will see a blank, 'Unapproved', 'Partial', or 'Approved',  instead of 0,1,2, or 3 as they get now. 

I have not yet found an example of how to control the representation within the filter control, but I assume there is a way (hopefully a simple one).
Can someone point me to where I can find how to do this? 

Thanks much.
Terry Newton
Top achievements
Rank 1
 answered on 29 Nov 2011
4 answers
180 views
Can we use parameters in the query?
Rayne
Top achievements
Rank 1
 answered on 29 Nov 2011
4 answers
189 views
i have done that task ,now i want bind specific Combo box column of specific row .
my code is like this 
Xml
  <Grid>
        <Grid.Resources>
                       <Style TargetType="telerik:RadComboBox">
                <EventSetter Event="SelectionChanged" Handler="ComboBox_SelectionChanged" />
            </Style>
        </Grid.Resources>
        <UI:ModuleControl x:Name="mdParticipantWI" IsShowIcon="False"
                          Title="Participant Wellness Incentives"
                          Margin="8">


            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <StackPanel  VerticalAlignment="Top">
                    <TextBlock Name="txtUserName"
                               Style="{StaticResource SectionTitleStyle}" />
                    <TextBlock />
                    <TextBlock Text="Risk Factor Overrides"
                               Style="{StaticResource SectionTitleStyle}" />
                    <StackPanel>
                        <UI:UcToolbar IsShowNewButton="True" IsShowDeleteButton="True" IsShowCancelButton="True" IsShowEditButton="True" IsShowSaveButton="True" x:Name="UcToolbar1"></UI:UcToolbar>
                        <telerik:RadGridView x:Name="grdRiskFactorOverrides"
                                     ShowGroupPanel="False"
                                     Margin="0 8 0 0"
                                     AutoGenerateColumns="false">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ewip_id}"
                                    UniqueName="Models"
                                                    IsComboBoxEditable="false"
                                                    Header= "Model"
                                                    HeaderTextAlignment="Center"
                                                    SelectedValueMemberPath="ewip_id"
                                                    DisplayMemberPath="ewip_title" 
                                                    Width="200" />
                                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ewrf_id}"
                                    UniqueName="RiskFactors" Name="RiskFactors"
                                                    IsComboBoxEditable="True"
                                                                IsEnabled="True"
                                                              Header= "Risk Factor"
                                                    HeaderTextAlignment="Center"            
                                                    SelectedValueMemberPath="ewrf_id"
                                                    DisplayMemberPath="risk_factor" 
                                                    Width="150" />
                                <telerik:GridViewDataColumn  Header="Reason for Override"
                                                     DataMemberBinding="{Binding reason}"
                                                     Width="*" />
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>


                        <!--<UI:MaestroGridView  x:Name="grdRiskFactorOverrides"
                                     ShowGroupPanel="False"
                                     Margin="0 8 0 0"
                                     AutoGenerateColumns="false">
                            <UI:MaestroGridView.Columns>
                                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ewip_id}"
                                    UniqueName="Models"
                                                    IsComboBoxEditable="True"
                                                    Header= "Model"
                                                    HeaderTextAlignment="Center"            
                                                    SelectedValueMemberPath="ewip_id"
                                                    DisplayMemberPath="ewip_title" 
                                                    Width="200" />
                                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ewrf_id}"
                                    UniqueName="RiskFactors"
                                                    IsComboBoxEditable="True"
                                                    Header= "Risk Factor"
                                                    HeaderTextAlignment="Center"            
                                                    SelectedValueMemberPath="ewrf_id"
                                                    DisplayMemberPath="risk_factor" 
                                                    Width="150" />                                
                                <telerik:GridViewDataColumn  Header="Reason for Override"
                                                     DataMemberBinding="{Binding reason}"
                                                     Width="*" />
                            </UI:MaestroGridView.Columns>
                        </UI:MaestroGridView>-->
                        <telerik:RadDataPager Height="24" />
                    </StackPanel>


                </StackPanel>
            </Grid>
        </UI:ModuleControl>
    </Grid>

coding part:

  Private Sub ComboBox_SelectionChanged(ByVal sender As Object, ByVal e As SelectionChangedEventArgs)
        Dim comboBox As RadComboBox = DirectCast(e.OriginalSource, RadComboBox)
        If comboBox.SelectedValue Is Nothing OrElse comboBox.SelectedValuePath <> "ewip_id" Then
            Return
        End If
        If Not comboBox.SelectedValue Is Nothing Then
            Dim selectedCountry As Int32 = DirectCast(comboBox.SelectedValue, Int32)
            ' Dim test As String = Me.grdRiskFactorOverrides.SelectedItem
            Dim i As Integer = Me.grdRiskFactorOverrides.Items.IndexOf(Me.grdRiskFactorOverrides.SelectedItem)


            Dim objWellnessIncentiveMethods As New WellnessIncentiveMethods
            Dim riskFactorsList As New List(Of MaestroLibrary.riskFactors)
            riskFactorsList = objWellnessIncentiveMethods.fnGetRiskFactors(selectedCountry)
            Dim gridViewComboColumn As New GridViewComboBoxColumn()
            gridViewComboColumn.DataMemberBinding = New System.Windows.Data.Binding("ewrf_id")
            gridViewComboColumn.UniqueName = "RiskFactors"


            Try
                'If DirectCast(grdRiskFactorOverrides.Rows(0).Cells(5).Value, Decimal) > 10 Then
                '    grdRiskFactorOverrides.Rows(0).Cells(5).Value = 10
                'End If
                'DirectCast(Me.grdRiskFactorOverrides.Columns("RiskFactors"), GridViewComboBoxColumn).ItemsSource = riskFactorsList


                Dim countries As GridViewComboBoxColumn = TryCast(Me.grdRiskFactorOverrides.FindName("RiskFactors"), GridViewComboBoxColumn)
                countries.ItemsSource = riskFactorsList(here i want to find clicked row specific column and want to provide item source)





                'Dim aa As GridViewRowDetailsEventArgs
                'Dim countries2 As GridViewComboBoxColumn = TryCast(aa.DetailsElement.FindName("RiskFactors"), GridViewComboBoxColumn)


            Catch ex As Exception


            End Try


            gridViewComboColumn.SelectedValueMemberPath = "ewrf_id"
            gridViewComboColumn.DisplayMemberPath = "risk_factor"


            ' bindComboRiskFactors(selectedCountry)


        End If
    End Sub

i have requested to telerik support team,please help me to solve that issue.if you want to ask any thing regarding that,you can ask
vikas gupta
Top achievements
Rank 1
 answered on 29 Nov 2011
1 answer
104 views
Hi!

Was trying to bind to zoomscrollsettingsx.RangeStart but it doesn't seem to work. I found this issue in the silverlight forum:
http://www.telerik.com/community/forums/silverlight/chart/binding-problem-zoomscrollsettingsx-rangestart.aspx

Has this been solved in silverlight but not in wpf?
Ves
Telerik team
 answered on 29 Nov 2011
1 answer
150 views
Hello.

I am trying to enable a Buttom when somebody check a column on a RadGridView ...

it is the classic example of delete row ... I want to enable the delete buttom when somebody check at least one row in the grid.

Here is my code:

<telerik:RadButton Margin="2" Name="deleteApplicationButton" Click="deleteApplicationButton_Click" IsEnabled="False">
                           <Image Source="component/Resources/tool_bar_delete.png" Stretch="None" ToolTipService.ToolTip="New Application" />
                       </telerik:RadButton>
                   <telerik:RadGridView Grid.Row="1"                                         
                                        CanUserFreezeColumns="False"
                                        ShowGroupPanel="False"
                                        ItemsSource="{Binding Path=Applications, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                        AutoGenerateColumns="False"                                          
                                        SelectionChanged="RadGridView_SelectionChanged"                                          
                                        Name="RadGridViewApplication" 
                                        IsSynchronizedWithCurrentItem="True" 
                                        CellEditEnded="RadGridViewApplication_CellEditEnded">                       
                       <telerik:RadGridView.Columns>
                           <telerik:GridViewCheckBoxColumn Header="Delete" DataMemberBinding="{Binding Path=IsChecked}"></telerik:GridViewCheckBoxColumn>
                          <!-- <telerik:GridViewDataColumn Header="Disable" DataMemberBinding="{Binding Path=Disable}" /> -->
                           <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Key}"  IsReadOnly="True" />
                           <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Path=Description}" Width="*" IsReadOnly="False" />
                           <telerik:GridViewDataColumn IsVisible="False" Header="GUID" DataMemberBinding="{Binding Path=GUID}" Width="*" IsReadOnly="False" />                            
                       </telerik:RadGridView.Columns>

Please, how can I do it ... Could anybody provide a simple example?

Thanks a lot
Petar Mladenov
Telerik team
 answered on 29 Nov 2011
13 answers
2.4K+ views
Hi

I have managed to change most of the appearance of the date time picker to fit in with my application by using a modified metro theme.
The only thing that I can't seem to do is change the font size.

Is there an easy way to do this?

I really don't want to have to generate a huge style file using blend - I don't have Blend for starters and I have downloaded an example date time style and it's huge. I just don't have the time to pick through it. I just want to increase the font size.

Any ideas?

Cheers

Steve
Dani
Telerik team
 answered on 29 Nov 2011
1 answer
157 views
The pop-up font editor does not abide by the set theme (see attachment). In the rich text box, when a word is highlighted and hovered over, a pop-up appears allowing the user to quickly modify the selected word's font. This pop-up is only partially styled based off of the set theme, even when the theme is set as follows:
StyleManager.ApplicationTheme = new Expression_DarkTheme();

Is there a way to address this issue, or failing that, a way to disable the pop-up?
Boby
Telerik team
 answered on 29 Nov 2011
1 answer
138 views

For example, I have an ObservableCollection with 10000 items, and I want to add 1000 items to this collection. If I were to add the 1000 items one by one, it would be painfully slow because of the 1000 CollectionChanged events fired. The second option is to use the RadObservableCollection's SuspendNotifications and Reset methods. This option is more tolerable but it's still not desirable as adding 1000 items causes the control to reload the whole collection of 11000 items. Is there a better way to add 1000 items with a single CollectionChanged event being raised that is not a Reset action?


Thanks.
Vlad
Telerik team
 answered on 29 Nov 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?