Problem in using gauge inside hierarchical rad grid

2 posts, 0 answers
  1. Alex
    Alex avatar
    15 posts
    Member since:
    Apr 2011

    Posted 21 Apr 2013 Link to this post

    I wanted to use the gauge inside the hierarchical rad grid.
    and i did as in this thread
    But it works fine for normal radgrid and
    when I am using hierarchical grid. I am not able to expand the details table in the grid.

    here is my code.
    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Progress"
                                            <telerik:RadLinearGauge runat="server" ID="RadLinearGauge1" Scale-Vertical="false"
                                                Scale-MajorTicks-Visible="false" Scale-Labels-Visible="false" Width="120px" Height="20px">
                                                <Pointer Shape="BarIndicator">
                                                    <Track Opacity="0.4" />
                                                <Scale Min="0" Max="100">
                                                        <telerik:GaugeRange Color="#c20000" From="0" To="100" />
                                    <HeaderStyle Width="100px" HorizontalAlign="Center" />
    protected void OnItemDataBound1(object sender, GridItemEventArgs e)
           if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
               GridDataItem item = e.Item as GridDataItem;
               DataRowView currentRow = (DataRowView)item.DataItem;
               decimal currValue = decimal.Parse(currentRow.Row["pc"].ToString());
               RadLinearGauge radialGauge1 = (RadLinearGauge)item.FindControl("RadLinearGauge1");
               radialGauge1.Pointer.Value = currValue;
    Please give solution for this.

  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 22 Apr 2013 Link to this post

    Hi Alex,

    I have already replayed to your question in this forum thread, so please find my answer there.

    All the best,
    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top