Pivot Table : Filter Window menu item/ Label Filter header/ Field Setting Window header

12 posts, 0 answers
  1. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 13 Jul 2015 Link to this post

    Hi

     

    As shown in attachments:

    1. Filter window:  As we have column in pivot table row fields (Restaurant name), we need with space only in the menu items of Filter Window (Needed : restaurant Name ,Currently showing is without space : restaurantname)

    2. In Label Filter/Value Filter headers also we need same thing.

    3. In Summarize by settings window header also we need same thing.

     

    Currently its showing the name as in database column name
  2. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 16 Jul 2015 Link to this post

    Hello team,

     

    Please suggest on this.I need this very urgently.

     

    Thanks

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 16 Jul 2015 Link to this post

    Hi Shilpa,

    If you would like to change the text that is displayed next to the filter icon you can use the Caption property of the field.

    Additionally, if you would like to change the text only visually you could use JavaScript and modify it. You can handle the OnMenuShown client-side event and implement the logic in it.


    Regards,
    Viktor Tachev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 16 Jul 2015 in reply to Viktor Tachev Link to this post

    Hi Viktor,

    Can you please provide the example of OnMenuShow event.

  6. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 16 Jul 2015 in reply to Shilpa Link to this post

    And also will this be applicable for all three type of window pop ups
  7. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 20 Jul 2015 Link to this post

    Hi team,

     

    please reply

     

    Thanks

  8. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 21 Jul 2015 Link to this post

    Hello Shilpa,

    Actually the OnMenuShown would not be suitable because postback is performed when the filter icon is clicked. You can use the PivotGridCreated event in order to change the text in the popup.

    <ClientSettings>
        <ClientEvents OnPivotGridCreated="pivotCreated" />
    </ClientSettings>


    function pivotCreated(sender, args) {
        var spanElement;
        var windowTitle;
     
        if (sender.get_filterDialog()) {
            spanElement = $telerik.$(".rmRootLink.rmDisabled .rmText");
            spanElement.html(spanElement.html().replace(/([A-Z])/g, ' $1'));
        }
    }



    Regards,
    Viktor Tachev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  9. Shilpa
    Shilpa avatar
    29 posts
    Member since:
    Apr 2015

    Posted 22 Jul 2015 in reply to Viktor Tachev Link to this post

    thanks for reply Viktor

    The code you provided is adding space. 

    Actually we want to replace the column names with name as shown in pivot table(i used caption feild to replace the name in table), please find attached image

     

    Please reply at earliest.

  10. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 24 Jul 2015 Link to this post

    Hi Shilpa,

    If you would like to change the FieldName text in the filter dialog you can use similar logic like before. However, instead of adding spaces to the text you should analyze the value and put the necessary replacement text.


    Regards,
    Viktor Tachev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  11. Praveen
    Praveen avatar
    2 posts
    Member since:
    Jul 2015

    Posted 28 Sep 2015 Link to this post

    Hi Viktor,

    The above sample code provided by you helped me a lot.

    Is there any way to access header for Summarize by Settings/Value Filter as per my findings no css class is present for that.

     

    Thanks in advance

  12. Praveen
    Praveen avatar
    2 posts
    Member since:
    Jul 2015

    Posted 30 Sep 2015 in reply to Praveen Link to this post

    Hi team,

     

    Please update we need this urgently.We tried below code on function pivotCreating:

    if (sender.get_fieldSettingsWindow()) {
                    var pivotGrid = $find("<%=RadPivotGrid1.ClientID%>");
                    pivotGrid.get_fieldSettingsWindow().set_title("abc");
                }

    But its not working also we tried 

      $find("<%=RadPivotGrid1.ClientID%>").get_fieldSettingsWindow().set_title("abc"); on function pageLoad()

    But its not working.

     ​

     

  13. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 30 Sep 2015 Link to this post

    Hello,

    In order to change the text in the header of the setting window you can use the following selector.

    $telerik.$(".rwTitlebarControls em").html("your custom text")


    Regards,
    Viktor Tachev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017