Resizeable ListBox items

4 posts, 0 answers
  1. Erik
    Erik avatar
    24 posts
    Member since:
    Nov 2010

    Posted 19 Feb 2012 Link to this post

    Is it possible to resize RadListBox items with a GridSplitter?

    The following code doesn't work but shows what I want to achieve:

    <telerik:RadListBox ItemsSource="{Binding MyCollection}">
        <telerik:RadListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal"/>
            </ItemsPanelTemplate>
        </telerik:RadListBox.ItemsPanel>
         
        <telerik:RadListBox.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <TextBlock Text="{Binding MyTextProperty}" Margin="0,0,10,0"/>
                     
                    <GridSplitter
                        Width="5"
                        Background="Red"
                        HorizontalAlignment="Right"
                        ResizeBehavior="CurrentAndNext"/>
     
                </Grid>
            </DataTemplate>
        </telerik:RadListBox.ItemTemplate>
    </telerik:RadListBox>
  2. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 22 Feb 2012 Link to this post

    Hi Erik,

    RadListBox doesn't support resizing of its items. We are following the behavior of MS ListBox which doesn't support it either.

    Kind regards,
    Georgi
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Erik
    Erik avatar
    24 posts
    Member since:
    Nov 2010

    Posted 22 Feb 2012 Link to this post

    I've asked the question on StackOverflow.com about the regular ListBox, I also looked at creating a feature request in the PITS, but there is no area for WPF RadListBox
  5. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 28 Feb 2012 Link to this post

    Hi Erik,

    We've updated the list in PITS - now everything works and you can submit your feature request.

    Please, excuse us for the inconvenience.  I've updated your points for the report.


    Greetings,
    Georgi
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top