Multiple PropsContext providers without nesting - Grid

1 Answer 70 Views
DatePicker Grid NumericTextBox
Christian
Top achievements
Rank 1
Iron
Iron
Iron
Christian asked on 13 Dec 2022, 08:23 AM

Hello Telerik Team,
is it possible to put multiple context props provider in a grid without nesting them arbitrarily deep?

 

Example Code:

<DatePickerPropsContext.Provider value={datePickerProps}>
   <NumericTextBoxPropsContext.Provider value={numericTextBoxProps}>
      <Grid
         ...
      />
   </NumericTextBoxPropsContext.Provider>
</DatePickerPropsContext.Provider>

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 15 Dec 2022, 07:57 AM

Hello Christian,

Thank you for contacting us.

I have to say that each Context is used for specific component, so if more than one components will be customized through the context, you need to nest them as in the code snippet that you have shared.

Let us know if other questions arise. 

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DatePicker Grid NumericTextBox
Asked by
Christian
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or