Telerik Forums
UI for WPF Forum
1 answer
132 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.3K+ 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
144 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
129 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
1 answer
76 views
My application can open items in either the document host of a RadDocking control, or open them into a new window (not a docking floating window).

When the item is opened and put into the Docking control, the CPU Usage of the program constantly busy, anywhere from 2-7 % (relative per machine of course) As soon as i close my item, the CPU goes back down to 0 and never moves.

If I open the item into a new window, the CPU usage does not move as the program sits, like it does when it is docked in the docking control.

Any idea why I might have this Issue?
George
Telerik team
 answered on 28 Nov 2011
1 answer
64 views
Hi,
I'm trying to make a visibility of an item depends on its property.
Searcing the forum gave me several similar questions but I could not find the answer.
I hope someone take a look at this problem.
Many thanks.


Chris
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
116 views
I'm interested in replaying a control's default animations when it's visibility changes to Visible.  If it matters, I'm particularly interested in RadChart and RadTileView animations.  Are there examples that accomplish this?

Thanks,
Kevin
Yana
Telerik team
 answered on 28 Nov 2011
1 answer
116 views
When a chart is first populated with data, the series are drawn with animation.

I would like to repeat this animation when the chart comes back into focus (e.g. if the form is minimised, then I would like to show the animation again when the form is maximised).

Does anyone know how to replay the animation?

Thanks.
Sia
Telerik team
 answered on 28 Nov 2011
1 answer
182 views
Hi,

I'm using trial version of Telerik WPF controls (Q3 2011) and trying to create my own theme for ScheduleView using following article as a guide Creating a Custom Theme Project (I know it is written for Silverlight control but I can't find something similar for WPF)
I used SchedulerView.xaml from OfficeBlue theme as a starting point for my modification. And it looks like I almost successfully applied my custom theme to the RadScheduleView controls. My problem is that some "parts" of the control are missing in the custom theme, you can see it on the screenshot attached bellow.
It is obvious I'm doing something wrong but I can't figure out what is exactly wrong, so could you please help me with it.

Here is the link to my demo project http://dl.dropbox.com/u/3950376/TelerikScheduleView.zip (I don't know how to attach zip files to my message here)

Thanks,
Alexander
Dani
Telerik team
 answered on 28 Nov 2011
1 answer
98 views

I have two sources for dragging and dropping appointments onto the ScheduleView. Both consist of dragging custom appt objects so they both utilize a custom dragdrop handler class and use the override of the ConvertDraggedData method. I am wondering if it would be possible to arrange the appts in such a way that if I grabbed appts from all over the view and then dragged them to a specific resource at a specific time, If I could then just have them updated in such a way that the appts were dropped one after another in the view (stacked horizontally in timeline view for example). I think the issue I am having is that destination slots need to be updated somehow to reflect where I want the appts to eventually be. Hopefully this isn't too confusing and someone can lead me in the right direction. Here is a bit of code that I wrote but obviously it isn't working like I expect at this point. I am basically trying to re-arrange the appts so that one comes right after another when they are dropped. The collection looks like I expect when it comes out of my ArrageTasks, but the result is the appts still end up in slots all over the view.

public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
        {
            if (data.GetType() == typeof(DataObject))
            {
                return ArrangeTasks(data);
                //return (data as DataObject).GetData("MetrixTaskAppointments") as IList<IOccurrence>;
            }
 
            return base.ConvertDraggedData(data);
        }
 
        private IEnumerable<IOccurrence> ArrangeTasks(object data)
        {
            IList<IOccurrence> appts = (data as DataObject).GetData("MetrixTaskAppointments") as IList<IOccurrence>;
            IEnumerable<IOccurrence> sortedAppts = appts.OrderBy(f => f.Start);
 
            IEnumerator apptEnumerator = sortedAppts.GetEnumerator();
            DateTime savedPlanTravelEndDttm = DateTime.Now;
            bool firstTask = true;
            while (apptEnumerator.MoveNext())
            {
                MetrixTaskAppointment mAppt = (MetrixTaskAppointment)apptEnumerator.Current;
                IAppointment appt = (Appointment)apptEnumerator.Current;
 
                if (firstTask == true)
                {
                    firstTask = false;
                }
                else
                {                   
                    mAppt.PlanTravelStartDttm = savedPlanTravelEndDttm;
                    mAppt.PlanStartDttm = mAppt.PlanTravelStartDttm.AddMinutes(mAppt.PlanTravelToMin);
                    mAppt.PlanEndDttm = mAppt.PlanStartDttm.AddMinutes(mAppt.PlanTaskDurMin);
                    mAppt.PlanTravelEndDttm = mAppt.PlanEndDttm.AddMinutes(mAppt.PlanTravelReturnMin);
                    appt.Start = mAppt.PlanStartDttm;
                    appt.End = mAppt.PlanEndDttm;
                }
                 
                savedPlanTravelEndDttm = mAppt.PlanTravelEndDttm;
            }
 
            return sortedAppts;
  
        }

Yana
Telerik team
 answered on 28 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?