Telerik Forums
UI for WPF Forum
1 answer
110 views
Hello,

We have definition of RadGridView with a GroupDescriptor:

<TelerikControls:RadGridView Name="grid" SelectionMode="Multiple" IsReadOnly="True">
   <TelerikControls:RadGridView.GroupDescriptors>
      <telerik:GroupDescriptor Member="Id" SortDirection="Ascending">
         <telerik:GroupDescriptor.AggregateFunctions>
            <telerik:CountFunction Caption="Models: " />
            <telerik:SumFunction Caption="Reslts: " SourceField="ResultCount" />
         </telerik:GroupDescriptor.AggregateFunctions>
      </telerik:GroupDescriptor>
   </TelerikControls:RadGridView.GroupDescriptors>
</TelerikControls:RadGridView>

If the user un-groups the grid and then groups it by "Id" over again,
information in the group header gets lost. 
Is it a bug?

Thank you,
Victor
Rossen Hristov
Telerik team
 answered on 07 Sep 2011
3 answers
318 views
Hi,

we're testing the breadcrumb control right now and would like to bind the Path property instead of using code behind (since we're using MVVM) however, even if that property already uses notify property changed, the breadcrumb is still not updating the path.

aside from this, we have several tree views and would like to update the itemsource for the control, but it isn't reflecting in the control as expected (a second click would reflect the new itemssource.
the data is okay if we

private ObservableCollection<TreeViewItems> items;
public ObservableCollection<TreeViewItems> Items
{
    get
    {
        return items;
    }
    set
    {
        items = value;
        OnPropertyChanged("Items");
    }
}
 
private string currentPath = "";
public string CurrentPath
{
    get
    {
        return currentPath;
    }
    set
    {
        currentPath = value;
        OnPropertyChanged("CurrentPath");
    }
}

internal void OnSelectedMenuChanged(TreeViewItems tvi)
        {
            ...some code...
 
            this.R = Util.CreateTreeView();
            //returns an observable collection similar to the sample implementation
            this.CurrentPath = sb.ToString();
 
        }

<telerik:RadBreadcrumb x:Name="explorerBreadcrumb"
     Path="{Binding CurrentPath}"
     Header="{Binding R[0]}"
     HeaderMemberPath="CategoryName"
     HierarchicalItemsSource="SubCategories"
     HierarchicalMemberPath="CategoryName"
     ItemsSource="{Binding R[0].SubCategories}"
     TextModePath="CategoryName" />


thanks!
Zarko
Telerik team
 answered on 07 Sep 2011
16 answers
206 views
Hi,

We faced with a problem after updateting the controls to heigher version, namely: RadControls_for_WPF40_2011_2_0712_Dev.

Our Floating Panes doesn't works as previousely.

We have the following code:
// pop-up window.
var toolWindow = VisualUtils.FindParentOfType<ToolWindow>(sender as DependencyObject);
toolWindow.VerticalOffset = VerticalOffset;
toolWindow.HorizontalOffset = HorisontalOffset;
toolWindow.Width = PopupWidth;
-toolWindow is null.
-the properties VerticalOffset and HorisontalOffset doesn't exists anymore in class ToolWindow. 
1) I assume that now I have to use RadPaneGroup (as container for floating windows ??) instead of ToolWindow. If so, than provide me please wich proeprties or whatever I have to use to have the oldest behaviour of my float windows (popups). 2) When I use RadPaneGroup it works but the popup is not appears like previousely, it is pinned. The method MakeFloatingOnly() doesnt works for us anymore. Need your help ASAP. ---Julian
Miroslav Nedyalkov
Telerik team
 answered on 07 Sep 2011
1 answer
452 views

I’m using the RadDateTimePicker control is a WPF application and it’s behaving very oddly.


Here’s the XAML for the control:

  

<UserControl x:Class="CarSystem.CustomControls.HotListEdit" 
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
              xmlns:cs="clr-namespace:CarSystem.CustomControls" 
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
              xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls" 
              mc:Ignorable="d" 
              DataContext="{Binding HotListEntry, Mode=TwoWay, RelativeSource={RelativeSource Self}}" 
              Height="600" 
              Width="1122"> 
                                   . . .

    <telerik:RadDateTimePicker CurrentDateTimeText="{Binding Path=EndDate, Mode=TwoWay}"

                               FontSize="18" 

                              FontWeight="Bold" 

                              Margin="1" 

                              x:Name="EndDateBox" 

                               Template="{DynamicResource RadDateTimePickerControlTemplate1}" 

                              VerticalAlignment="Top" />

                                    . . .

</UserControl>


As you can see, I’ve bound the CurrentDateTimeText property of the control to a DateTime property of an object that is bound to the UserControl’s
DataContext property.

 

When I run this program and load an object into the HotListEntry property of the UserControl, the value of the EndDate DateTime property is displayed above the actual date time control, not in it.  Further, if you switch away from the application and come back to it, the extra box containing the EndDate disappears.  

 

I have removed the Template attribute from the XAML for the control and that did not make any difference to the position of the date time on screen.  The interesting thing is that if you use the picker, the extra date-time appears after you set the date to its new value, AND the date you pick appears inside the control.


I’m using the Q2 2011 build of the library.  Is this issue some kind of template problem or is it a bug?  Will you be fixing this soon?  We need this working ASAP.

 

Thank you

Tony

Yana
Telerik team
 answered on 07 Sep 2011
1 answer
194 views
I have to change the ITemsSource for a gridview when the tab index of a tab item changes, but it is not working.


  index = index - 1;
                            Object g = tcDates.SelectedItem;
                            TabItem ti = (TabItem)g;
                            DateTime selDate = Convert.ToDateTime(ti.Header.ToString());
                             
                            this.dgvProcs.ItemsSource = null;
                             
 
                            IList<Procs> currentList = this.apptProcsVerifs[index].Appointment;
                            this.dgvProcs.ItemsSource = currentList;
                            this.dgvProcs.Rebind();
 
 
 
 
here is the model:
 
public class VerificationApptModel
    {
     public event PropertyChangedEventHandler PropertyChanged;
     private object selectedItem;
     private IList<Procs> _Appt;
     private int _VerificationId;
     private DateTime _ApptDate;   
 
 
     public VerificationApptModel(int verificationID, DateTime apptDate)
     {
         this.VerificationId = verificationID;
         this.ApptDate = apptDate;
          
 
     }
 
 
    
     public IList<Procs> Appointment
    {
        get { return _Appt; }
        set {
            if (_Appt != value)
            {
                _Appt = value;
                OnPropertyChanged(" Appointment");
            }
            }
    }
 
     public int VerificationId
     {
         get { return _VerificationId; }
         set {
             if (value != _VerificationId)
             {
                 _VerificationId = value;
                 OnPropertyChanged("VerificationId");
             }
         }
     }
 
     public DateTime ApptDate
     {
         get { return _ApptDate; }
         set {
             if (value != _ApptDate)
             {
                 _ApptDate = value;
                 OnPropertyChanged("ApptDate");
             }
         }
     }
 
     protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
     {
         PropertyChangedEventHandler handler = this.PropertyChanged;
         if (handler != null)
         {
             handler(this, args);
         }
     }
 
     public object SelectedItem
     {
         get { return this.selectedItem; }
         set
         {
             if (value != this.selectedItem)
             {
                 this.selectedItem = value;
                 this.OnPropertyChanged("SelectedItem");
             }
         }
     }
 
     private void OnPropertyChanged(string propertyName)
     {
         this.OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
     }
 
    }
 

I'm really stuck.. Please help deadline approaching


here is the grid:

 <telerik:RadGridView Name="grdNextApptInfo"  HorizontalAlignment="Left" Width="550" Height="168" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                                         AutoGenerateColumns="False"  RowIndicatorVisibility="Collapsed"  ShowGroupPanel="False" IsFilteringAllowed="False"
                                         ScrollViewer.VerticalScrollBarVisibility="Auto" Visibility="Collapsed" Margin="0,0,0,1" IsReadOnly="True" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="Code" Width="70" DataMemberBinding="{Binding Code}" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Description" Width="70" DataMemberBinding="{Binding Description}" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Creator" Width="80" DataMemberBinding="{Binding LastFirstName}" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="CDate" DataMemberBinding="{Binding CreatedDate}" Width="50" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="For In" DataMemberBinding="{Binding NextAppt}" Width="70" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Diag1" DataMemberBinding="{Binding Diag1}" Width="40" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Diag2" DataMemberBinding="{Binding Diag2}" Width="40" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Diag3" DataMemberBinding="{Binding Diag3}" Width="40" IsSortable="False"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Header="Diag4" DataMemberBinding="{Binding Diag4}" Width="40" IsSortable="False"></telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
Maya
Telerik team
 answered on 07 Sep 2011
10 answers
431 views
I'm using the Calendar along with the ScheduleView and I need to show weekdays only, NO weekends.  I can't figure out how to get rid of these days.  They need to be removed and they should not be accessible when using the forward and back buttons on the scheduleview.  Any ideas?

Thanks,
Greg
Yana
Telerik team
 answered on 07 Sep 2011
1 answer
79 views
I have few questions about the map.

1. Is it possible make the map cycle when you pan over the line with longitude 180, instead of seeing it as the end of the world. For example, when I look at Google map http://maps.google.com/?ll=36.597889,-95.625&spn=178.163461,193.359375&t=h&z=1&vpsrc=6, the map is continues.

2. If not, is it possible to change the bounds, so the map started not at longitude 180, but somewhere else. In such case, when we zoom out, we could make USA to be at the center of the map, or whole Russia to be visible, instead of USA always being at the left, and Russia being broken in two parts.

3. Is it possible to limit panning to avoid seeing gray area, which is again looks like the end of the world?

Thank you,
Maxim Alexeyev.
Andrey
Telerik team
 answered on 07 Sep 2011
2 answers
161 views
When editing the column it uses the mask as expected but when displayed within the column it uses the raw un-masked value. How do I use a mask for both display and editing?
Eric
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
149 views
Hi, I am having trouble with the htmldataprovider and GIF Files:

When I insert a gif picture, export it as HTML, and reimport it again, then the Picture is gone, but the placeholder (empty white space) is still there, The exported HTML contains the GIF-ImageData so the export is working correctly, but the import just wont reimport it, and the next time you export the reimported HTML, the <img> is then lost.

The first export:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_A215EAA9 { margin: 0px 0px 20px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_79B9C72D { font-family: 'Calibri';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
</style></head><body><p class="p_A215EAA9"><img width="12" height="14" src="data:image/gif;base64,R0lGODlhDAAOAPcAAAAAAAAAMwAAZgAAmQAAzAAA/wArAAArMwArZgArmQArzAAr/wBVAABVMwBVZgBVmQBVzABV/wCAAACAMwCAZgCAmQCAzACA/wCqAACqMwCqZgCqmQCqzACq/wDVAADVMwDVZgDVmQDVzADV/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMrADMrMzMrZjMrmTMrzDMr/zNVADNVMzNVZjNVmTNVzDNV/zOAADOAMzOAZjOAmTOAzDOA/zOqADOqMzOqZjOqmTOqzDOq/zPVADPVMzPVZjPVmTPVzDPV/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YrAGYrM2YrZmYrmWYrzGYr/2ZVAGZVM2ZVZmZVmWZVzGZV/2aAAGaAM2aAZmaAmWaAzGaA/2aqAGaqM2aqZmaqmWaqzGaq/2bVAGbVM2bVZmbVmWbVzGbV/2b/AGb/M2b/Zmb/mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5krAJkrM5krZpkrmZkrzJkr/5lVAJlVM5lVZplVmZlVzJlV/5mAAJmAM5mAZpmAmZmAzJmA/5mqAJmqM5mqZpmqmZmqzJmq/5nVAJnVM5nVZpnVmZnVzJnV/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwAM8wAZswAmcwAzMwA/8wrAMwrM8wrZswrmcwrzMwr/8xVAMxVM8xVZsxVmcxVzMxV/8yAAMyAM8yAZsyAmcyAzMyA/8yqAMyqM8yqZsyqmcyqzMyq/8zVAMzVM8zVZszVmczVzMzV/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8Amf8AzP8A//8rAP8rM/8rZv8rmf8rzP8r//9VAP9VM/9VZv9Vmf9VzP9V//+AAP+AM/+AZv+Amf+AzP+A//+qAP+qM/+qZv+qmf+qzP+q///VAP/VM//VZv/Vmf/VzP/V////AP//M///Zv//mf//zP///wAAAAAAAAAAAAAAACH5BAEAAPwALAAAAAAMAA4AAAhmALNJy5YK2zSBr6YZnPbKYMNU2bBBfOUq27SKBRNieyWNocFsBLO5OpgNlcWKJj9yJCjxJESTGl8hjOjxIERpMmEOhNhyZEmQBS9azLayYMifPiv+xGmzpVGGCleKbCrUI8+CqQICADs=" /><span class="s_79B9C72D" /></p></body></html>

second after reimport:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_A215EAA9 { margin: 0px 0px 20px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_E6FD2046 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
</style></head><body><p class="p_A215EAA9"><span class="s_E6FD2046" /></p></body></html>
Iva Toteva
Telerik team
 answered on 06 Sep 2011
2 answers
113 views
Hi

Please help me for search item in RadTreeListView with multi column view.

Thanks
Vijay
Rossen Hristov
Telerik team
 answered on 06 Sep 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?