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

RadGrid does not refresh in the asp:Wizard

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Armen
Top achievements
Rank 1
Armen asked on 13 May 2009, 06:44 PM
Hello,

I had my RadGrid with DataSourceID - from Database. The data displays fine.
 My original goal is delete the recod on the server and I noticed the sample from Help.

<telerik:RadGrid id="RadGrid1" runat="server" OnDeleteCommand="RadGrid1_DeleteCommand"
OnNeedDataSource="RadGrid1_NeedDataSource">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID">
   
<Columns>
  ........
When I tried to use that, the application never fires OnNeedDataSource event, 
so my Grid is always empty .

Did I missed something or this code sample is not complete.

Please help

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 18 May 2009, 07:01 AM
Hello Armen,

If the wizard step that contains the grid is not the one that is initially displayed, you need to attach an event handler to the ActiveStepChanged event of the wizard and call the grid's Rebind method.

I hope this information helps.

Best Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Coty
Top achievements
Rank 1
answered on 04 Aug 2009, 07:11 PM

I did a search for using the grid in the wizard and found this answer, ...it was driving me crazy.

 

My grid was in my wizard step 5, and would not appear.

 

    Protected Sub WizardStep5_Activate(ByVal sender As ObjectByVal e As System.EventArgs) Handles WizardStep5.Activate  
 
        Try 
 
            RadGrid1.Rebind()  
 
        Catch ex As Exception  
            lblMessage.Text = ex.Message  
        End Try 
 
    End Sub 

Solution works, thanks!
Tags
Grid
Asked by
Armen
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Coty
Top achievements
Rank 1
Share this question
or