Telerik Forums
UI for WPF Forum
3 answers
133 views
I have a TreeView control that is bound to a XML source to populate the Tree about 3 nodes deep. Trying to search the Tree for a specific node or nodes containing that string but I can't seem to get an idea how. Has anyone done this using this control or has an idea how to go about doing it.
Hristo
Telerik team
 answered on 05 Aug 2010
1 answer
104 views
We have this code where we can switch from a pie to a bar.
The problem is: when we use the pie, the colors from the palette are used for each datapoint (4 different colors) and the legend shows the 4 datapoints in the serie.
But, switching to the bar, the colors are not used (we only get one color) and the datapoints (Nr1, Nr2...) don't show up in the legend.

        private BrushCollection _palette;

        public BrushCollection Palette

        {

            get { return _palette;}
            set { _palette = value; }

        }

        private void MakePallette()

        {

            Palette = new BrushCollection

                          {

                            new SolidColorBrush(Color.FromArgb(255, 106, 148, 200)),

                            new SolidColorBrush(Color.FromArgb(255, 238, 141, 61)),

                            new SolidColorBrush(Color.FromArgb(255, 145, 178, 80)),                         

                            new SolidColorBrush(Color.FromArgb(255, 255, 155, 152))

                          };

        }

        private void MakeChart()

        {

            RadChart radChart = new RadChart();s

            DataSeries dataSeries = null;

            MakePallette();

            foreach (Brush item in Palette)

            {

                radChart.PaletteBrushes.Add(item);

            }

           

            switch (ChartName) // determine what kind of data to display

            {

                case "A":

                    {

                        radChart.DefaultView.ChartTitle.Content = "All A";

                        switch (ChartNr)    // determine what kind of rendering (bar, pie...etc)

                        {

                            case 1:

                                dataSeries = new DataSeries { Definition = new PieSeriesDefinition() };

                                break;

                            case 2:

                                dataSeries = new DataSeries { Definition = new BarSeriesDefinition() };

                                break;

                        }

                        // Create a DataPoint

                        DataPoint dataPoint = new DataPoint { YValue = 8, Label = "8", LegendLabel = "Nr 1" };

                        dataSeries.Add(dataPoint);

                        

                        dataPoint = new DataPoint { YValue = 3, Label = "3", LegendLabel = "Nr 2" };

                        dataSeries.Add(dataPoint);

                       

                        dataPoint = new DataPoint { YValue = 10, Label = "10", LegendLabel = "Nr 3" };

                        dataSeries.Add(dataPoint);

                       

                        dataPoint = new DataPoint { YValue = 25, Label = "25", LegendLabel = "Nr 4" };

                        dataSeries.Add(dataPoint);

                    }

                    break;

                case "B":

                    {

                        radChart.DefaultView.ChartTitle.Content = "All B";

                        switch (ChartNr)    // determine what kind of rendering (bar, pie...etc)

                        {

                            case 1:

                                dataSeries = new DataSeries { Definition = new PieSeriesDefinition() };

                                break;

                            case 2:

                                dataSeries = new DataSeries { Definition = new BarSeriesDefinition() };

                                break;

                        }

                        DataPoint dataPoint = new DataPoint { YValue = 36, Label = "36", LegendLabel = "Krediteringer"};

                        dataSeries.Add(dataPoint);

                       

                        dataPoint = new DataPoint { YValue = 14, Label = "14", LegendLabel = "Rettelser"};

                        dataSeries.Add(dataPoint);

                        

                        dataPoint = new DataPoint { YValue = 369, Label = "369", LegendLabel = "Enkeltgebyr"};

                        dataSeries.Add(dataPoint);

                    }

                    break;

            }           

            radChart.DefaultView.ChartLegend.Header = string.Empty;

            radChart.DefaultView.ChartArea.DataSeries.Add(dataSeries);

        }

Sia
Telerik team
 answered on 05 Aug 2010
3 answers
148 views
Hi,

Can you please guide me, how can i print contents of the RadGridView.

Thanks,
-Narendra
Veselin Vasilev
Telerik team
 answered on 05 Aug 2010
1 answer
52 views
Hi,

Is there any functionality on RadGridView which supports searching data for any column (a column, a list of columns or all the columns at the same time)

NOTE: I'm aware of filtering functionality on gridview.

Thanks,
-Narendra
Veselin Vasilev
Telerik team
 answered on 05 Aug 2010
1 answer
586 views
I have the following derivation that includes the customary static constructor.

 

public class CustomRadDatePicker : RadDatePicker

 

 

static CustomRadDatePicker()

 

{

DefaultStyleKeyProperty.OverrideMetadata(

 

typeof(CustomRadDatePicker),

 

 

new FrameworkPropertyMetadata(typeof(CustomRadDatePicker))); // also tried RadDatePicker here

 

}

In the XAML for the controls template I have the following.

 

 

 

<Style TargetType="{x:Type SharedControls:CustomRadDatePicker}">
...

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="{x:Type SharedControls:CustomRadDatePicker}">

Now when I use the control on a page it does not use the style I have set up but is using the Telerik style.
I have my derived control and its template set up in a WPF custom control library.
Is it allowed to override the Teleric Style?

-eric

 

George
Telerik team
 answered on 05 Aug 2010
1 answer
185 views

 

Hi,

As per my observations on RadTabcontrol, i found tooltip property is there.

Is there any property which i set the style of the tooltip like Background and ForeGround?

Miroslav
Telerik team
 answered on 05 Aug 2010
5 answers
161 views
So instead of having a one close button at the far right of the tab strip, you'd then have a close button on each tab header (like the tabstrip on Google Chrome).

Possible?
Dani
Telerik team
 answered on 05 Aug 2010
5 answers
252 views
I am pleased to see that Telerik has implemented the ability to draw custom lines onto the chart, after the request (http://www.telerik.com/community/forums/wpf/chart/drawing-extra-elements-into-or-on-top-of-chart.aspx) that was made; although I don't know if it was already in the works.

Is it possible to draw the CustomLines on top of the Bars? If the Bar's item width percent is set to 100 they effectively are invisible unless drawn at a Y-Value above the bars.
Sia
Telerik team
 answered on 05 Aug 2010
2 answers
86 views
I have a  GridView in my application which displays product information.
Now when  user selects a product, a window is shown. The user can update description here. This description is saved to DB.
Now I want to reflect these changes in the GridView w/o making a new query to DB.
How to assign the changed description to selected product??
Xaria D
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
108 views
I wish to handle the data loaded event  for RadGridView.
Further, I need to check a particular value for each row in the grid and perform certain operations.
How to cast the row items to a class object?

P.S. Sorry I posted in the wrong forums
Vlad
Telerik team
 answered on 05 Aug 2010
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
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
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?