Telerik Forums
UI for WPF Forum
3 answers
410 views
Hi,

Is there any way by which a RadPane's size is set to content i.e. it takes the size exactly to fit the content when it is slide out.

If it is possible, please let me know how.
George
Telerik team
 answered on 30 Nov 2010
0 answers
114 views
I am not using telerik combo box , I am using WPF combobox.How can I customize the toggle button of combo box.I want the look as same as it is seen in Windows 7.Plz help me out
Asish
Top achievements
Rank 1
 asked on 30 Nov 2010
1 answer
166 views
Hi,
i just started to play with carousel and found some problems ;) In carousel each item got 1 textbox so user can write some notes, and i cant make two things:
1. How can i change selected item when user clicks on textbox in another item (not currently selected) it work only when user click on border
2. How can i focus on textbox when user change item via scroll or border click or anything, so basicly when selecteditem is changed than focus on selecteditems textbox

This is mine itemTemplate
<DataTemplate x:Key="ItemTemplate">
                <Grid Width="350" Height="450">
                    <Grid.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFFFFEA0" Offset="0"/>
                            <GradientStop Color="#FFFFFE6A" Offset="0.567"/>
                        </LinearGradientBrush>
                    </Grid.Background>
                    <TextBox Grid.Row="1" Text="{Binding Path=Content,Mode=TwoWay}" Background="Transparent"/>
                </Grid>
            </DataTemplate>
Maya
Telerik team
 answered on 30 Nov 2010
1 answer
99 views
Hi,

i moved to Q3 of telerik controls, and a piece of code, that worked great in Q2 broke down :
I have a grid, with predefined columns.
The column headers are bound to properties :
<telerik:RadGridView >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="{Binding Dag1}"
                                            UniqueName="test1"
                                            Style="{StaticResource KalenderDagColumnStyle}">
 
...
 public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;
            Dag1 = DateTime.Today;
            Dag2 = DateTime.Today.AddDays(9);
         }

        public DateTime Dag1 { getset; }

        public DateTime Dag2 { getset; }

The KalenderDagColumnStyle is a StyleSelector
  <local:DatumKolomStyleSelector x:Key="DatumKolomStyleSelector"
                                       WeekdagStyle="{StaticResource WeekdagCellStyle}"
                                       WeekendStyle="{StaticResource WeekendCellStyle}"
                                       VandaagStyle="{StaticResource VandaagCellStyle}" />
        <Style x:Key="KalenderDagColumnStyle"
               TargetType="telerik:GridViewDataColumn">
            <Setter Property="HeaderCellStyle"
                    Value="{StaticResource KalenderDagHeaderStyle}" />
            <Setter Property="CellStyleSelector"
                    Value="{StaticResource DatumKolomStyleSelector}" />
        </Style>













  public class DatumKolomStyleSelector : StyleSelector

    {
        public Style VandaagStyle { getset; }
        public Style WeekendStyle { getset; }
        public Style WeekdagStyle { getset; }

        public override Style SelectStyle(object item, DependencyObject container)
        {
            GridViewCell c = container as GridViewCell;
            DateTime d = (DateTime)c.Column.Header;

            if (d == DateTime.Today)
                return VandaagStyle;
            else if (d.DayOfWeek == DayOfWeek.Saturday || d.DayOfWeek == DayOfWeek.Sunday)
                return WeekendStyle;
            else
                return WeekdagStyle;

        }
    }


When a column represents Today, it has a style, when its a weekend day, it has a style, and otherwise it has another style
In Q2 c.Column.Header had a value in the SelectStyle method,
in Q3 c.Column.Header is null in the SelectStyle method .


When i hardcode the headers then the value is not null in the SelectStyle method,
but bound values are apparently not available in the style selector


Is this expected behaviour ? is there a way around for me ? ( using Tag instead of Header does not make a difference).
The column headers must be data-bound, because the user can scroll back and forwards in time.

I would have attached a sample solution to this thread; but apparently zips are not allowed

Veselin Vasilev
Telerik team
 answered on 30 Nov 2010
1 answer
83 views
Hello,

can I have different editor types in the same column ? I have a number of items to display in a grid. The value property of these items differs: for some items a combobox should be used to select from a list of possible values, for others a string or number should be entered.

Can I assign different editors to each row in the same column depending on the type of the item bound to that row ?

Thanks in advance,
Lars
Maya
Telerik team
 answered on 30 Nov 2010
3 answers
225 views
We have implemented a search as you type control using the RadGridView. Everytime the text changes we set the ItemsSource to a new source and when data is being loaded the text box is unresponsive. We have specified DataLoadMode="Asynchronous" but it doesn't help. Any ideas?
Vlad
Telerik team
 answered on 30 Nov 2010
2 answers
151 views
Hi,
I have been trying to insert a new row with some values into the database table to which its binded, the insertion i do dont get reflected into the database can u help me out of this with simple sample.
gopal
Top achievements
Rank 1
 answered on 30 Nov 2010
5 answers
109 views
I am using a GridView to display real-time data (syslog messages) and it works fine as long as I keep adding records. However when I try to remove old records, the GridView just freezes (stops responding). Is there a special way to delete records? Right now I have bounds the ItemsSource to an ObservableCollection and when the number of records in it reaches 10,000 I want to delete the first 100 records (i.e index 0 through 99). GridView seems to have no problem dealing with the 10,000 records but as soon as I delete even one record, it stops responding. I have already tried my own variation of your AddRangeObservableCollection (modified it to stop CollectionChanged notification, delete 100 records and then re-start the CollectioChanged notifications) but the GridView still stops responding after deletion. Please help.

-Ambar
Ambar Kulkarni
Top achievements
Rank 1
 answered on 30 Nov 2010
9 answers
200 views
Hello, A couple questions

IF a user clicks on a tile to maximize it. Would it be possible to call a event before to maximized.

The code would be something like:

private Tile_Click()
 If Tile(1) is Clicked
{
messagebox.show
If ok
{
then Tile(1) is Maximized
else
messagebox cancel
message "you don't want to max this tile
}


I know the code not even close
But and snippet would be great

Thoughts>?

Rick
Alex Fidanov
Telerik team
 answered on 29 Nov 2010
6 answers
136 views
The control is bound to a DateTime? and I've specified InputMode="DatePicker" and still it puts the current time into the date selected from the calendar.  How can I get just the date portion only?
Wellpartner
Top achievements
Rank 1
 answered on 29 Nov 2010
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?