Hi-
I'm trying to create master-details grid with Add, edit and delete functionality in both, In details grid i have two columns "Name" (Drop Down) and "Value" (Run time Control). When i will select name than value control should get created in value column as per type mention in Data. So for example if select XXX name and it's type is Date then Date control should be created in value column, if i select other name "ZZZZ" and it's type is list then drop down control should be created in value column at run time. I have 5 types as of now to create run time value control (String, date, Numeric, currency and Drop Down). Along with this i should be able to add, edit and delete master/detail rows.
Any help with code sample in achieving this is deeply appreciated. Below my Master/Detail data where Attributes will get bind to detail section and type will let know which control to create run time.
var Data = [
{
"LR_Name": 'Long Term',
"LRVR_Opt_To_Decline": 'Y',
"LRVR_Required": 'Y',
"LPVR_Active": 'Y',
"Attributes": {
"Attribute": [
{
"Name": "ABR Duration",
"Value": "2",
"Type": 'list'
},
{
"Name": "EBR Duration",
"Value": "2",
"Type": 'Number'
}
]
}
},
{
"LR_Rider_Name": 'LTCR',
"LRVR_Opt_To_Decline": 'Y',
"LRVR_Required": 'N',
"LPVR_Active": 'N',
"Attributes": {
"Attribute": [
{
"Name": "LTCR Supp Date",
"Value": "01-01-2018",
"Type": 'date'
},
{
"Name": "LTCR Supp Amount",
"Value": "2500",
"Type": 'Currency'
}
]
}
},
{
"LR_Rider_Name": 'Extended Benefit',
"LRVR_Opt_To_Decline": 'Y',
"LRVR_Required": 'N',
"LPVR_Active": 'N',
"Attributes": {
"Attribute": [
{
"Name": "Benefit Type",
"Value": "5% Simple",
"Type": 'String'
},
{
"Name": "Benefit",
"Value": "10% Simple",
"Type": 'String'
}
]
}
}
];