May 04, 2012, 10:27 PM
[CLOSED] RowSelectionModel REV 3986
HI, i have update at the versione 3986, but i have a problem the load the store, the store il load but not show the data:
the problem seems to be the RowSelectionModel and appear only then the page is not a postback. If call a directmethod that execute a postback then the page is load the data appear.
In all prevoius versione it's work.
Thanks
Aurelio.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
StoreContinenti.DataSource = QueryGeografia.CaricaContinenti();//Linq Query
StoreContinenti.DataBind();
Session["EditModeContinente"] = "Read";
}
}
<ext:Panel ID="PanelContinenti" runat="server" Region="West" Width="300" BodyPadding="3"
Layout="FitLayout" Split="true">
<Items>
<ext:GridPanel ID="GridPanelContinenti" runat="server" Title="Continenti"
StoreID="StoreContinenti">
<ColumnModel>
<Columns>
<ext:Column runat="server" ID="ConCod" DataIndex="ConCod" Align="Left" Text="Codice" Width="100" />
<ext:Column runat="server" ID="GruAziDes" DataIndex="ConDes" Align="Left" Flex="1" Text="Continente" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModelContinente" Mode="Single" runat="server">
<Listeners>
<Select Handler="enableButtonRowSelect(record);" />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>
</Items>
</ext:Panel>
If leave the section RowSelectionModel, it's work ok. The data in show in the gridpanel.the problem seems to be the RowSelectionModel and appear only then the page is not a postback. If call a directmethod that execute a postback then the page is load the data appear.
In all prevoius versione it's work.
Thanks
Aurelio.
Last edited by Daniil; May 05, 2012 at 9:29 PM.
Reason: [CLOSED]