cancel
Showing results for 
Search instead for 
Did you mean: 

how to add customized value to drop down by index binded to model attribute

Former Member
0 Kudos

i have to Ui element Drop down by index to which i have binded model attribute for populating the values, now i want to add a customized value to it like "choose all".

how can i do this ??

Thanks and regards,

Aditya Deshpande

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Create a value node similar to model node. In value node you can add element at the index wherever you want to:

wdContext.node<nodename>().addElement(<index>,<element>);

Regards,

Murtuza

Former Member
0 Kudos

Thanks for quick reply

i thought about this solution but cant we do it directly using model node ????

Regards,

Aditya Deshpande

Former Member
0 Kudos

Hi Aditya,

I don't think you would be able to add values to your model node directly.

Regards,

Murtuza

Former Member
0 Kudos

Thanks Murtuza,

points to you

Regards,

Aditya Deshpande

Answers (0)