Telerik Forums
UI for WPF Forum
3 answers
76 views
Hi team,

Could you please advise, How can I change the searchtextbox's foreground property of the propertyGrid either through Xaml or Code?

Regards,
Imran
Yoan
Telerik team
 answered on 21 Jul 2014
2 answers
246 views
I am using Telerik version 2014.1.331.45

I have a RadGridView like:
<telerik:RadGridView Name="RadGridView" ItemsSource="{Binding DynamicValues, Mode=TwoWay}" <br>                             SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}" CanUserDeleteRows="True" <br>                             CanUserInsertRows="True" CanUserReorderColumns="False" CanUserSortColumns="False" <br>                             ShowGroupPanel="False"<br>                             IsFilteringAllowed="False"<br>                             SelectionMode="Extended"<br>                             SelectionUnit="Mixed"<br>                             IsSynchronizedWithCurrentItem="True" <br>                             behavoirs:ValidationBehavior.IsValidationEnabled="True" ClipboardPasteMode="SkipHiddenColumns">

I need to select all cells of column on clicked column header

i wrote next code for make header clickable:
foreach (var column in RadGridView.Columns)<br>            {<br>                var temp = column.Header;<br>                column.Header = new MyButton { Content = temp.ToString(), ViewModel = this };<br>            }

and custom button class:

 private class MyButton :RadButton<br>        {<br>            public override string ToString()<br>            {<br>                return Content.ToString();<br>            }<br><br>            protected override void OnMouseDown(MouseButtonEventArgs e)<br>            {<br>                if (ViewModel.columnHeaders.ContainsKey(e.Source.ToString()))<br>                {<br>                    foreach (var value in ViewModel.RadGridView.Items)<br>                    {<br>                        var row = ViewModel.RadGridView.ItemContainerGenerator.ContainerFromItem(value) as GridViewRow;<br>                        if (row != null) row.Cells[index].IsSelected ???<br>                    }<br>                }<br>                base.OnMouseDown(e);<br>            }<br><br>            public EditViewModelBase ViewModel { get; set; }<br>        }

but row.Cells[index]  does not have property IsSelected, how I can set cell property selected?

George
Top achievements
Rank 1
 answered on 21 Jul 2014
1 answer
125 views
Hi,

I apply mvvm pattern for RadDiagram. Both shapes and connections are bound to classes that derive from the Diagram.Extension classes. Everything works quite fine except, I cannot add new connection using the ActiveTool=MouseTool.ConnectorTool. When I set the ActiveTool to Connector tool, the mouse cursor changes to connector mode but it does not draw any arrow when clicked and moved on the Diagram. How can I provide the functionality to add connections between the shapes and keep the MVVM pattern?

Thanks in advance,
Semih
Pavel R. Pavlov
Telerik team
 answered on 21 Jul 2014
2 answers
89 views
Hi,

We are using Rad schedule view weekly view for our project.
I need an approach to achieve the below items.
1. Need to freeze the first column near to time ruler.
2. Display a text on the header of the time ruler column.

Please let me know appropriate approach to achieve this. Attached the output same for reference.


Thanks in Advance,
Sugumar P.
Sugumar
Top achievements
Rank 1
 answered on 21 Jul 2014
3 answers
67 views
Hi,

I am using RadTreeView control.I have implemented context menu for renaming,While renaming the node if i delete the text and press tab it should give default string "Runjith".

I tryed under this "treeview_Edited(object sender, RadTreeViewItemEditedEventArgs e)" event

 e.Source = "Runjith";
 treeview.SelectedItem = (RunjithNode)e.Source;

I am getting error for this line(treeview.SelectedItem = (RunjithNode)e.Source;)"Additional information: Unable to cast object of type 'System.String' to type 'xyz.namespace.Runjith'." Runjith class inherits RadTreeViewItem.

How to fix please help me ASAP................

BR,Runjith
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
2 answers
120 views
Hi,
We've just upgraded to Q2 2014 and replaced retired RadMaskedTextBox with RadMaskedTextInput with these properties set
<Setter Property="Mask" Value="###-###-####" />
<Setter Property="EmptyContent" Value="___-___-____" />
<Setter Property="IsClearButtonVisible" Value="False" />
<Setter Property="AllowInvalidValues" Value="False"></Setter>

Two issues:
1. Mask is set to ###-###-####. However, it allows for spaces.
2. I can't paste more than once into it. First Paste works fine, but then if I delete the contents and paste again  with Context Menu Paste, nothing happens.  If I use Ctrl+V, it does paste but only after second try.

Is there a way to fix both?
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
1 answer
130 views
I just upgraded to the latest WPF controls.  Now the tool bar is acting funky.  I have a grid within the toolbar that has various labels and text boxes.  It displayed fine before the upgrade.  Now the tool bar displays a black tool bar but by clicking on the arrow on the far right side of the control the correct tool bar pops up above the tool bar.

I've played around with the band and band index settings but nothing works.

Any help would be greatly appreciated.
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
1 answer
168 views
Hi,

I have two questions

1. Is it possible to bind the tileview header colour?
2. Can I seet the size of the maximised tile?

Regards,
Joe
Pavel R. Pavlov
Telerik team
 answered on 21 Jul 2014
5 answers
385 views
Hello,

I have a view with RadGridView and RadDataPager. Grid´s source is PagedSource of data pager. Data pager is bound to IQueryable of items so Data pager manages data reading itself. Paging is working well but I don´t know how to refresh grid if user pressed a button for manual refresh. I have tried to use Grid.Rebind() but it didn' t work. Is there any method I could call to explicitly cause Data pager to reads data from database? And is there any event triggered during it? Because I would like to use busy indicator during the refresh.

Thanks,
Karel Bem
Yoan
Telerik team
 answered on 18 Jul 2014
2 answers
108 views
Hi support,

I am adding a AggregateFunction to a gridcolumn with the following code:

bool showFooter = false;
foreach (var col in radGridView.Columns)
{
    if (col.UniqueName == "dauer") // Column with double-values
    {
        col.AggregateFunctions.Add(new SumFunction() { ResultFormatString = strFormat, SourceField = col.UniqueName });
        showFooter = true;
    }
}
radGridView.ShowColumnFooters = showFooter;

Adding a footer should only happens if my table has a column of data-type double named "dauer" otherwise columnfooters should not been shown. After doing this the footer has correctly been show but the first time the sum of the column is displayed when I sort a column of the grid via clicking on a column header.

You can reproduce this behavior in your sample-program "persistence framework / gridview serialization" when you put these lines of code in function "OnLoad" of Example.xaml.cs after calling this.EnsureLoadState() (of course you have to add a new column "dauer" to your dataset)

What do I have to do to show the results of the aggregate-function directly.

Thanks in advance

Marcus
Marcus
Top achievements
Rank 1
 answered on 18 Jul 2014
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
SplashScreen
Rating
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
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?