Hello,
I realize the below is a lengthy post - am open to a phone call or online chat to explain -
https://ko.infragistics.com/community/forums/f/ignite-ui-for-angular/118703/angular-routing-is-not-working-inside-the-iggrid-column-template
The inablility to use a routerLink in the column template due to the reasons mentioned above is a blocker for our use case.
Then in the template I have to remove the appended primary key by calling the GetRecency method –
getRecency(delimitedValue: string) {
// TODO: convert to pipe
if (delimitedValue.indexOf('~') > -1) {
const recency = delimitedValue.split('~')[0];
return recency === 'No Notes' ? '' : recency;
} else {
return delimitedValue;
}
Then in the navigate method suggested in your link –
navigate(analyzerTag: string, origin: string) {
if (analyzerTag.indexOf('~') > -1) {
analyzerTag = analyzerTag.split('~')[1];
if (origin === 'notes') {
sessionStorage.setItem(this.DIAGNOSTICS_TAB, 'notes');
sessionStorage.removeItem(this.DIAGNOSTICS_TAB);
this.setValuesForStream(analyzerTag);
this.router.navigate([`analyzer/${analyzerTag}`]);
While this allows me to pass the primary key and navigate – the concatenated values have created an issue because the filters now show the concatenated values. Is there a way to intercept the code where the excel like filters are created so I can remove the concatenated values?
Thanks and regards,
Amit
Hello,Thank you for contacting Infragistics Support.
I started working over your issue, but it will take some time until I manage to find some sort of solution, so I will keep you posted on my progress.Meanwhile, if you have any additional questions, please contact us.
Hi,
I have found a work around - more than a solution. I leverage the onCellClick and apart from harvesting the data I need from the grid source and then invoking the navigate method with the requisite properties for downstream navigation have to prevent the same for columns not germane to the route change. Please expedite support for routerLink in grid column templates.
Thanks,
Hello,I investigate your case in more details and I manage to build a sample that is using router links inside the cell template in IgxGrid.(The link that you have mentioned above is related to a case with our IgGrid). Can you please check the sample that I made and tell me if this fulfill your use case. I am looking forward to hear from you and also please share if you have any additional questions.