ALi Shah

ALi Shah

  • 958
  • 823
  • 790

Dynamic Control generation

Aug 21 2024 12:35 PM

Dear All , I met with a situation where i am looking expert opinion from those who have already handled such a use case scaniro , I am having Projects related to sports , and in which I have different fields Like If i select sport as cricket then its sub items would be BAT ,BALL , HELMET etc but If I select hockey then the sub items would be different  , If I select betmenton then the sub items would be different , I want to show dynamic view to the user based on his selection , I do not want to hardcord this I shared 3 types I could have 100 types so static control would not work , I want to show dynamic control and the control would also be different like IF i select BAT then there might be a dropdown to select the BAT size , IF I select color then I might have a text box , I want this dynamic view as well as I want to save these details into the table is there any reference example where someone handle that type of situation as I do not know in advance how many columns for SPORT CRICKET WILL HAVE IN DB table and how many columns for football I have in table to save its sub-types or sub-items.


Answers (1)