Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
igHierarchicalGrid - groupBy feature - groupedRowTextTemplate based on values from multiple columns
posted

Hi,

For the groupBy feature of the grid, i'd like to have the groupedRowTextTemplate based on values from multiple columns, but i can figure it out how to do it. 

for example : i have in my grid a bunch of columns : Id, Name, SecurityNum, EventDate, etc...

how can i have in the groupeRowTextTemplate of the grid, if i group by Name , something like this : 

'<input type="checkbox" value="${Id}" /> ${val} , ${SecurityNum}, (${count}) '

I have access only to ${key}, ${val} and ${count} of the grouped column. How can i have access to the others ?

Moreover, it seems that i can only use ${key|val|count} only once . If i wanted to have something like :

groupeRowTextTemplate : '<input type="checkbox" value="${val}" /> ${val}, (${count})' . The second time i'm using ${val}, it's not displayed the actual value !.
Is there a way to handle this ?

Thank you in advance for your help.

Best regards

Sofiane

Parents
  • 18204
    Offline posted

    Hello Sofiane,

    Thank you for posting in our forums!

    What are you trying to accomplish with having other column values in the groupedRow?  An issue I see with this is that multiple rows can be in a single group in the grid.  There is no way to specify which row you want to pull the ${Id}/{SecurityNum} from.  If you need this functionality, please submit a new Product Idea.  You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.

    There are many benefits to submitting a product idea:

    - Direct communication with our product management team regarding your product idea.

    - Notifications whenever new information regarding your idea becomes available.

    - Ability to vote on your favorite product ideas to let us know which ones are the most important to you.  You will have ten votes for this and can change which ideas you are voting for at any time.

    - Allow you to shape the future of our products by requesting new controls and products altogether.

    - You and other developers can discuss existing product ideas with members of our Product Management team.

    Steps to create your idea:

    1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).

    2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)

    3. Add your product idea and be sure to be specific and provide as much detail as possible.

    • Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!

    • Please include a link to this thread in your idea so product management will be able to look back at this case.

    The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

     

    As for the issue where you can only use the ${key|val|count} tokens once, I am able to reproduce this and I have created a support case for you with an ID of CAS-151970-B7R6F0.  The matter has been determined to be a development issue and has been logged in our tracking system with ID: 189752.

    I will leave this case open and update you with any new information.  You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there.  Then, you may select the "Development Issues" tab to view details of this development issue.

    Please let me know if you have any questions.

Reply Children