Hello,
We are facing a problem with the location of the FilterMenu for the top right column
Screen shot here
Filter menu is filled this way :
Is it possible de place this menu in different location?
thanks,
Cedric
We are facing a problem with the location of the FilterMenu for the top right column
Screen shot here
<radG:RadGrid ID="RadGridCtrl" runat="server" GridLines="None" AllowPaging="false" AllowSorting="true" EnableAJAX="true" EnableAJAXLoadingTemplate="true" LoadingTemplateTransparency="0" ShowGroupPanel="True" OnItemDataBound="RadGridCtrl_ItemDataBound" PageSize="30" Width="100%" Height="100%" AutoGenerateColumns="false" OnNeedDataSource="RadGridCtrl_NeedDataSource" DataMember="OUTPUT" AllowFilteringByColumn="true" OnItemCreated="RadGridCtrl_ItemCreated" OnPreRender="RadGridCtrl_PreRender" OnColumnCreated="RadGridCtrl_ColumnCreated" OnItemCommand="RadGridCtrl_ItemCommand"> |
<FilterMenu CssClass="FilterMenuClass"></FilterMenu> |
<GroupPanel Visible="True" Text="Glissez une entête de colonne et déposez la ici pour exécuter le regroupement sur cette colonne"></GroupPanel> |
<ClientSettings AllowColumnsReorder="false" AllowDragToGroup="true" ReorderColumnsOnClient="false" AllowGroupExpandCollapse="true"> |
<Selecting AllowRowSelect="true" /> |
<ClientEvents OnRowDblClick="RowDblClick" OnGridCreated="GetGridObject" OnRequestEnd="RequestEnd" OnRowSelecting="RowSelecting" OnRowClick="RowClick"/> |
<Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling> |
</ClientSettings> |
<HeaderStyle Width="100px" /> |
<PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" PagerTextFormat=" Sélectionner une page: {4} &nbsp;|&nbsp; Page {0} sur {1}, Document {2} à {3} sur {5}." AlwaysVisible="false"/> |
<MasterTableView AllowMultiColumnSorting="true" width="100%" GroupLoadMode="Client" ShowFooter="true" CommandItemDisplay="Top"> |
<Columns> |
<radG:GridBoundColumn DataField="DDREQNBR" UniqueName="DDREQNBR" AllowFiltering="False" Reorderable="False" Resizable="False" HeaderText="" Groupable="false"> |
<HeaderStyle Width="25px" /> |
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCDSCDC" HeaderText="Description" UniqueName="DDDOCDSCDC"> |
<HeaderStyle Width="100%"/> |
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="100%"/> |
</radG:GridBoundColumn> |
<radG:GridTemplateColumn UniqueName="DDEDTIDIMG" Reorderable="False" Resizable="False" AllowFiltering="False"> |
<ItemTemplate> |
<asp:Image ID="ImageButtonEditor" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px" CssClass="FilterButtonClass"/> |
</ItemTemplate> |
<HeaderStyle Width="25px" /> |
<ItemStyle HorizontalAlign="Center" Width="25px" VerticalAlign="Middle"/> |
</radG:GridTemplateColumn> |
<radG:GridBoundColumn DataField="DDEDTID" UniqueName="DDEDTID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridTemplateColumn UniqueName="DDCMTFLAGIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> |
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> |
<ItemTemplate> |
<asp:Image ID="ImageButtonComment" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> |
</ItemTemplate> |
<HeaderStyle Width="25px" /> |
</radG:GridTemplateColumn> |
<radG:GridTemplateColumn UniqueName="DDDOCWKFIDIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> |
<ItemTemplate> |
<asp:Image ID="ImageWorkflow" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> |
</ItemTemplate> |
<HeaderStyle Width="25px" /> |
<ItemStyle HorizontalAlign="Center" Width="25px" VerticalAlign="Middle"/> |
</radG:GridTemplateColumn> |
<radG:GridTemplateColumn UniqueName="DDVSAFLAGIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> |
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> |
<ItemTemplate> |
<asp:Image ID="ImageButtonVisa" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> |
</ItemTemplate> |
<HeaderStyle Width="25px" /> |
</radG:GridTemplateColumn> |
<radG:GridBoundColumn DataField="DDDTPDESC" HeaderText="Nature" UniqueName="DDDTPDESC"> |
<HeaderStyle Width="200px"/> |
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px"/> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCCTDTA" HeaderText="Date d'ajout" UniqueName="DDDOCCTDTA" DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}"> |
<HeaderStyle Width="110px"/> |
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="110px"/> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCCTTMA" UniqueName="DDDOCCTTMA" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCSTNME" UniqueName="DDDOCSTNME" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDVSAFLAG" UniqueName="DDVSAFLAG" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCWKFID" UniqueName="DDDOCWKFID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDCMTFLAG" UniqueName="DDCMTFLAG" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDEPID" UniqueName="DDDEPID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDDBID" UniqueName="DDDDBID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCDCTID" UniqueName="DDDOCDCTID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCCTUSR" UniqueName="DDDOCCTUSR" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCMDFUS" UniqueName="DDDOCMDFUS" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCMFDTA" UniqueName="DDDOCMFDTA" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCMFTMA" UniqueName="DDDOCMFTMA" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCDTPA8" UniqueName="DDDOCDTPA8" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCNUMBA" UniqueName="DDDOCNUMBA" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCPNMBA" UniqueName="DDDOCPNMBA" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDCVIDXST" UniqueName="DDDCVIDXST" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCARCID" UniqueName="DDDOCARCID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCVRSID" UniqueName="DDDOCVRSID" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDSTKUNIT" UniqueName="DDSTKUNIT" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDVRSFLAG" UniqueName="DDVRSFLAG" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDLNKFLAG" UniqueName="DDLNKFLAG" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDTPR25A" UniqueName="DDDTPR25A" Display="False"> |
</radG:GridBoundColumn> |
<radG:GridBoundColumn DataField="DDDOCPACID" UniqueName="DDDOCPACID" Display="False"> |
</radG:GridBoundColumn> |
</Columns> |
<NoRecordsTemplate> |
Il n'y a aucun document à afficher. |
</NoRecordsTemplate> |
<CommandItemTemplate> |
<table> |
<tr> |
<td valign="middle"> |
<font class="LabelFrameMainSelfCapture"><strong>Liste des documents </strong></font>  |
</td> |
<td valign="middle"> |
<a href="#" onclick="javascript:GS_AddLotPAC('<%=ViewState["G_USR"]%>','<%=ViewState["G_ENV"]%>');"><asp:Image ID="btnLot" runat="server" ImageUrl="img/NAVGO/GS00addlot.gif" Visible="true" ToolTip="Ajouter un document à un panier" /></a> |
</td> |
</tr> |
</table> |
</CommandItemTemplate> |
</MasterTableView> |
<AJAXLoadingTemplate> |
<table width="100%" cellpadding="0" cellspacing="0" height="100%" bgcolor="white"> |
<tr> |
<td style="cursor: wait; width: 100%; height: 100px" valign="middle" align="center"> |
<asp:Image ID="ImageWait" runat="server" SkinID="WaitSkin"/> |
</td> |
</tr> |
</table> |
</AJAXLoadingTemplate> |
</radG:RadGrid> |
Filter menu is filled this way :
GridFilterMenu filterMenu = RadGridCtrl.FilterMenu; |
foreach (GridMenuItem menuItem in filterMenu.Items) |
{ |
switch (menuItem.Text) |
{ |
case "NoFilter": |
menuItem.Text = "Aucun"; |
break; |
case "Contains": |
menuItem.Text = "Contient"; |
break; |
case "DoesNotContain": |
menuItem.Text = "Ne contient pas"; |
break; |
case "StartsWith": |
menuItem.Text = "Commence par"; |
break; |
case "EndsWith": |
menuItem.Text = "Fini par"; |
break; |
case "EqualTo": |
menuItem.Text = "Egale à"; |
break; |
case "NotEqualTo": |
menuItem.Text = "Différent de"; |
break; |
case "GreaterThan": |
menuItem.Text = "Supérieur à"; |
break; |
case "LessThan": |
menuItem.Text = "Inférieur à"; |
break; |
case "GreaterThanOrEqualTo": |
menuItem.Text = "Supérieur ou égale à"; |
break; |
case "LessThanOrEqualTo": |
menuItem.Text = "Inférieur ou égale à"; |
break; |
case "Between": |
menuItem.Text = "Entre"; |
break; |
case "NotBetween": |
menuItem.Text = "Pas entre"; |
break; |
default: |
break; |
} |
} |
Is it possible de place this menu in different location?
thanks,
Cedric