This is a migrated thread and some comments may be shown as answers.

Resizeable ListBox items

3 Answers 274 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 19 Feb 2012, 02:45 PM
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>

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 22 Feb 2012, 02:42 PM
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 >>
0
Erik
Top achievements
Rank 1
answered on 22 Feb 2012, 04:39 PM
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
0
Georgi
Telerik team
answered on 28 Feb 2012, 04:05 PM
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 >>
Tags
ListBox
Asked by
Erik
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Erik
Top achievements
Rank 1
Share this question
or