RadGrid does not refresh in the asp:Wizard

3 posts, 0 answers
  1. Armen
    Armen avatar
    9 posts
    Member since:
    May 2009

    Posted 13 May 2009 Link to this post


    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"
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID">
    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. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 18 May 2009 Link to this post

    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,
    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.
  3. Coty
    Coty avatar
    90 posts
    Member since:
    Aug 2006

    Posted 04 Aug 2009 Link to this post

    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  
            Catch ex As Exception  
                lblMessage.Text = ex.Message  
            End Try 
        End Sub 

    Solution works, thanks!
Back to Top