Schedule - Customize empty cell at the top left of the grid

 

I'd like to be able to render my own react component in the cell circled in red in the screenshot above.

Is it possible for me to accomplish this


3 Replies

RM Ruksar Moosa Sait Syncfusion Team August 22, 2022 01:23 PM UTC

Hi Justin,


We have checked on your requirement and suggest you use headerIndentTemplate of the Schedule to render your component.


headerIndentTemplate(args) {
        if (args.className[0] == "e-resource-left-td") {
          return (
            <div className="template-wrap">Template</div>
          );
        }
      }


Sample: https://stackblitz.com/edit/react-et8peh-kcy5l5?file=index.js


Output:

Graphical user interface, application, table, Excel

Description automatically generated


Kindly try the above sample and let us know if this meets your requirement.


Regards,

Ruksar Moosa Sait



JS Justin Schnurer August 22, 2022 03:33 PM UTC

Thank you, this works perfectly.



RV Ravikumar Venkatesan Syncfusion Team August 23, 2022 05:34 AM UTC

Hi Justin,


Thanks for the update.


We are happy that our solution works for you.


Regards,

Ravikumar Venkatesan


Loader.
Up arrow icon