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?
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?