Set a default value in RadGrid In Insert Mode

Posted by Community Admin on 03-Aug-2018 15:25

Set a default value in RadGrid In Insert Mode

All Replies

Posted by Community Admin on 14-Dec-2011 00:00

How would I simply set a default value of a control in a radgrid when it is in insert mode?

Posted by Community Admin on 19-Dec-2011 00:00

Hi Aret,

To achieve your scenario you could set the DefaultInsertValue property of a grid column as it is shown below.

<telerik:GridBoundColumn DataField="ID" HeaderText="ID" DefaultInsertValue="1" />

If the control you need to set default value is not a grid column you could subscribe to ItemCreated event access the control there and set its default value. Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

This thread is closed