I want show table in igx-grid. want to show dyanamic data based on hours or half hours.
Hello Krishna,
Thank you for reaching out.
In order to ensure that your issue is addressed correctly, I will need some additional information regarding your scenario. Can you plase elaborate on what do you mean by "dyanamic data based on hours or half hours"? If your requirement is to have a grid with live data updates I believe you will find the Angular Grid Live Data Updates topic in our documentation very helpful. There you can find an information how to create a grid that handles live updates, while staying responsive for user interactions.
Please let me know if you have any further questions.
Regards,Viktor KombovEntry Level Software DeveloperInfragistics, Inc.
Hi Viktor,
I want to show Gird like this image
I am glad that you find this suggestion helpful!
Thank you for choosing Infragistics components!
RegardsViktor KombovEntry Level Software DeveloperInfragistics, Inc.
Hello Viktor,
I have issue one regarding above scenario. I have to show one more column like this but from different dataset so,
how can I show it?
Regards,
Krishna Gawai.
Thank you for getting back to me.
I am currently looking into this matter for you. I will keep you posted on my progress and I will get back to you as soon as possible with more information or questions for you.
Please feel free to continue sending updates to this case at any time.
Thanks for your replay,
ngOnInit() { this.schCompareData(this.workingScheduleData); this.schCompareData(this.scenarioAData); this.schCompareData(this.scenarioBData); } schCompareData(compareData) { const data = []; for (let i = 0; i < compareData.length; i++) { const rec = compareData[i]; const currRec: any = {}; currRec.dateTime = []; const hours = (rec.duration / 60) / 60; let time = rec.time; for (let j = 0; j < hours / 0.5; j++) { currRec.dateTime.push({ date: rec.date, day: rec.day, time: this.setTime(time), }); time += 0.5; console.log("date-working", currRec.dateTime); } currRec.workingSchedule = rec.workingSchedule; currRec.scenarioA = rec.scenarioA; currRec.scenarioB = rec.scenarioB; data.push(currRec); } this.data = data; console.log("Schedule Data", this.data); } private setTime(num: number): string { if (Number.isInteger(num)) { return num + ":" + "00"; } else { return parseInt(num.toString()) + ":" + "30"; } } }
I tried above code but getting only last dataset value. I want all dataset's values?
do you have any suggestion for it.
please replay mi as soon as possible.
Krishna Gawai
At this point we do not provide an out of the box option for binding more than one dataset to the grid's data property. What I can suggest is to add the needed values from the other dataset to the dataset that you are binding to the grid initially.
I have modified the previously provided sample demonstrating how my suggestion could be achieved. Please test it on your side and let me know whether you find it helpful.
Thanks for your quick replay.
I will try it and sure if I have any issue I will contact you.
You can achieve this by using the approach from the first sample that I have shared with you.
Please let me know if I could be of any further assistance.Regards, Viktor KombovEntry Level Software DeveloperInfragistics, Inc.
Sorry for late replying to you.
The above sample work for me, but can we change scenario column also just like working schedule with different time set