radchart.DefaultView.ChartArea.AxisY.AutoRange = false;radchart.DefaultView.ChartArea.AxisY.AddRange(0, 100000000, 100000000 / 4);radchart.DefaultView.ChartArea.AxisY.AddRange(100000000, 1000000000, (1000000000 - 100000000)/4);radchart.DefaultView.ChartArea.AxisY.AddRange(1000000000, max2, (max2 - 1000000000) / 2);RadPane redlineBottomPane = new RadPane();redlineBottomPane.Name = "rpnBottomRedline";redlineBottomPane.Header = "Redline Sessions";redlineBottomPane.Title = "Redline Sessions";redlineBottomPane.CanUserClose = false;redlineBottomPane.CanDockInDocumentHost = true;redlineBottomPane.IsPinned = true;Telerik.Windows.Controls.RadDocking.SetSerializationTag(redlineBottomPane, "RedlinePluginPane");Hi,
My Grid is loading its data by a user request. So when the Grid is loaded at the startup it is empty.
When the grid is loaded with data by a command that user selects I need to select the first row and set the focus to the first cell of that row. I am using RowLoaded event in this code to accomplish this:
private void SearchGrid_RowLoaded(object sender, RowLoadedEventArgs e) { //Set the focus to first cell after the last row is loaded if (SearchGrid.ChildrenOfType<GridViewCell>().Count() > 0) { if (e.DataElement == SummaryList[SummaryList.Count() - 1]) { SearchGrid.SelectedItem = SummaryList[0]; SearchGrid.ChildrenOfType<GridViewCell>().First().Focus(); } } }
As a proof of concept I have tried to adjust the CircleRevealTransitionsEffect to support telerik doing as follows:
Changed the "CircleRevealTransitionEffect" to inherit from BaseTransitionEffect (I assume that this might be the problem)
public class CircleRevealTransitionEffect : Telerik.Windows.Controls.TransitionEffects.BaseTransitionEffectAnd the added a new class "CircleRevealTransitionProvider"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Telerik.Windows.Controls.TransitionControl; using System.Windows.Media.Effects; namespace TransitionEffects.TelerikProviders { public class CircleRevealTransitionProvider : TransitionProvider { protected override ShaderEffect CreateTransitionEffect() { CircleRevealTransitionEffect effect = new CircleRevealTransitionEffect(); return effect; } } }
Everything compiles nicely but using the transition gives an runtime error: "transitioncontrol/transitioneffects/effects/circlerevealtransitioneffect.ps". Do you have a clue to what can be the problem.
I know that my question will force you to install WPF Shader Effect library yourself, but if this is a problem I will try minimize the size of the library and attach my own version here. But I guess it is more simple for you to download the complete source from CodePlex. Remeber to install the "Shader Effect Build Task and Effects" to be able to compile it all. It's works smoothly.
http://wpf.codeplex.com/releases/view/14962#DownloadId=40167
Looking forward to hear from you.