Ejemplo n.º 1
0
        /// <summary>
        /// Renders JSON data that can be added on the client side using .flexAddData()
        /// Rows must first be populated.
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        public string RenderFlexData(int page)
        {
            var jsonObj = new JSONObject(new { page = page.ToString(), total = Rows.Count.ToString(), rows = Rows });

            return(jsonObj.Render());
        }