I want show table in igx-grid. want to show dyanamic data based on hours or half hours.
Hello Viktor,
Thanks for your quick replay.
I will try it and sure if I have any issue I will contact you.
Regards,
Krishna Gawai.
Hello Krishna,
Thank you for getting back to me.
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.
Hi Viktor,
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
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.
Regards,Viktor KombovEntry Level Software DeveloperInfragistics, Inc.
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