Telerik Forums
UI for WPF Forum
1 answer
527 views
Hi,

Confirmation Message before delete or save an Item from DataGrid.
I used a telerik command for deletion of row from datagrid, but user should get a confirmation message before delete of row.
I tried attached code...
<telerik:RadGridView Grid.Row="2" x:Name="orderView" ItemsSource="{Binding Order}" 
                    AutoGenerateColumns="False"  CanUserDeleteRows="{Binding IsChecked, Mode=TwoWay, ElementName=CanUserDeleteRowsCheckBox}"
                             IsReadOnly="{Binding IsChecked, Mode=TwoWay, ElementName=IsReadOnlyCheckBox}" SelectionMode="Extended">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewToggleRowDetailsColumn />
                    <telerik:GridViewSelectColumn Header="Select" x:Name="chkbox" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding CustomerName}" Header="Name" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}" Header="Age" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=COActivity.ActivityDescription}" Header="Age" />
                </telerik:RadGridView.Columns>
</telerik:RadGridView>
  
  
<Button Content=" Delete" Style="{StaticResource GreyButtonStyle}" Command="telerik:RadGridViewCommands.Delete" CommandTarget="{Binding ElementName=gvCustomerOrder}">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <cmd:EventToCommand Command="{Binding Path=DeleteCustomerOrderCommand}" PassEventArgsToCommand="True" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
  
private RelayCommand<RoutedEventArgs> _deleteCustomerOrderCommand;
        public RelayCommand<RoutedEventArgs> DeleteCustomerOrderCommand
        {
            get
            {
                if (_deleteCustomerOrderCommand == null)
                {
                    _deleteCustomerOrderCommand = new RelayCommand<RoutedEventArgs>(param => this.DeleteCustomerOrder(param), param => this.CanDeleteCustomerOrder());
                }
                return _deleteCustomerOrderCommand;
            }
        }
        private void DeleteCustomerOrder(RoutedEventArgs e)
        {
             
        }
        private bool CanDeleteCustomerOrder()
        {
            string messageBoxText = "Are you sure you want to delete the selected Orders?";
            string caption = "Confirm";
            MessageBoxButton button = MessageBoxButton.YesNo;
            MessageBoxImage icon = MessageBoxImage.Question;
            MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button, icon);
  
            if (result == MessageBoxResult.Yes)
            {
                return true;
            }
            else
            return false;
        }
Maya
Telerik team
 answered on 20 Apr 2011
1 answer
152 views
Is there a simple way or an example to make/use an Internet Explorer or Firefox style tab control where clicking on the last empty short tab creates a new tab?  In WPF, the new tab would display the same user control as other tabs (except the empty tab, of course).  http://www.codeproject.com/KB/WPF/WpfTabControl.aspx shows how to extend the existing Microsoft tab control, but it would be nice if Telerik had these added features.
Miro Miroslavov
Telerik team
 answered on 20 Apr 2011
4 answers
139 views

Hello,

Is there a MVVM Documentation for best practices with Infragistics WPF? - including the xamDataGrid... :)

Thanks for all answers!

Jean-Sebastien
Top achievements
Rank 1
 answered on 20 Apr 2011
3 answers
282 views

How to build and create dynamic indicator in VB code instead of XML

So the indicator should be change according to my input value

 

Also I wanna change the range and the scale in VB code to make it more flexible.
in radical and simi gauge

 

Please let me know how to do that ASAP

 

Thanks in advance

Andrey
Telerik team
 answered on 20 Apr 2011
1 answer
126 views

Hello,

Just after exporting gridview datas to excel, i need to open the newly created excel file directly in excel on client side.

How can i do that ????

Thanks

Frederic
GenApi
Yavor Georgiev
Telerik team
 answered on 20 Apr 2011
1 answer
107 views
I want to show Data in a textblock when user select a row in GridView.
i use a dataset as itemsource for GridView. NOw please tell me how to i do that????
Ivan Ivanov
Telerik team
 answered on 20 Apr 2011
3 answers
84 views
I followed the instructions here http://www.telerik.com/help/wpf/radgridview-styles-and-templates-styling-radgridview.html but when I try to edit the style or template all I get is options for "empty" ones... I can't get it to let me use the existing styles as a base.

Any suggestions?

Thanks!
Vanya Pavlova
Telerik team
 answered on 19 Apr 2011
3 answers
224 views
Hi,
I am working on an application where we need shortest distance between 2 addresses. I will provide one reference point and a collection of addresses against it. The map should return me the shortest distance address from the collection of addresses. Thanks
Andrey
Telerik team
 answered on 19 Apr 2011
10 answers
377 views
Hello again,

I am wondering if there is a way to use multiple MapProviders and then show them on top of each other. For example a Providers-property instead of a Provider-property in the RadMap-class.
As far as I've seen the InformationLayer and the DynamicLayer is no option for us since we want to deliver tiles.

Best regards
   Markus
Andrey
Telerik team
 answered on 19 Apr 2011
1 answer
163 views
Hi,
I have a grid that contains in one row a RadTileView control. i set a MouseLeftButtonDown event to the grid but when i make a click in the tileview area it does not shoot. Then i put the same event in the RadTileView control but did not work neither.
When i put the event on the tleviewItem it works correctly but what i need is to start this event when somebody click in an empty area.
Any solutions to this?
Sry for my english.
Greetings.
Zarko
Telerik team
 answered on 19 Apr 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?