RadFilter doesn't contain more than 30 columns ?

21 posts, 0 answers
  1. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 06 Sep 2010 Link to this post

    Hello,

    Telerik version : 2010.2.826.35

    I use a RadFilter with RadGrid and I see just the first column and the last 29 columns of the grid.

    I tried with no RadGrid and 32 RadFilterTextFieldEditor. I had the same result.

    Just a little remark, there is a problem with css when I use design time. : CssClass="RadFilter RadFilter_Default "

     

     

     
    An other question :
    How can add RadFilterTextFieldEditor to a RadFilter with a FilterContainerID ?

    Anne

     

     

     

     

     

     

     

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 09 Sep 2010 Link to this post

    Hello Anne,

    I am afraid that we are not aware of such issue. Could you please provide us with sample code illustrating it?

    Regarding: "How can add RadFilterTextFieldEditor to a RadFilter with a FilterContainerID ?" - you can't. RadFilter will extract field types and definition from attached grid control.

    All the best,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 14 Sep 2010 Link to this post

    Hello Nikolay,

    This is my code for my backlog : I can't see the first columns in RadFilter. I can see all columns in the grid.

        <asp:LinqDataSource ID="lq_portefeuille" runat="server" ContextTypeName="ASLOGI.DB_ASLOGIDataContext"
            TableName="V_ASLOGI_Portefeuilles" Select="new (ID_port, Porteur_client, Porteur_produit, Base_MFG, SiteEntete, NumCmd, NumLigne, CodeClient, NomClient, Pays, CodeClientLivraison, NomClientLivraison, PaysLivraison, DDemCli, DAR, DDemCli_Trans, DAR_Transport, DAI, DDI, CodeArticle, Description, Site, QteCmd, QteFact, QteRestante, Emplacement, Statut, LivraisonPartielle, QteLigne, MtLigne, TotHTCmd, MtHT, MtCoutStd, AcheteurPlanificateur, CodeMarquage, CodeControle, ConditionClient)"
            Where="">        
        </asp:LinqDataSource>
      
    <telerik:RadFilter ID="RadFilter1" runat="server" Skin="WebBlue" 
            Culture="French (France)" FilterContainerID="RG_portefeuille">
        </telerik:RadFilter>
        <br />
        <telerik:RadGrid ID="RG_portefeuille" runat="server" ClientSettings-Resizing-AllowColumnResize="true"
            ClientSettings-Resizing-AllowRowResize="true" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True" ShowGroupPanel="True" DataSourceID="lq_portefeuille" GridLines="None"
            Height="600px" Skin="WebBlue" Culture="French (France)">
            <MasterTableView AutoGenerateColumns="False" DataSourceID="lq_portefeuille" EnableHeaderContextMenu="true"
                CommandItemDisplay="Top">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false">
                </CommandItemSettings>
                <Columns>
                    <telerik:GridBoundColumn DataField="ID_port" HeaderText="ID" SortExpression="ID_port"
                        HeaderStyle-Width="70px" UniqueName="ID_port" DataType="System.Int32" ReadOnly="True"
                        DataFormatString="{0:## ##0}" ItemStyle-HorizontalAlign="Right">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Porteur_client" HeaderText="Porteur client" HeaderStyle-Width="130px"
                        ReadOnly="True" SortExpression="Porteur_client" UniqueName="Porteur_client">
                        <HeaderStyle Width="130px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Porteur_produit" HeaderStyle-Width="130px" HeaderText="Porteur produit"
                        ReadOnly="True" SortExpression="Porteur_produit" UniqueName="Porteur_produit">
                        <HeaderStyle Width="130px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Base_MFG" HeaderText="Base" HeaderStyle-Width="45px"
                        ReadOnly="True" SortExpression="Base_MFG" UniqueName="Base_MFG">
                        <HeaderStyle Width="45px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SiteEntete" HeaderText="Site en tête" HeaderStyle-Width="65px"
                        ReadOnly="True" SortExpression="SiteEntete" UniqueName="SiteEntete">
                        <HeaderStyle Width="65px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NumCmd" HeaderText="N° commande" ReadOnly="True"
                        HeaderStyle-Width="105px" SortExpression="NumCmd" UniqueName="NumCmd">
                        <HeaderStyle Width="105px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NumLigne" DataType="System.Int32" HeaderText="N° ligne"
                        ReadOnly="True" SortExpression="NumLigne" UniqueName="NumLigne" DataFormatString="{0:## ##0}"
                        ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="70px">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CodeClient" HeaderText="Code client" HeaderStyle-Width="90px"
                        ReadOnly="False" SortExpression="CodeClient" UniqueName="CodeClient">
                        <HeaderStyle Width="90px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NomClient" HeaderText="Nom client" HeaderStyle-Width="150px"
                        ReadOnly="True" SortExpression="NomClient" UniqueName="NomClient">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Pays" HeaderText="Pays" ReadOnly="True" HeaderStyle-Width="40px"
                        SortExpression="Pays" UniqueName="Pays">
                        <HeaderStyle Width="40px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CodeClientLivraison" HeaderText="Code client livraison"
                        ReadOnly="True" SortExpression="CodeClientLivraison" UniqueName="CodeClientLivraison"
                        HeaderStyle-Width="140px">
                        <HeaderStyle Width="140px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NomClientLivraison" HeaderText="Nom client livraison"
                        ReadOnly="True" SortExpression="NomClientLivraison" UniqueName="NomClientLivraison"
                        HeaderStyle-Width="150px" Visible="false">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PaysLivraison" HeaderText="Pays livraison" HeaderStyle-Width="70px"
                        ReadOnly="True" SortExpression="PaysLivraison" UniqueName="PaysLivraison">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDemCli" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="Delai dde client" ReadOnly="True" SortExpression="DDemCli" UniqueName="DDemCli"
                        DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DAR" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="DAR" ReadOnly="True" SortExpression="DAR" UniqueName="DAR" DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDemCli_Trans" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="Délai dde client trans" ReadOnly="True" SortExpression="DDemCli_Trans"
                        UniqueName="DDemCli_Trans" DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DAR_Transport" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="DAR Trans" ReadOnly="True" SortExpression="DAR_Transport" UniqueName="DAR_Transport"
                        DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DAI" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="DAI" ReadOnly="True" SortExpression="DAI" UniqueName="DAI" DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDI" DataType="System.DateTime" HeaderStyle-Width="85px"
                        HeaderText="DDI" ReadOnly="True" SortExpression="DDI" UniqueName="DDI" DataFormatString="{0:d}">
                        <HeaderStyle Width="85px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CodeArticle" HeaderText="Code article" HeaderStyle-Width="150px"
                        ReadOnly="True" SortExpression="CodeArticle" UniqueName="CodeArticle">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Description" HeaderText="Description" HeaderStyle-Width="170px"
                        ReadOnly="True" SortExpression="Description" UniqueName="Description">
                        <HeaderStyle Width="170px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Site" HeaderText="Site" ReadOnly="True" HeaderStyle-Width="75px"
                        SortExpression="Site" UniqueName="Site">
                        <HeaderStyle Width="75px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QteCmd" DataType="System.Double" HeaderStyle-Width="70px"
                        HeaderText="Qté cmd" ReadOnly="True" SortExpression="QteCmd" UniqueName="QteCmd"
                        DataFormatString="{0:## ##0}" ItemStyle-HorizontalAlign="Right">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QteFact" DataType="System.Double" HeaderText="Qté fact"
                        ReadOnly="True" SortExpression="QteFact" UniqueName="QteFact" DataFormatString="{0:## ##0}"
                        ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="70px">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QteRestante" DataType="System.Double" HeaderText="Qté restante"
                        ReadOnly="True" SortExpression="QteRestante" UniqueName="QteRestante" DataFormatString="{0:## ##0}"
                        ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="70px">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Emplacement" HeaderText="Emplacement" HeaderStyle-Width="100px"
                        ReadOnly="True" SortExpression="Emplacement" UniqueName="Emplacement">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Statut" HeaderText="Statut" ReadOnly="True" HeaderStyle-Width="50px"
                        SortExpression="Statut" UniqueName="Statut">
                        <HeaderStyle Width="50px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="LivraisonPartielle" DataType="System.Boolean"
                        HeaderText="Livraison partielle" ReadOnly="True" SortExpression="LivraisonPartielle"
                        UniqueName="LivraisonPartielle" HeaderStyle-Width="75px">
                        <HeaderStyle Width="75px"></HeaderStyle>
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridBoundColumn DataField="QteLigne" DataType="System.Double" HeaderText="Qté ligne"
                        ReadOnly="True" SortExpression="QteLigne" UniqueName="QteLigne" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:## ### ##0}" HeaderStyle-Width="60px">
                        <HeaderStyle Width="60px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MtLigne" DataType="System.Double" HeaderText="Mt ligne"
                        ReadOnly="True" SortExpression="MtLigne" UniqueName="MtLigne" DataFormatString="{0:## ### ##0.#0}"
                        ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px">
                        <HeaderStyle Width="80px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TotHTCmd" DataType="System.Double" HeaderText="Tot HT Cmd"
                        ReadOnly="True" SortExpression="TotHTCmd" UniqueName="TotHTCmd" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:## ### ##0.#0}" HeaderStyle-Width="80px">
                        <HeaderStyle Width="80px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MtHT" DataType="System.Double" HeaderStyle-Width="80px"
                        HeaderText="Mt HT" ReadOnly="True" SortExpression="MtHT" UniqueName="MtHT" DataFormatString="{0:## ### ##0.#0}"
                        ItemStyle-HorizontalAlign="Right">
                        <HeaderStyle Width="80px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MtCoutStd" DataType="System.Double" HeaderText="Mt cout std"
                        ReadOnly="True" SortExpression="MtCoutStd" UniqueName="MtCoutStd" DataFormatString="{0:## ### ##0.#0}"
                        ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px">
                        <HeaderStyle Width="80px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AcheteurPlanificateur" HeaderText="Ach plan"
                        ReadOnly="True" SortExpression="AcheteurPlanificateur" UniqueName="AcheteurPlanificateur"
                        HeaderStyle-Width="80px">
                        <HeaderStyle Width="80px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CodeMarquage" HeaderText="Marquage" HeaderStyle-Width="75px"
                        ReadOnly="True" SortExpression="CodeMarquage" UniqueName="CodeMarquage">
                        <HeaderStyle Width="75px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CodeControle" HeaderText="Controle" HeaderStyle-Width="65px"
                        ReadOnly="True" SortExpression="CodeControle" UniqueName="CodeControle">
                        <HeaderStyle Width="65px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ConditionClient" HeaderText="Condition client"
                        ReadOnly="True" SortExpression="ConditionClient" UniqueName="ConditionClient"
                        HeaderStyle-Width="75px">
                        <HeaderStyle Width="75px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <Resizing AllowColumnResize="True" AllowRowResize="True"></Resizing>
            </ClientSettings>
            <ExportSettings ExportOnlyData="true" OpenInNewWindow="true" IgnorePaging="true">
            </ExportSettings>
        </telerik:RadGrid>

    Best regards,
    Anne
  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 17 Sep 2010 Link to this post

    Hello Anne,

    For your convenience I have attached sample page demonstrating how you can enabled scrolling for RadContextMenu in RadFilter. I do not see any other reason for not seeing some columns.

    Greetings,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 01 Dec 2010 Link to this post

    Thank you very much Nikolay

    I 'll apply this code on my all radfilters.

    Best regards
    Anne
  7. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 23 Dec 2010 Link to this post

    Hello Nikolay,

    Your code doesn't work with the last version of Telerik V.2010.3.1215.35. The code stop when I change the column in the expression of radfilter on this line :
    }var M=F._flow || F.get_groupsettings().get_flow();
    Error execution Microsoft JScript

    Can you help me, please
  8. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 28 Dec 2010 Link to this post

    Hello Anne,

    I am not able to replicate the error on the sample page from my last post. Can you please verify if it is reproducible on that page.

    Best wishes,
    Nikolay
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  9. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 03 Jan 2011 Link to this post

    Hello Nikolay,

    I use your code translate in VB :

    Private Sub RadFilter1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadFilter1.PreRender
            Dim menu = TryCast(RadFilter1.FindControl("rfContextMenu"), RadContextMenu)
            menu.DefaultGroupSettings.Height = Unit.Pixel(150)
            menu.EnableAutoScroll = True
      
        End Sub

    If I disable the 3 lines. I have no error but not all my columns in the list.

    Happy new year

    Anne
  10. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 06 Jan 2011 Link to this post

    Hello Anne,

    Yes this all the three lines that you need to enable scrolling of RadContextMenu. I am afraid that I am not able to replicate the error. Could you please send us formal support ticket and attach runnable sample that replicates the error? Thus we'll be able to assist you further.

    All the best,
    Nikolay
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  11. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 07 Jan 2011 Link to this post

    OK Nikolay,

    For the moment, I come back to the previous version 2010.3.1109.35

    I'll do a ticket next week, with the last version.

    Regards
    Anne
  12. George
    George avatar
    2 posts
    Member since:
    Dec 2008

    Posted 26 Jan 2011 Link to this post

    I get the same issue. I'm using version 2010.3.1317.40
  13. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 27 Jan 2011 Link to this post

    Hello Georges,

    The problem will be corrected in the next version.

    Regards
    Anne
  14. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 27 Jan 2011 Link to this post

    Hello Anne and Georges,

    The error is already fix in internal build. You can give it a try.

    Greetings,
    Nikolay
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  15. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 28 Jan 2011 Link to this post

    Nikolay,

    I try it in the version 2010.3.1317.35 without success.

    I can't download other version.

    Regards
    Anne
  16. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 31 Jan 2011 Link to this post

    Hello Anne,

    You have downloaded the latest service pack in which the problem exists. Try the latest internal build in which the issue is fixed.

    All the best,
    Pavel
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  17. Anne
    Anne avatar
    39 posts
    Member since:
    May 2010

    Posted 31 Jan 2011 Link to this post

    Thank you Pavel for your answer.

    I try it. It's good for me !

    Regards
    Anne
  18. Michael
    Michael avatar
    12 posts
    Member since:
    Dec 2010

    Posted 11 Mar 2011 Link to this post

    Hey,

    This solution only partially works for us.
    Using the code you provided it works for the main dropdown, but this screws up the "AND, OR" selector dropdown. And I understand that they are the same dropdown box, so this isn't really possible to set on the server side.
    I could fix this if I knew how to resize the dropdown using the client side API - but menu.get_defaultGroupSettings() has a "set_height()" function which doesn't seem to work.

    Can you explain how I can do this? Or provide another solution?
  19. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 17 Mar 2011 Link to this post

    Hello Michael,

    You can try the following script:
        <script type="text/javascript">
            function pageLoad()
            {
                var menu = $find("GridFilter").get_contextMenu();
                menu.add_showing(
    function (sender, args)
    {
        if (sender.get_attributes()._data.CommandName === "ChangeGroupOperator")
        {            
            $telerik.$(".rmScrollWrap", sender.get_element()).css("height", "100px");        
        }
        else
        {
            $telerik.$(".rmScrollWrap", sender.get_element()).css("height", "150px");
        }
    }
    );
            }
        </script>


    Greetings,
    Nikolay
    the Telerik team
  20. Michael
    Michael avatar
    12 posts
    Member since:
    Dec 2010

    Posted 17 Mar 2011 Link to this post

    Hi Nikolay,

    That didn't work.
    Whichever one you click on first sets that height first, then the height doesn't change after that.
    So if you click the "ChangeGroupOperator" first, then all menus after that will be 100px high. And vice versa for the other menu.

    It still also had the issue of if you click the column selector column. Scroll down. Then click the group operator menu, it will show a 150px/100px high empty box with a scroll at the top. Then if you scroll up slightly they appear. But it is blank to begin with, which is confusing and ugly.
  21. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 23 Mar 2011 Link to this post

    Hello Michael,

    I am attaching sample page that demonstrates how to implement this scenario. Please give it a try and let me know whether it helps.

    Greetings,
    Nikolay
    the Telerik team
  22. Michael
    Michael avatar
    12 posts
    Member since:
    Dec 2010

    Posted 23 Mar 2011 Link to this post

    Nikolay. You sir, are a god amongst men! Thank you!

    I noticed the changes. For anyone who has this same issue in the future - here is the final solution.

    You put this in your page:

    function pageLoad(sender, args) { 
        var gridFilterMenu = $find("<%=RadFilter1.ClientID %>");
        if (gridFilterMenu) {
            gridFilterMenu = gridFilterMenu.get_contextMenu();
            gridFilterMenu.add_showing(
                function (sender, args) {
                    if (sender.get_attributes()._data.CommandName === "ChangeGroupOperator") {
                        $telerik.$(".rmScrollWrap", sender._contextMenuElement).css("height", "94px");
                        sender._scroller.set_currentPosition(0);
                    }
                    else {
                        $telerik.$(".rmScrollWrap", sender._contextMenuElement).css("height", "200px");
                    }
                }
            );
        }
     
    }

    And on the server side you also need:

    RadFilter1.PreRender += (preRenderSender, preRenderArgs) =>
    {
        var preRenderMenu = RadFilter1.FindControl("rfContextMenu") as RadContextMenu;
        preRenderMenu.EnableAutoScroll = true;
        preRenderMenu.DefaultGroupSettings.Height = Unit.Pixel(200);
    };
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017