This is a migrated thread and some comments may be shown as answers.

[Solved] Bug with ExportOnlyData=true

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
none123456
Top achievements
Rank 1
none123456 asked on 08 Jan 2008, 07:26 PM
Setting ExportOnlyData=true (in ExportSettings) breaks client-side selection checkboxes.

Source for a sample page demonstrating this bug is below.

David

Default.aspx:

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title>Test Page</title>

</

head>

<

body>

<form id="form1" runat="server">

<div>

<asp:ScriptManager ID="scriptManager" runat="server" EnableViewState="false" />

<telerik:RadGrid ID="testGrid" runat="server" AllowMultiRowSelection="true">

<ClientSettings ApplyStylesOnClient="True">

<Selecting AllowRowSelect="true" />

</ClientSettings>

<ExportSettings ExportOnlyData="true" />

<MasterTableView>

<Columns>

<telerik:GridClientSelectColumn UniqueName="selectColumn" />

</Columns>

</MasterTableView>

</telerik:RadGrid>

</div>

</form>

</

body>

</

html>



Default.aspx.cs:

public

partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

testGrid.DataSource =

new TestDataSource[] { new TestDataSource("A", "B"), new TestDataSource("C", "D"),

new TestDataSource("E", "F")};

testGrid.DataBind();

}

private class TestDataSource

{

private string _field1;

public string Field1

{

get { return _field1; }

set { _field1 = value; }

}

private string _field2;

public string Field2

{

get { return _field2; }

set { _field2 = value; }

}

 

public TestDataSource(string field1, string field2)

{

this._field1 = field1;

this._field2 = field2;

}

}

}

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Jan 2008, 12:59 PM
Hi dmatson,

This is a known issue at present. It is logged into our system, and our developers will soon address it.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
none123456
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or