Telerik Forums
UI for WPF Forum
1 answer
544 views

I am trying to place to buttons in the expander header but I want them to be aligned to the right side of the expander header. However, the contents of the header do not take up the entire size of the header, they only take up the minimum space necessary to draw the controls in the header.
Here is what I have:

 

 

 

 

<telerik:RadExpander>

 

 

 

 

<telerik:RadExpander.Header>

 

 

 

 

<Grid Margin="5">

 

 

 

 

<Grid.ColumnDefinitions>

 

 

 

 

<ColumnDefinition Width="5*"/>

 

 

 

 

<ColumnDefinition Width="5*"/>

 

 

 

 

</Grid.ColumnDefinitions>

 

 

 

 

<Button HorizontalAlignment="Left" Content="Click Me" />

 

 

 

 

<Button Grid.Column="1" HorizontalAlignment="Right" Content="Click Me" />

 

 

 

 

</Grid>

 

 

 

 

</telerik:RadExpander.Header>

 

 

 

 

<TextBlock Text="This is a test of the telerik expander control." />

 

 

 

 

</telerik:RadExpander>

 

 

 

 

So I get
\/ Click Me Click Me                                        
This is a test of the telerik expander control

And I want this
\/ Click Me                                         Click Me
This is a test of the telerik expander control


I can get it to work with the following hack but I was hoping this would not be necessary.

 

 

 

<Grid>

 

 

 

<TextBox Margin="30,0,0,0" Height="1" Name="_hiddenWidthControl" />

 

 

 

<telerik:RadExpander IsExpanded="True">

 

 

 

<telerik:RadExpander.Header>

 

 

 

<StackPanel Width="{Binding ElementName=_hiddenWidthControl, Path=ActualWidth}">

 

 

 

<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">

 

 

 

<Button HorizontalAlignment="Right" Content="Click Me" />

 

 

 

<Button Grid.Column="1" HorizontalAlignment="Right" Content="Click Me" />

 

 

 

</StackPanel>

 

 

 

</StackPanel>

 

 

 

</telerik:RadExpander.Header>

 

 

 

<TextBlock Text="This is a test of the telerik expander control." />

 

 

 

</telerik:RadExpander>

 

 

 

</Grid>

 

 

 

Thanks,

Billy Jacobs

Dimitrina
Telerik team
 answered on 29 May 2009
3 answers
276 views
Is there an easy way to return all the times in the treeview in one statement?  I have a treeview that I manually load through code that is 5-6 levels deep with checkboxes.  I then need to go through every item in the Treeview and check if it is checked or not and update the database.  It doesn't matter what order it goes in.  Right now, i am looping through each level then looping through the children and it is very slow.  Is there a more efficient way of looping through all items and getting the checkstate?

 

foreach (RadTreeViewItem item in treeColumns.Items)

 

{

 

DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");

 

RecursiveItems(item);

lOrder++;

}

 

private

 

void RecursiveItems(RadTreeViewItem treeitem)

 

{

 

int lOrder = 1;

 

 

foreach (RadTreeViewItem item in treeitem.Items)

 

{

 

DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");

 

 

if (item.Items.Count > 0)

 

{

RecursiveItems(item);

}

lOrder++;

}

 

DataAccess.ctx.SubmitChanges();

 

}

Miroslav
Telerik team
 answered on 29 May 2009
1 answer
51 views
Hi,

     i have used "telerik:RadCarousel".
     it will navigate forward or backword using arrow keys automatically.
     but when i press HOME or END key then it is throwing an exception(System.overflowexception).

      i am not even able to handle this error using try... catch.

Please help.

thanks,
Sachin M. Powar
    
Vlad
Telerik team
 answered on 29 May 2009
3 answers
195 views
Hello.

OK, so I'm a designer (don't all run away).  I work in Blend 98% of the time, VS very rarely.  I've downloaded the WPF demo and have been asked to trial it to see if it's worth having, I think the idea is if us designers can work it we'll all be ok.

So, basically, can the Rad Tools for WPF be used directly in Blend or is it a VS job after we've made the UI?  If you can use it directly in Blend, are there any tutorials?

Regards, A.
Kalin Milanov
Telerik team
 answered on 29 May 2009
3 answers
127 views
Hi

Do I need to convert my xml datasource to a collection before binding to the radpanelbar or can I bind direct to an xml file?
If I can bind directly please advise how.

Many thanks.
Dimitrina
Telerik team
 answered on 28 May 2009
2 answers
149 views
I have the following linq code...
var CVDOverviewData = from cvdo in pieData.CVDOverviews  
                                  select new  
                                  {  
                                    OverTwentyfive = cvdo.OverTwentyfive,  
                                    OverTwenty = cvdo.OverTwenty,  
                                    OverFifteen = cvdo.OverFifteen,  
                                    OverTen = cvdo.OverTen,  
                                    LessTen = cvdo.LessTen  
                                  }; 

the result is a sinlge row with a column for each range (over25, over20, over15 ...)

How so I get these values into a pie chart?

Sorry if this is a real newbie question.

Cheers in advance.

Ves
Telerik team
 answered on 28 May 2009
5 answers
163 views
Hi

I am unable to run your demo's online, with IE or with Firefox. So I modified the demo's app config (installed on my machine) to point to Northwind on SQL server 2005, so I can peruse the grid demo's. Putting a trace on SQL server it traces the following TSQL 

SELECT [t0].[EmployeeID], [t0].[LastName], [t0].[FirstName], [t0].[Title], [t0].[TitleOfCourtesy], [t0].[BirthDate], [t0].[HireDate], [t0].[Address], [t0].[City], [t0].[Region], [t0].[PostalCode], [t0].[Country], [t0].[HomePhone], [t0].[Extension], [t0].[Photo], [t0].[Notes], [t0].[ReportsTo]
FROM [dbo].[Employees] AS [t0]

Then the Demo dies, with no stack trace

What can I do (where can I go) to see the features of your grid

P





Hristo
Telerik team
 answered on 28 May 2009
1 answer
128 views
Any news or thoughts on a Telerik combobox. The one that ships with VS2008 is fairly limited and does not work as users would like. For example, using the up and down keys and then selecting item with tab key.


Nikolay
Telerik team
 answered on 28 May 2009
1 answer
152 views
Hi,

I have the following code:

            PieSeriesDefinition definition = new PieSeriesDefinition();  
            definition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;  
            radChart1.DefaultSeriesDefinition = definition;  
 
            DataSeries DS = new DataSeries();  
            DataPoint DP = new DataPoint();  
 
            DS.LegendLabel = "Over25";  
            DP.YValue = 66;  
            DS.Add(DP);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS);  
 
            DataSeries DS2 = new DataSeries();  
            DataPoint DP2 = new DataPoint();  
            DS2.LegendLabel = "Over20";  
            DP2.YValue = 100;  
            DS2.Add(DP2);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS2);  
 
            DataSeries DS3 = new DataSeries();  
            DataPoint DP3 = new DataPoint();  
            DS3.LegendLabel = "Over15";  
            DP3.YValue = 120;  
            DS3.Add(DP3);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS3);  
 
            DataSeries DS4 = new DataSeries();  
            DataPoint DP4 = new DataPoint();  
            DS4.LegendLabel = "Over10";  
            DP4.YValue = 113;  
            DS4.Add(DP4);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS4);  
 
            DataSeries DS5 = new DataSeries();  
            DataPoint DP5 = new DataPoint();  
            DS5.LegendLabel = "Under10";  
            DP5.YValue = 178;  
            DS5.Add(DP5);  
            radChart1.DefaultView.ChartArea.DataSeries.Add(DS5); 

But this is producing a bar chart. how do I make it a Pie chart?

Cheers,
Kevin.
Giuseppe
Telerik team
 answered on 28 May 2009
1 answer
123 views
I am about to start a new app that will be both WPF and Silverlight.  I noticed for both WPF and Silverlight RadControls that you state

"Common Codebase and Shared API with WPF Controls"

That's great but the components that I really like in Silverlight, Drag & Drop, Docking and Toolbar/Menu/ContextMenu are not in WPF.  Are there plans to add these to WPF

Regards,

Dan R.
Daniel
Top achievements
Rank 1
 answered on 27 May 2009
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?