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

Showing a progress bar on RadGridView at each row-level?

2 Answers 598 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Enric
Top achievements
Rank 1
Enric asked on 31 Jan 2014, 05:57 PM
A picture is worth a thousand words, so I attach you my need.

Obvioulsy such image belong to the classical GridView incorporated by defaul on VS Studio 2012 stuff.

That's the XAML code for that:

<DataGridTemplateColumn Header="Actual" Width="80" Visibility="Visible">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ProgressBar Value="{Binding Path=Stock_Actual, Mode=OneWay}" Minimum="0" Maximum="{Binding Stock_max}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
Thanks in advance for your help,

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 05 Feb 2014, 03:48 PM
Hello Enric,

You can create a custom column in RadGridView by using the same approach. I have included a code snippet demonstrating how to override the cell template and to add a RadProgressBar as default content.
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<telerik:RadProgressBar Minimum="0" Maximum="100" Value="42" Width="50"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</
telerik:GridViewDataColumn>

More information on creating custom columns can be found in this blog post which explains the process in details, and you can also see the following article in our online documentation.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Enric
Top achievements
Rank 1
answered on 06 Feb 2014, 08:41 AM
Thanks a lot Hristo
Tags
General Discussions
Asked by
Enric
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Enric
Top achievements
Rank 1
Share this question
or