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

Rad Grid Refresh

2 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kollam2003
Top achievements
Rank 1
kollam2003 asked on 06 Aug 2008, 08:31 AM
I have an asp button
 <asp:Button ID="btnInbox" runat="server" Text="Inbox" onclick="btnInbox_Click" />

In page load the button is made hidden
 btnInbox.Style.Add("display", "none");


in the asp menu item click i'm calling the script as
ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertFunction", "DeleteInboxAlertMessage();", true);



<script language="javascript" type="text/javascript">
  function DeleteInboxAlertMessage()
  {
      if(confirm("Are you sure to delete the record(s)?")== true)
        {
         //Calling the server side code after confirmation from the user
          document.getElementById("btnInbox").click();
          }
  }
  </script>


and in the button click
the delete function is added aslo the grid rebind method is called.
But the delete is occurring but the grid refresh isnt working.
Its entering the NeedDataSource. But the grid is not refreshing.

Plz reply

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Aug 2008, 05:21 AM
Hello kollam2003,

Do you have ajax manager in this scenario. If this is the case please post the ajax settings.

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
kollam2003
Top achievements
Rank 1
answered on 13 Aug 2008, 05:52 AM
hello,
I dont have an ajax manager in it.
All the controls are inside the update panel.

Thanks & Regards,

Deepak S
Tags
Grid
Asked by
kollam2003
Top achievements
Rank 1
Answers by
Vlad
Telerik team
kollam2003
Top achievements
Rank 1
Share this question
or