Telerik Forums
UI for WPF Forum
2 answers
262 views
I have a gridview and one of the columns needs a popup window for selecting the appropriate value because the list of available choices is over 200 records.

I've created a CellEditTemplate with a button bound to a command on my viewmodel, but I'm not sure this is the best approach. Because I have to bind the selectedItem of the grid to a property, so that when I show the popup window, it can alter the appropriate property of the selectedItem.

When I click on the "insert row", the new row isn't automatically the selected row. How do I get to to automatically be the selected row, so that my popup window has something to change? Or is there a better way to present the choices to the user besides a popup window?
Rayne
Top achievements
Rank 1
 answered on 09 Jun 2011
2 answers
119 views
I have gridView defined inside a DataTemplate for a TabControl.

Within this GridView I have a column that I need to provide a list of choices from over 200 records with multiple columns, that needs to be filterable, so I thought either a button that brings up a popup window, or using a combobox with a gridview. Either solution requires me to bind to properties on my viewmodel for the list of 200+ records.

Controls inside the DataTemplate defined for the TabControl are bound to the VM by setting a name on the UserControl and binding to {DataContext.Property, ElementName=MyUserControl}. This works, until I get to the DataTemplate that is defining the CellEditTemplate. I thought I could use the same method for declaring my binding, but it just isn't working.

Is there a heirarchy limit I'm reaching, but having a DataTemplate defined inside of a DataTemplate?
Rayne
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
138 views
Hi

in my project,wpf radgrid Filter case sensitive is  working fine.
But the same items with Different Case come as Different CheckBoxes in the Filter Select Option

eg:
ABC and abc comes as different filter select options. but in filtering textbox,if we give the value as abc it returns both abc and ABC
i want to set this as one in filter checkbox group also.
Is this possible
Maya
Telerik team
 answered on 09 Jun 2011
1 answer
156 views
Hi

I'm having a weird issue with the grid view column  if you I'm using Width="*" i get a really long horizontal scroll bar.

Code:
  <ScrollViewer HorizontalScrollBarVisibility="Auto" BorderThickness="0" >
  <telerik:RadGridView Grid.Row="1" ScrollMode="Deferred"     RowIndicatorVisibility="Collapsed"   CanUserFreezeColumns="False"  ShowGroupPanel="False"  AutoGenerateColumns="False"  >
                    <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="Name" Width="200"  />
                    <telerik:GridViewDataColumn Header="Phone" Width="*" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
</ScrollViewer>

Thanks
Dimitrina
Telerik team
 answered on 09 Jun 2011
6 answers
547 views
Hello,

I am looking for themes for each component Telerik.

I want the user to choose its theme.

I can not find the files corresponding to these themes.

Could you help me?

Best regards
Mickael
Top achievements
Rank 1
 answered on 09 Jun 2011
2 answers
374 views

I have two gridviews that are bound to the same QueryableCollectionView. I need the selected items of the two gridviews to be the same at all times.

 

There seem to be some built-in funtionalty like this. If a select a row in GridView1 the same row will be selected in GridView2. But if I select multiple rows in GridView1, only the first selected of those rows will be selected in GridView2.

 

How can I sync the selection between the gridviews?

I used to have the gridviews bound to the same RadObservableCollection. Then I synced the selection manually on the SelectionChanged-event on GridView1 like this:

private void GridView1_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
    GridView2.SelectedItems.Clear();
    foreach (var item in GridView1.SelectedItems)
    {
        GridView2.SelectedItems.Add(item);
    }
}
That worked fine, but I doesn't work now when I've switched to using QueryableCollectionView. When I clear the selected items of GridView2 the selected items of GridView1 will also be cleared. So it seems to be some built-in sync here (I'm guessing the QueryableCollectionView keeps track of selected items), but not like I need it to work

haagel
Top achievements
Rank 1
 answered on 09 Jun 2011
5 answers
138 views
Hi,

I'am trying to position the Chart Titles into the ChartPlotArea.
That's all well and good, but if i'm setting the Background Color of the PlotArea differently than the Background of the ChartArea the PlotArea hides the ChartTitle.
Setting a ZIndex for the PlotArea and the Title dosn't work.
Picture without setting a special background color
Picture with setting a special background color

Here is my Code:
<UserControl.Resources>
    <Style x:Key="XTitleStyle" TargetType="{x:Type telerik:AxisTitle}">
        <Setter Property="Margin" Value="0,-32,1,0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Panel.ZIndex" Value="10"/>
    </Style>
 
    <Style x:Key="Y1TitleStyle" TargetType="{x:Type telerik:AxisTitle}">
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TransformGroup>
                    <TranslateTransform X="-5" Y="-80"/>
                    <RotateTransform Angle="90"/>
                </TransformGroup>
            </Setter.Value>
        </Setter>
    </Style>
     
    <Style TargetType="{x:Type telerik:MarkedZone}">
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
 
</UserControl.Resources>
 
<Grid Width="Auto" Height="Auto">
    <telerik:RadChart HorizontalAlignment="Stretch" Margin="10,5,10,5" Name="radChart1" VerticalAlignment="Stretch" BorderThickness="0" Background="{DynamicResource backgroundTabControl}">
 
        <telerik:RadChart.SeriesMappings>
 
            <telerik:SeriesMapping ItemsSource="{Binding Series1, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" >
                <telerik:SeriesMapping.SeriesDefinition>
                    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False">
                        <telerik:LineSeriesDefinition.Appearance>
                            <telerik:SeriesAppearanceSettings StrokeThickness="1.5"/>
                        </telerik:LineSeriesDefinition.Appearance>
                    </telerik:LineSeriesDefinition>
                </telerik:SeriesMapping.SeriesDefinition>
                <telerik:SeriesMapping.ItemMappings>
                    <telerik:ItemMapping FieldName="Y" DataPointMember="YValue"/>
                </telerik:SeriesMapping.ItemMappings>
            </telerik:SeriesMapping>
        </telerik:RadChart.SeriesMappings>
 
        <telerik:RadChart.DefaultView>
            <telerik:ChartDefaultView ChartLegend="{x:Null}">
                <telerik:ChartDefaultView.ChartArea>
                     
                    <telerik:ChartArea EnableAnimations="False" EnableStripLinesAnimation="False" SnapsToDevicePixels="True">
                    <!-- Here I'm setting the Background with PlotAreaStyle-->
                        <telerik:ChartArea.PlotAreaStyle>
                            <Style TargetType="{x:Type telerik:ClipPanel}">
                                <Setter Property="Background" Value="White"/>
                                <Setter Property="Panel.ZIndex" Value="-1"/>
                            </Style>
                        </telerik:ChartArea.PlotAreaStyle>
                         
                        <!-- Here I'm setting the Background with a MarkedZone-->
                        <telerik:ChartArea.Annotations>
                            <telerik:MarkedZone Background="White"  />
                        </telerik:ChartArea.Annotations>
                         
                        <telerik:ChartArea.AxisX>
                            <telerik:AxisX AutoRange="False" MajorGridLinesVisibility="Visible" MajorTicksVisibility="Visible" Title="test">
                                <telerik:AxisX.AxisStyles>
                                    <telerik:AxisStyles TitleStyle="{StaticResource XTitleStyle}" />
                                </telerik:AxisX.AxisStyles>
                            </telerik:AxisX>
                        </telerik:ChartArea.AxisX>
                        <telerik:ChartArea.AxisY>
                            <telerik:AxisY AutoRange="False" MajorGridLinesVisibility="Visible" MinorGridLinesVisibility="Collapsed" Title="test" PlotAreaAxisVisibility="Visible" StripLinesVisibility="Collapsed">
                                <telerik:AxisY.AxisStyles>
                                    <telerik:AxisStyles TitleStyle="{StaticResource Y1TitleStyle}"/>
                                </telerik:AxisY.AxisStyles>
                            </telerik:AxisY>
                        </telerik:ChartArea.AxisY>
                    </telerik:ChartArea>
                </telerik:ChartDefaultView.ChartArea>
            </telerik:ChartDefaultView>
        </telerik:RadChart.DefaultView>
    </telerik:RadChart>
</Grid>

I would like to display the AxisTitle above the PlotArea and above any MarkedZones. Is there any solution?

Best regards
Dominik
Evgenia
Telerik team
 answered on 09 Jun 2011
1 answer
89 views
Hello,

I am displaying a couple of sparkline graphs.  The underlying data is a List<KeyValuePair<Int32, Int32>>.  The sparkline seems to be automatically sorting and displaying the data by the key.  (I'm basically displaying a count by month, the left most point needs to be current month)

Is there any way to display the data how it's layed out in the collection itself?
Vladimir Milev
Telerik team
 answered on 09 Jun 2011
1 answer
155 views
Hi,

I have a quick question can i use 2d range bar as stacked bar (Horizontal). if yes can you please send the sample project.

thanks
sarag.
Nikolay
Telerik team
 answered on 09 Jun 2011
0 answers
103 views
Hello Team,

Here we have a Telerik gridview and around 25 no. of columns is there. The problem is when we view Print Preview the output appears but not exactly what we expected. The 1st page take few columns and the rest goes to 2nd page and rest one goes to 3rd page but if we have 4 rows in a grid along with 25 columns, then the result must appear on the same page after the first best fit columns on the same page. 

Please see below the logic of Print Preview-

public
static void PrintPreview(GridViewDataControl source, bool modal)
        {
            var window = new Window { Title = "Print Preview" };
            var dialog = new PrintDialog();
            var document = source.ToPrintFriendly().ToFixedDocument(dialog);
            var documentViewer = new DocumentViewer
            {
                Document = document
            };
            window.Content = documentViewer;
            if (modal)
                window.ShowDialog();
            else
                window.Show();
        }

I have tried the given link in the forum and customise the logic but no luck to achieved what we expected as a output-
Here's link- http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx

Kindly help me out to over come this issue.

Regards,
Naren



  
Narendra
Top achievements
Rank 1
 asked on 09 Jun 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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?