Devexpress ASPxGridView CustomCallback. send parameters from client side :(from timer's tick.. this example) :
** client side:
function(s, e) {
grid.PerformCallback('aydin;' + 'türker' );
}
server side :
protected void ASPxGridView1_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e)
{
var prm = e.Parameters;
var pr1 = prm.Split(';')[0];
var pr2 = prm.Split(';')[1];
if (pr1.ToString()=="aydin")
{
this.ASPxGridView1.DataBind();
}
}
function(s, e) {
grid.PerformCallback('aydin;' + 'türker' );
}
server side :
protected void ASPxGridView1_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e)
{
var prm = e.Parameters;
var pr1 = prm.Split(';')[0];
var pr2 = prm.Split(';')[1];
if (pr1.ToString()=="aydin")
{
this.ASPxGridView1.DataBind();
}
}
Yorumlar
Yorum Gönder