Set a default value in RadGrid In Insert Mode - General Discussions - General Discussions - Progress Community
 General Discussions

Set a default value in RadGrid In Insert Mode

  • Set a default value in RadGrid In Insert Mode
  • How would I simply set a default value of a control in a radgrid when it is in insert mode?
  • 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