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

rad grid rebind in RaiseCallbackEvent

0 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
liju
Top achievements
Rank 1
liju asked on 02 Sep 2011, 01:20 PM
Hi
I have a datalist(looking like a dropdown:- clicking on an expand button pops up the datalist) with links clicking on which calls a pagemethod to update one status field in the database. I have a rad grid which is showing the status-change history.So after the update in the database, i need to rebind the radgrid, here i am doing it using a RaiseCallbackEvent .
<script type="text/javascript">
var usrid;var jid;var st;
function updatestatus(id,stat)
{
st=stat;
usrid = $get("ctl00_CPHMain_Applicantsdetails_hdusrid");
jid = $get("ctl00_CPHMain_Applicantsdetails_hdjbid");
            if (usrid.value.length > 0) {
                PageMethods.UpdateStatus(usrid.value,jid.value,id,OnCheckUpdate);
            }
          
                CallServer("", "");  
}
in code behind

 public string GetCallbackResult()
        {
            return "true";
        }
        public void RaiseCallbackEvent(string eventArgument)
        {
            RGHistory.Rebind();
        }
i could see the data fetching in the needdatasource event and binding to the radgrid using break points.
but the fetched data is not rendering in the grid.
is this coz of a partial postback?
Is there any way to render the grid?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
liju
Top achievements
Rank 1
Share this question
or