コード例 #1
0
        public void Should_not_serialize_client_template_if_not_set()
        {
            var grid = GridTestHelper.CreateGrid <Customer>();

            grid.Ajax.Enabled = true;

            var result = new GridBoundColumn <Customer, int>(grid, c => c.Id).CreateSerializer().Serialize();

            Assert.False(result.ContainsKey("template"));
        }
コード例 #2
0
        public void Should_not_serialize_editor_html_in_server_binding_mode()
        {
            var grid = GridTestHelper.CreateGrid <Customer>();

            grid.Editing.Enabled = true;

            var result = new GridBoundColumn <Customer, int>(grid, c => c.Id).CreateSerializer().Serialize();

            Assert.False(result.ContainsKey("editor"));
        }