Bonjour,
Je suis en train de tester une librairie payante (netadvantage) qui permet entre autre de créer très facilement une gridview ajax avec filtres pagination tris et redimensionnement des colonnes. C'est vraiment trés beau mais il y a un gros probleme : c'est trés lent. J'ai utilisé Yslow (un soft permettant de determiner les sources de lenteur) et il me dit que j'ai trop de fichiers javascripts, que je n'ai pas de "expires header" pour certains elements, et que certains de mes composants ne sont pas "gzipped". Alors la je suis completement largé. Qu'en pensez-vous ?
voici le code :
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<ig:WebDataGrid ID="WebDataGrid1" runat="server"
AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<Columns>
<ig:BoundDataField DataFieldName="ID_SITE" Key="ID_SITE" Width="50px">
<Header Text="ID_SITE" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_ZONE" Key="ID_ZONE" Width="50px">
<Header Text="ID_ZONE" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_ALLEE" Key="ID_ALLEE" Width="50px">
<Header Text="ID_ALLEE" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_COLONNE" Key="ID_COLONNE" Width="50px">
<Header Text="ID_COLONNE" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_NIVEAU" Key="ID_NIVEAU" Width="50px">
<Header Text="ID_NIVEAU" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_POSITION" Key="ID_POSITION" Width="50px">
<Header Text="ID_POSITION" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_PROFONDEUR" Key="ID_PROFONDEUR"
Width="50px">
<Header Text="ID_PROFONDEUR" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="DESIG" Key="DESIG" Width="50px">
<Header Text="DESIG" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_REF" Key="ID_REF" Width="50px">
<Header Text="ID_REF" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="DLV" Key="DLV" Width="50px">
<Header Text="DLV" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="DLUO" Key="DLUO" Width="50px">
<Header Text="DLUO" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="ID_LOT" Key="ID_LOT" Width="50px">
<Header Text="ID_LOT" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="DATE_FABRICATION" Key="DATE_FABRICATION"
Width="50px">
<Header Text="DATE_FABRICATION" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="QTE_DISPO" Key="QTE_DISPO" Width="50px">
<Header Text="QTE_DISPO" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="QTE_RESERVEE" Key="QTE_RESERVEE" Width="50px">
<Header Text="QTE_RESERVEE" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="QTE_A_ENTRER" Key="QTE_A_ENTRER" Width="50px">
<Header Text="QTE_A_ENTRER" />
</ig:BoundDataField>
</Columns>
<Behaviors>
<ig:Activation>
</ig:Activation>
<ig:ColumnResizing>
</ig:ColumnResizing>
<ig:Filtering>
</ig:Filtering>
<ig:Paging PagerMode="NextPrevious">
</ig:Paging>
<ig:RowSelectors>
</ig:RowSelectors>
<ig:Sorting>
</ig:Sorting>
<ig:Selection>
</ig:Selection>
</Behaviors>
</ig:WebDataGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>"
SelectCommand="SELECT "ID_SITE", "ID_ZONE", "ID_ALLEE", "ID_COLONNE", "ID_NIVEAU", "ID_POSITION", "ID_PROFONDEUR", "DESIG", "ID_REF", "DLV", "DLUO", "ID_LOT", "DATE_FABRICATION", "QTE_DISPO", "QTE_RESERVEE", "QTE_A_ENTRER" FROM "V_STOCK_ADR"">
</asp:SqlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>