Problem FilterMenu in Grid

8 posts, 0 answers
  1. Cedric
    Cedric avatar
    1 posts
    Member since:
    Sep 2008

    Posted 09 Sep 2008 Link to this post

    Hello,

    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="&#160;S&#233;lectionner une page: {4} &amp;nbsp;|&amp;nbsp; Page {0} sur {1}, Document {2} &#224; {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>&#160; 
                                    </td> 
                                    <td valign="middle"
                                    <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





  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 Sep 2008 Link to this post

    Hello Cedric,

    Unfortunately the classic RadMenu does not support screen boundary detection.
    But you can swap the position of the filtering textbox and the filter button in you case.

    Find more about RadGrid filtering:
    http://www.telerik.com/help/aspnet/grid/grdbasicfiltering.html
    http://www.telerik.com/help/aspnet/grid/grdfilteringitem.html
    http://www.telerik.com/help/aspnet/grid/grdsettingfiltertextboxdimensions.html

    All the best,
    Iana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Josh Berkheimer
    Josh Berkheimer avatar
    67 posts
    Member since:
    Sep 2006

    Posted 26 Sep 2008 Link to this post

    I have the exact same problem.  THe links provided do not explain how to fix this issue.  How can I make the filter menu appear to the left and underneath the textbox??
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 29 Sep 2008 Link to this post

    Hi Josh,

    RadGrid for ASP.NET AJAX has built-in RadContextMenu as filter menu which has screen boundary detection. Therefore, the filter menu for rightmost column should be positioned automatically in a different location in order to be able to see all filter menu options.

    Best regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Josh Berkheimer
    Josh Berkheimer avatar
    67 posts
    Member since:
    Sep 2006

    Posted 29 Sep 2008 Link to this post

    The only problem with this is I'm using version 5.1.1, the version before prometheus.  How do youy fix this bug in the version that I have?
  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 30 Sep 2008 Link to this post

    Hi Josh,

    The screen boundary detection is not supported by the built-in filtering menu of RadGrid for ASP.NET. You may consider migrating to the ASP.NET AJAX version of the control (as your account indicates that you are using a trial version of our controls). This article from the documentation can facilitate you during the upgrade process:

    http://www.telerik.com/help/aspnet-ajax/grdmigrationtoprometheus.html

    Regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Josh Berkheimer
    Josh Berkheimer avatar
    67 posts
    Member since:
    Sep 2006

    Posted 01 Oct 2008 Link to this post

    I cannot upgrade as we own the previous version.  This is not a fix.  Can you please provide a fix for the previous version in question?  My company owns the license not me....
  9. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Oct 2008 Link to this post

    Hello Josh,

    Unfortunately the fix you request is not attainable with the Classic version of RadGrid and its built-in filtering menu. A possible workaround would be to decrease the width of the last column in the grid in order to save some space on the right and display the filter menu within the browser window boundaries.

    On a side note - I was not able to find an active purchase under the company name you specified in your account. Can you please submit the company/purchase details as part of a formal support ticket along with a permission to be added as a licensed developer? Thus we can update your account and you will be able to download dev versions of our products directly from there as well as to receive responses of your support tickets based on the license.

    Best regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017