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

Problem with busy indicator

10 Answers 204 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 29 Nov 2010, 04:47 PM
I have some problem with busy indicator this is my code 
 <telerik:RadBusyIndicator x:Name="busyIndicator" Height="300" Width="300" BusyContent="Loading data...." Grid.Row="3"/>
On button click I am doing
      busyIndicator.IsBusy = true;
but its not showing any thing

Thanks
Shakti

10 Answers, 1 is accepted

Sort by
0
Teodor
Telerik team
answered on 29 Nov 2010, 05:38 PM
Hi Shakti SIngh Dulawat,

Thank you for contacting us.

One reason for this can be that the Grid which hosts the busy indicator has its height/row height set to 0. Can you check if this is the case? 

If the above does not help, could you please open a new support ticket, attach the solution that reproduces the unexpected behavior and send it over to us for investigation?

Thank you in advance.

Regards,
Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 29 Nov 2010, 06:28 PM
  <telerik:RadBusyIndicator x:Name="busyIndicator" Height="300" Width="300" BusyContent="Loading data...." Grid.Row="0"/>
private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            busyIndicator.IsBusy = true;
            // SOME CODE HERE
      }

THIS IS ALSO NOT WORKING
0
Teodor
Telerik team
answered on 30 Nov 2010, 10:22 AM
Hello Shakti SIngh Dulawat,

The attached project works on our side. Can you open it and let us know how it performs on yours? Feel free to make changes so that you can reproduce the issue and send it over to us for investigation.

Hope this helps.

Sincerely yours,
Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 03 Dec 2010, 03:04 PM
Thanks for your reply your code is working but when I try same thing id does not work for me.
Please take a look

 <Grid x:Name="LayoutRoot" Background="White">
     
        <Grid.Resources>
            <helper:BillTypeList x:Key="billTypeList"/>
            <helper:ModuleList x:Key="moduleList"/>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="70" />
            <RowDefinition Height="100" />
            <RowDefinition Height="100" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <telerik:RadBusyIndicator x:Name="busyIndicator" Width="300" BusyContent="Loading data...." Grid.Row="0" Margin="278,0,130,8" Grid.RowSpan="3"/>
        <Grid x:Name="gridHeader" Background="White" Grid.Row="0" Margin="0,0,8,0"  >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.14*"/>
                <ColumnDefinition Width="0.194*"/>
                <ColumnDefinition Width="0.137*"/>
                <ColumnDefinition Width="0.126*"/>
                <ColumnDefinition Width="0.149*"/>
                <ColumnDefinition Width="0.254*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.5*"/>
                <RowDefinition Height="0.5*"/>
            </Grid.RowDefinitions>
            <sdk:Label Content="Posting Code ID:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblInsPostingCode" VerticalAlignment="Top" Width="94" Grid.Column="0" Grid.Row="0" />
            <sdk:Label Content="Description:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblCodeDescription" VerticalAlignment="Top" Width="73" Grid.Row="1" />
            <sdk:Label Content="Module:" Height="26" HorizontalAlignment="Left" Margin="7,7,0,0" x:Name="lblModule" VerticalAlignment="Top" Width="84" Grid.Column="4" />
            <sdk:Label Content="Bill Type:" Height="23" HorizontalAlignment="Left" Margin="2,7,0,0" x:Name="lblBillType" VerticalAlignment="Top" Width="89" Grid.Column="2" />
            <TextBox Height="23" Margin="13,5,26,0" x:Name="txtInsPostingCode" VerticalAlignment="Top" Grid.Column="1" Text="{Binding InsPostingCode1, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="0"  />
            <telerik:RadButton Content="...." Height="23" HorizontalAlignment="Left" Margin="111,5,0,0" x:Name="rbtSearchPostingCodeId" Click="rbtSeachPostingCodeId_Click" VerticalAlignment="Top" Width="21" Grid.Column="1" TabIndex="1" />
            <TextBox Height="23" Margin="14,4,13,0" x:Name="txtDescription" VerticalAlignment="Top" Grid.Column="1" Text="{Binding CodeDescription, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="2" Grid.ColumnSpan="3" Grid.Row="1"/>

            <telerik:RadComboBox DisplayMemberPath="BillTypeCode" Height="23" ItemsSource="{Binding ListofBillType, Source={StaticResource billTypeList}}" Margin="2,4,0,0" x:Name="rcbRemitBillType" SelectedValue="{Binding BillTypeId, Mode=TwoWay}" SelectedValuePath="BillTypeId" VerticalAlignment="Top" HorizontalAlignment="Left" Width="77" Grid.Column="3" TabIndex="4" />

            <telerik:RadComboBox DisplayMemberPath="ModuleCode" Height="23" ItemsSource="{Binding ListofModule, Source={StaticResource moduleList}}" Margin="8,7,0,0" x:Name="rcbRemitModuleId" SelectedValue="{Binding ModuleId, Mode=TwoWay}" SelectedValuePath="ModuleId" VerticalAlignment="Top" HorizontalAlignment="Left" Width="96" Grid.Column="5" TabIndex="3" />
         
        </Grid>
        <Grid x:Name="gridDebitControlHeader" Background="White" Grid.Row="1" Margin="0,0,8,0"   >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.186*"/>
                <ColumnDefinition Width="0.114*"/>
                <ColumnDefinition Width="0.263*"/>
                <ColumnDefinition Width="0.221*"/>
                <ColumnDefinition Width="0.216*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.33*"/>
                <RowDefinition Height="0.34*"/>
                <RowDefinition Height="0.33*"/>
            </Grid.RowDefinitions>
            <sdk:Label Content="Debit/Control/Header" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblDebitControlHeader" VerticalAlignment="Top" Width="127" Grid.Column="0" Grid.Row="0" />
            <sdk:Label Content="Account:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblHeaderAccount" VerticalAlignment="Top" Width="69" Grid.Column="1" Grid.Row="1" />
            <sdk:Label Content="Sub Account:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblHeaderDepartment" VerticalAlignment="Top" Width="76" Grid.Column="1" Grid.Row="2" />
            <TextBox Height="23" Margin="13,5,26,0" x:Name="txtHeaderAccount" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" KeyDown="ShowAccountNumberSearchGrid" Text="{Binding HeaderAccount, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="6" />

            <TextBox Height="23" Margin="13,5,26,0" x:Name="txtHeaderDepartment" VerticalAlignment="Top" Grid.Column="2" Grid.Row="2" KeyDown="ShowDepartmentSearchGrid"  Text="{Binding HeaderDepartment, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="7"/>
        </Grid>
        <Grid x:Name="gridCreditContraDetail" Background="White" Grid.Row="2" Margin="0,0,8,0"   >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.185*"/>
                <ColumnDefinition Width="0.115*"/>
                <ColumnDefinition Width="0.251*"/>
                <ColumnDefinition Width="0.233*"/>
                <ColumnDefinition Width="0.133*"/>
                <ColumnDefinition Width="0.082*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.33*"/>
                <RowDefinition Height="0.34*"/>
                <RowDefinition Height="0.33*"/>
            </Grid.RowDefinitions>
            <sdk:Label Content="Credit/Contra/Detail" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblCreditContraDetail" VerticalAlignment="Top" Width="127" Grid.Column="0" Grid.Row="0" />
            <sdk:Label Content="Account:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblDetailAccount" VerticalAlignment="Top" Width="69" Grid.Column="1" Grid.Row="1" />
            <sdk:Label Content="Sub Account:" Height="23" HorizontalAlignment="Left" Margin="4,3,0,0" x:Name="lblDetailDepartment" VerticalAlignment="Top" Width="87" Grid.Column="1" Grid.Row="2" />

            <TextBox Height="23" Margin="12,5,27,0" x:Name="txtDetailAccount" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" KeyDown="ShowAccountNumberSearchGrid"  Text="{Binding DetailAccount, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="10"/>

            <TextBox Height="23" Margin="12,5,27,0" x:Name="txtDetailDepartment" VerticalAlignment="Top" Grid.Column="2" Grid.Row="2" KeyDown="ShowDepartmentSearchGrid"  Text="{Binding DetailDepartment, Mode=TwoWay,ValidatesOnDataErrors=True,ValidatesOnNotifyDataErrors=True,ValidatesOnExceptions=True}" TabIndex="11"/>
            <telerik:RadButton Content="Save" Grid.Column="3" Margin="10,3,0,0" Grid.Row="2" VerticalAlignment="Top" x:Name="btnSave" Click="btnSave_Click" TabIndex="14" HorizontalAlignment="Left" Width="57"/>
            <telerik:RadButton Content="Clear" Grid.Column="3" Margin="71,3,24,0" Grid.Row="2" VerticalAlignment="Top"  TabIndex="15" x:Name="btnClear" Click="btnClear_Click"/>
        </Grid>

    </Grid>


  private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            busyIndicator.IsBusy = true;
            try
            {
                if (insPostingCode.InsPostingCodeId == 0)
                {
                    //check for the case the new insfee already been added due to "Submit failed" case
                    if (!insPostingCodeContext.InsPostingCodes.Contains(insPostingCode))
                    {
                        insPostingCodeContext.InsPostingCodes.Add(insPostingCode);
                    }
                }
                insPostingCodeContext.SubmitChanges(lo =>
                {
                    if (lo.HasError)
                    {
                        hasConcurrencyIssue = false;
                        foreach (Entity entity in lo.EntitiesInError)
                        {
                            //Process entity conflict concurrency
                            if (entity.EntityConflict != null)
                            {
                                hasConcurrencyIssue = true;
                                MessageBox.Show("An update concurrency issue occur.", "Result", MessageBoxButton.OK);
                                break;
                            }
                        }
                        if (!hasConcurrencyIssue)
                        {
                            MessageBox.Show(btnSave.Content.ToString() + " failed!", "Result", MessageBoxButton.OK);
                        }
                        lo.MarkErrorAsHandled();
                    }
                    else
                    {
                        MessageBox.Show(btnSave.Content.ToString() +" successfully!", "Result", MessageBoxButton.OK);
                       // Clear();
                    }
                }, null);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Result", MessageBoxButton.OK);
            }

        }

Waiting for your response again
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 06 Dec 2010, 09:51 PM
What Happen?
0
Teodor
Telerik team
answered on 08 Dec 2010, 10:53 AM
Hi Shakti SIngh Dulawat,

Thank you for the code chunks provided.

We have tried to identify the issue from the code, however, we cannot reproduce the issue without having the entity model and sample data so that we can debug locally and further investigate. In this relation, could you please send a runnable solution with the same code you have provided, so that we are able to identify the problem?

You can open a new support ticket and attach the archive with the project there. Thank you in advance!

All the best,

Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 08 Dec 2010, 09:05 PM
I can not show you entire code , why dont you add four grid and reproduce error?
0
Teodor
Telerik team
answered on 09 Dec 2010, 10:27 AM
Hello Shakti SIngh Dulawat,

Where should we add four grids?

If you can reproduce the issue in a simpler scenario, can you pack it and send it over to us? It would be a way faster than us searching for it. 

Kind regards,
Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 10 Dec 2010, 07:39 PM
Please check this

Thank you for submitting your inquiry to the Telerik Support.

Your ticket ID is: 375305

For reference, please use this number when communicating with the Telerik support about this inquiry.

0
Teodor
Telerik team
answered on 11 Dec 2010, 04:01 PM
Hello Shakti SIngh Dulawat,

Thank you for letting us know, we have addressed your issue so you may check it.

All the best,
Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
BusyIndicator
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Teodor
Telerik team
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or