Hi all,
Is there a way to only have the new row added when I tab out of the CardView add template? I'm not sure if I'm doing anything wrong but right now the new row is added on key down. The moment a key is pressed a new card is added and I can continue editing the new row.
Is this expected behaviour or is there a way to change this so that the row is only added when the user tabs out of the last field similar to the normal view?
Cheers,Matei
Hi Matei,
This depends on the setting of the AllowAddNew Property. It sounds like you have it set to one of the settings which shows a TemplateAddRow. In that case, as soon as you make a change or type into the TemplateAddRow, the TemplateAddRow becomes an AddRow and a new TemplateAddRow is created.
I don't think there is any way around this via a property setting. The best you could do is try to detect when this happens and change the AllowAddNew property to turn off the TemplateAddRow. Try using the Before/AfterRowInsert event to turn off the TemplateAddRow. And then maybe use AfterRowUpdate to turn it back on.