PDA

View Full Version : [CLOSED] xtrareports and ext.net



metci
Oct 02, 2014, 6:39 AM
Hi,

In a page we have a similar issue to the one in this link http://forums.ext.net/showthread.php?11719-CLOSED-1-0-telerik-report-with-Ext-NEt-directEvents. We try to generate an xtrareports report after user selects some criteria from ext.net combobox and presses a button. Xtrareports again needs postback, for the postback, we set the autopostback property of the button to true. But this time, contents of the comboboxes are cleared. Is there a way of overcoming these problems?

Regards.

Daniil
Oct 02, 2014, 1:34 PM
Hi @metci,

I cannot reproduce it with the test case below.

Example

<%@ Page Language="C#" %>

<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
Store store = this.ComboBox1.GetStore();
store.DataSource = new object[]
{
new object[] { "1", "Item 1" },
new object[] { "2", "Item 2" },
new object[] { "3", "Item 3" }
};
}
}
</script>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:ComboBox
ID="ComboBox1"
runat="server"
DisplayField="text"
ValueField="value">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="value" />
<ext:ModelField Name="text" />
</Fields>
</ext:Model>
</Model>
<Reader>
<ext:ArrayReader />
</Reader>
</ext:Store>
</Store>
</ext:ComboBox>
<ext:Button runat="server" Text="PostBack" AutoPostBack="true" />
</form>
</body>
</html>