Telerik Forums
UI for WPF Forum
6 answers
188 views
Hi all,

I have been trying to know the source of this issue with no luck for a while now. I am using WPF RadGrdiView 2012 Q1 SP1 in page that bound to a collection in View Model (MVVM/Prism). When the grid loads, if the row is empty (meaning the bound object is not empty but the corresponding properties are null), then the column are shrined even through the grid itself stretches to fill the entire page. It is as if the column didn’t render correctly to take the proper width. Please see attached pic.

The way the GridView is layed out :

RadDocking -> RadPane -> RadTab -> User Control -> StackPanel -> Grid -> GridView

I have tried to set the Horiznotal Content of the Gridview, Grid and StackPanel to “Stretch”, but that didn’t fix the issue.

Any suggestion why this might be happening? Is there a way to force the GridView to redraw/re-calculate column width on loading?

Thanks
Perlom
Top achievements
Rank 1
 answered on 20 Apr 2012
6 answers
132 views
I am using Radgridview in my WPF app. The view model implements Idataerrorinfo interface. Whenever I add a new row to the radGridview I get that exception from a file called Disassembly.  Any idea what might cause this error.

Here is a screen shot
Sabuj
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
223 views
Hi,

I am having issues with trying to get my tiles in restored mode to "fill in" when one tile is bigger than the others.
I have a RadTileView which needs to show 7 panels (tile in position 0 is going to be 100% height and 50% width of the tile viewer). The rest of the tiles are sized so they should fit in the remaining space available, however 3 of the tiles align themselves below the tile in position 0. This means they are not visible and the user has to scroll.

I tried following the article - http://blogs.telerik.com/zarkovidolov/posts/11-06-25/new-tileview-features.aspx 
and tried downloading the sample but the link is bad.

Here is my xaml, which I am hoping that you will be able to help me:

<telerik:RadTileView Grid.Row="0" x:Name="ChartTiles"
                                TileStateChangeTrigger="SingleClick"
                                telerik:StyleManager.Theme="Office_Blue"
                                ColumnsCount="3"
                                RowsCount="3"
                                ColumnWidth="Auto"
                                RowHeight="Auto"
                                MinimizedColumnWidth="300"
                                MinimizedRowHeight="300"
                                PreservePositionWhenMaximized="true"
                                IsItemsSizeInPercentages="True"
                                ItemsSource="{Binding ChartingViewModel.Charts}"
                                telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                                telerik:TileViewPanel.IsRowsShrinkEnabled="True"
                                telerik:TileViewPanel.IsSizeBoundToPosition="True"
                                TileStateChanged="ChartTiles_TileStateChanged"
                                Loaded="ChartTiles_Loaded"
                                TilesPositionChanged ="ChartTiles_TilesPositionChanged"
                                 >
 
    <telerik:RadTileView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" Style="{StaticResource tileItemStyle}"/>
        </DataTemplate>
    </telerik:RadTileView.ItemTemplate>
 
    <telerik:RadTileView.ItemContainerStyle>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="RestoredHeight" Value="{Binding TileRestoredHeight, Mode=TwoWay}" />
            <Setter Property="RestoredWidth" Value="{Binding TileRestoredWidth, Mode=TwoWay}" />
            <!--<Setter Property="Position" Value="{Binding TilePosition, Mode=TwoWay}" />-->
            <Setter Property="ContextMenu" Value="{StaticResource ChartContextMenu}" />
        </Style>
    </telerik:RadTileView.ItemContainerStyle>
 
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition />
                </Grid.RowDefinitions>
 
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
 
                <Label Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Content="{Binding Path=Title}"/>
 
                <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal">
                    <RadioButton Content="Pie Chart" IsChecked="{Binding Path=IsPieChartActive}" Margin="0,5,0,5"/>
                    <RadioButton Content="Bar Chart" IsChecked="{Binding Path=IsBarChartActive}" Margin="5"/>
                </StackPanel>
 
                <ecaAnalyzerViews:PieChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                     Visibility="{Binding Path=PieChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"                                                
                                     />
 
                <ecaAnalyzerViews:BarChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                     Visibility="{Binding Path=BarChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
                                     />
 
            </Grid>
 
        </DataTemplate>
    </telerik:RadTileView.ContentTemplate>
 
</telerik:RadTileView>


Thanks in advance for any help!!!

Tracy
Zarko
Telerik team
 answered on 20 Apr 2012
0 answers
105 views
Hi,

i'm frustrated :-(
For me it's unpossible to add Patterns to an Appointment. The code above shows how i create my Pattern Objekt and how
i add this to my Appointment!

var Pattern = new RecurrencePattern();
 
Pattern.Frequency = Frequency_v;
Pattern.DayOrdinal = DayOrdinal_i;
Pattern.DaysOfWeekMask = DaysofWeekMask_v;
Pattern.FirstDayOfWeek = FirstDayofWeek_d;
Pattern.Frequency = Frequency_v;
Pattern.Interval = Convert.ToInt32(tasks_dr.Field<Int64>("Interval"));
Pattern.MaxOccurrences = Convert.ToInt32(tasks_dr.Field<Int64>("MaxOccurrences"));
Pattern.MonthOfYear = Convert.ToInt32(tasks_dr.Field<Int64>("MonthofYear"));
Pattern.DayOfMonth = Convert.ToInt32(tasks_dr.Field<Int64>("DayofMonth"));
 
System.DateTime? RecursUntil_d;
if (tasks_dr.Field<String>("RecursUntil") != "")
    {
          RecursUntil_d = Convert.ToDateTime(tasks_dr.Field<String>("RecursUntil")); 
    }
     else
     {
          RecursUntil_d = DateTime.Now;
     }
     Pattern.RecursUntil = RecursUntil_d;
  
 appointment.RecurrenceRule = new RecurrenceRule(Pattern);

The Datasourc is an DB which is filled by Datas from an new created Appointment with all values.

Table:

cid      name               type        Value
------- ----------------- ---------- ---
0        id                 INTEGER     n
4        Subject            TEXT       Test
5        Body               TEXT        Test
6        Betreuer           TEXT       69001
7        Startdatum         TEXT      19.04.2012 08:00:00
8        Enddatum           TEXT      19.04.2012 15:00:00
9        Kategorie          TEXT        Fertig
10       Importance         TEXT      Low
11       Ganztag            INTEGER  0
12       Frequency          TEXT      Weekly
13       DayofMonth         INTEGER   0 
14       DayOridnal         INTEGER     0
15       MaxOccurrences     INTEGER  0
16       DaysofWeekMask     TEXT Thursday
17       RecursUntil        TEXT        28.04.2012 15:00:00
18       MonthofYear        INTEGER 0
19       TimeMarker         TEXT        Normal
20       FirstDayOfWeek     INTEGER 1
21       Interval           INTEGER  1

But i get an Error in the Schedule.xaml on InitializeComponent - ArgumentOutOfRangeException
The added or subtracted value results in an unrepresentable DateTime.
Parameter name: value

 
I can't find out wehre the problem is?! Please i need help. Or how to create a Appointment with duration bei Code????

thanks
regards
rene
ITA
Top achievements
Rank 1
 asked on 20 Apr 2012
4 answers
201 views
Hi,

With the addition of the ItemsSource on a SeriesMapping we were finally able to extend your chart control to support binding to multiple collections in an underlying view model.

This is great, and has helped the chart control to start to become viable. However, it seems that every time a new data point is added to the collection bound to a SeriesMapping.ItemsSource, the entire series redraws.

This is with AutoRange set to false for both X and Y Axis and Min/Max values set for both. I can watch the chart, and while the scale never changes, each series blanks out and redraws with each new data point.

Is this fixable with the current release?
James
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
204 views
Within DistinctValuesLoading(), I added 3 new strings to distinct values: [2], [4] and [6].
Their purpose is to filter by length, e.g. [2] should only show rows that have a string of length 2 in this column.

Is their any way to achieve this in Filtering() event ?
Or is their another way to reach my goal ?
Stephan
Top achievements
Rank 1
 answered on 20 Apr 2012
1 answer
106 views
My application is built in WPF.  I have a class called "MyWindow" that descends from the WPF Window class.  I have another class called "MyDialog" that also descends from the WPF Window class.  These two classes have a uniform look and functionality so it made sense to create my own base classes for the applicaiton.  The application is to be used on touch screen equipped laptops in police cars, so I've made everything bigger, to make it easier for people with large fingers to interact with the application.

My application has a login dialog that descends from the MyDialog class.  During program startup, the application performs a number of steps, including loading a resource dictionary that contains brushes that are used to draw the application's controls.  Again, part of the whole unified look.

The login dialog has a RadComboBox on it.  The app.xaml has a custom template for RadComboBoxes that increases the width of   the drop down button on the control.  The first time the login dialog is displayed, however, this template is not applied; the drop down button is the normal width.  However, if you enter a wrong password & click login, the dialog is redrawn and this time the drop down button is the right width.

Why is the width of the RadComboBox wrong the first time but right the second time, even though every other aspect of the dialog is drawn right the first time?  I don't even know what code to include to help you guys help me on this.  Any ideas?

Tony
Dani
Telerik team
 answered on 20 Apr 2012
1 answer
175 views
Hi,

After encountering a few performance issues with the Dynamic Layer, would like some clarification on best practices of using the Dynamic Layer.

The following 2 forum posts are from 2010 - http://www.telerik.com/community/forums/wpf/map/working-with-dynamic-layers-and-mapshapereaders.aspx and http://www.telerik.com/community/forums/wpf/map/radmap-dynamiclayer-performance-problem.aspx

I am currently using the below code to only return those geometries which are in the current extents, rather then dealing with this at a fairly low level, does the Dynamic Layer have any of this functionality included?

Many thanks,

Adnan

public void ItemsRequest(object sender, ItemsRequestEventArgs e)
{
    IList<SqlGeometry> geometryList = new List<SqlGeometry>();
 
    LocationRect currentRegion = new LocationRect(e.UpperLeft, e.LowerRight);
 
    string sql = string.Format("SELECT the_geom FROM Locations WHERE the_geom.STIntersects(geometry::STGeomFromText('POLYGON(({0} {1}, {2} {3}, {4} {5}, {6} {7}, {0} {1}))', 0)) = 1 ", currentRegion.Southwest.Longitude, currentRegion.Southwest.Latitude, currentRegion.Northwest.Longitude, currentRegion.Northwest.Latitude, currentRegion.Northeast.Longitude, currentRegion.Northeast.Latitude, currentRegion.Southeast.Longitude, currentRegion.Southeast.Latitude);
 
    using (SqlConnection sqlConnection = new SqlConnection(connectionString))
    {
        sqlConnection.Open();
         
        using (SqlCommand sqlCommand = new SqlCommand(geographicalBoundsSQL, sqlConnection))
        {
            using (SqlDataReader reader = sqlCommand.ExecuteReader())
            {
                while (reader.Read())
                {
                    SqlGeometry sqlGeometry = (SqlGeometry)reader["the_geom"];
                    geometryList.Add(sqlGeometry);
                }
            }
        }
    }
Andrey
Telerik team
 answered on 20 Apr 2012
1 answer
113 views
Hello,

Is it possible to add a click event to the time event so that we can navigate user to different pages if they click on the time event in timeline?

Thanks

Apurva
Tsvetie
Telerik team
 answered on 20 Apr 2012
1 answer
167 views
Hi There, 

We have a requirement for lots of different buttons with their appropriate look and feel. I have created my own Theme where the buttons would each take on their own style, The required behavior would be to have our own style for each of the buttons, however, if one of your themes were chosen, then it would just use that for each Button Style,

The buttons all inherit from RadButton, However, When we use our own Theme, the buttons look the way they should in design time. eg ButtonType1 =  Green, ButtonType2 = Red, NormalRadButton = Orange. However, when I then run the application all the buttons change to the NormalRadButton of Orange. This would be the required behavior when using a Telerik theme.

I have a small demo app that shows the behavior, however, you don't seem to allow these type of uploads, I have attached screen shots of the demo app, 

I could send you the demo app if required

Thanks,

Yuri

 
Tina Stancheva
Telerik team
 answered on 20 Apr 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
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?