protected void storeSPClientGroup_Refresh(object sender, StoreRefreshDataEventArgs e) { List <SPClientGroupWrapper> channels = SPClientGroupWrapper.FindAll(); storeSPClientGroup.DataSource = channels; storeSPClientGroup.DataBind(); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/json"; List <SPClientGroupWrapper> clientGroups = new List <SPClientGroupWrapper>(); if (context.Request.QueryString["DataType"] == "GetAllClientGroup") { clientGroups = SPClientGroupWrapper.FindAll(); } context.Response.Write(string.Format("{{total:{1},'datas':{0}}}", JSON.Serialize(clientGroups), clientGroups.Count)); }
protected void storeSPChannelGroup_Refresh(object sender, StoreRefreshDataEventArgs e) { this.storeSPChannelGroup.DataSource = SPClientGroupWrapper.FindAll(); this.storeSPChannelGroup.DataBind(); }