Telerik Forums
UI for WPF Forum
7 answers
447 views
Hi,

how to make the gridview auto resize while the user adjusting the window?

thanks
Vanya Pavlova
Telerik team
 answered on 19 Jan 2011
1 answer
96 views
Hi,
I have  a rich text box inside a radwindow, and i want rich text box to expand\ shrink when the size of the window changes and I can't see how this can be done.

Please could someone help me with this?

Thanks

Simon
Konstantina
Telerik team
 answered on 19 Jan 2011
1 answer
141 views

We're using a customized RadDocking, having a RadSplitContainer > RadPaneGroup which is having TabStripPlacement="Top". The ContextMenu always shows the Header of the RadPane's (inside the RadPaneGroup) to select/activate them, any approch to customize the ContextMenu (e.g. add Custom Command) fails.

Here some core code:

<telerik:RadDocking >
    <telerik:RadSplitContainer InitialPosition="DockedTop">
        <telerik:RadPaneGroup TabStripPlacement="Top">
            <telerik:RadPane Header="Pane 1" IsSelected="True" />
            <telerik:RadPane Header="Pane 2"/>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

Here some code from the style:

<Style TargetType="{x:Type telerik:RadPaneGroup}">
    <Setter Property="TopTemplate">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type telerik:RadPaneGroup}">
                <Grid>
                ...
                <ToggleButton x:Name="DropDownButtonElement" Grid.Column="4" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Visibility="Hidden">
                    <telerik:RadContextMenu.ContextMenu>
                        <Telerik_Windows_Controls_TabControl:DropDownMenu x:Name="DropDownMenuElement" ClickToOpen="True" DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}" ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}" Placement="Bottom" Style="{TemplateBinding DropDownStyle}" StaysOpen="False"></Telerik_Windows_Controls_TabControl:DropDownMenu>
                    </telerik:RadContextMenu.ContextMenu>
                    ...

How to change the part (think it should be inside <telerik:RadContextMenu.ContextMenu>) to get it working?

Many Thanx!
Pana
Telerik team
 answered on 19 Jan 2011
0 answers
46 views
Hi all,

i have a few question about the RadGridView:

1. when i add the RadGridView i want it to expand to the entire window once i expand the window
2. i want to add a CheckBoxColumn to with my other colums (i looked at the tutorial you have in the support section but its in xaml and i dont know xaml )

Thanks
moshe
Top achievements
Rank 1
 asked on 19 Jan 2011
1 answer
131 views
Hi guys,
i am trying to replicate a old code that we used to use in the old scheduler to generated our timeslots because our clients don't want to have the representation of the normal schedule.
I am gonna attach some images to help to demonstrate the type of representation we want.
As you can see we want to be able to represent some appointments in exact an time slot in that hour.that is if we have an appointment at 14:56 we generate a new time slot beetween 14:00 and 15:00 to insert the appointment there.

In the old Scheduler we could do this by clearing the slots and adding manualy by us:
sched.View.TimeSlotsView.Clear();
sched.View.TimeSlotsView.Add(new Telerik.Windows.Controls.Scheduler.TimeSlot { Start = inicio, End = inicio.AddMinutes(1), ParentView = sched.View.TimeSlotsView });

I would like to know if its possible to do like this in the new schedule.
Greetings,
Pedro Pereira
Valeri Hristov
Telerik team
 answered on 18 Jan 2011
4 answers
63 views
I recently just upgraded my library by doing the service pack upgraded from 2010.2.10.806 to take advantage of some of the additional functionality that has been added since I originally installed my library and am having tremendous loss of functionality since doing the upgrade - things that took milliseconds to perform now takes minutes, scrolling is an exercise in frustration and patience.

I am running a dual core processor box and can see the CPU usage get pegged quite highly when doing just a simple scroll to the left or right with no data in the grid - there are 363 columns with various groupings of the columns. I have also tried with additional scenarios where the column layout is not so large - same issue - encountered.

Applications compiled with the new library, I'm only using the radgridview and the radbutton control, is causing such a delay in the system it slows down the entire box - so much to the point on clicking on the exit button of the app takes minutes, meanwhile the CPUs are going crazy with activity. Please let me know where I can send a zipped version of the project, even though this is a very simple applicaiton, the code is a little long to cut and paste here - various column types, etc.

I would appreciate any assistance on solving this problem. It is important to note that the exact same code using the previous library was fast. There  were problems with the last column being cut off when certain columns are visible and invisible, grouping issues, miscellaneous issues reported on other threads, etc. but this has created such an issue with speed I have no choice but go back to the previous library.

Thank you.
Dave Galligher
Top achievements
Rank 2
 answered on 18 Jan 2011
4 answers
454 views
I have a map, and have a SelectionLayer defined.  I wish to build up a MapPolyline as the user clicks on the map

<telerik:RadMap Name="radMap" 
                                MapMouseClick="radMap_MapMouseClick" 
                                ZoomChanged="radMap_ZoomChanged" 
                                MouseMove="radMap_MouseMove" 
                                MouseDown="radMap_MouseDown"
                                MouseUp="radMap_MouseUp">
    <telerik:InformationLayer x:Name="SelectionLayer" Initialized="SelectionLayer_Initialized"/>
</telerik:RadMap>

I do the following

 

private void AddSelectShape(Location location)

 

{

 

    MapPolyline polyline = (MapPolyline)SelectionLayer.Items[0];

 

    polyline.Points.Add(location);

    polyline.ToolTip = polyline.Points.Count;

    SelectionLayer.ArrangeItem(polyline);

}

private void SelectionLayer_Initialized(object sender, EventArgs e)
{
    MapPolyline polyline = new MapPolyline();
    polyline.Points = new LocationCollection();
    SelectionLayer.Items.Add(polyline);
}

I have to call ArrangeItem otherwise I need to zoom the map a little to start the polyline being displayed.

The problem is that when I have 3 points, it does not draw the correct triangle, and only sorts itself out once I add a 4th point.  Is there something else that I need to do?

Thanks
Simon
Andrey
Telerik team
 answered on 18 Jan 2011
2 answers
228 views
i have columns that are TimeSpan data and need to SUM them into the footer.  I have used the example with the latest release and still no success.  Further, it gives me an "Object null reference" when trying to export the grid witht he column footer aggregate function in place.

Any example on how to SUM TimeSpan would be great.
Brian
Top achievements
Rank 1
 answered on 18 Jan 2011
2 answers
66 views
I am having problems with aggregates not behaving as expected with "virtual" properties which do not exist in the type over which the aggregate function operates. The property is attached to the type using a type descriptor and redirected to an actual implementation. The Grid complains that there is no method compatible with the supplied arguments, even if the virtual property is of type int and the aggregate function does indeed exist.
This is what I believe is going on. When the grid fetches the type of the associated property to find out whether there is a function compatible with it, it gets the metadata via reflection directly instead of going through the extensible TypeDescriptor [1]. 


[1] - http://msdn.microsoft.com/en-us/library/ms171819.aspx
Veselin Vasilev
Telerik team
 answered on 18 Jan 2011
4 answers
95 views
I am glad to announce the availability of the first public, pre-beta build of RadScheduleView for Silverlight. The official beta version will be available in less than a month - it will contain the online examples, more functionality and will fix most of the existing glitches in the pre-beta. In March, with Q1 2011 RadScheduleView for Silverlight will become official and will match RadScheduleView for WPF in both functionality and online resources.

The latest control assembly can be found in the following forum:
http://www.telerik.com/community/forums/silverlight/scheduleview.aspx

We will be glad to get your feedback!

Best regards,
Valeri Hristov
On behalf of the RadScheduleView development team.
Valeri Hristov
Telerik team
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?