More in this section
Forums / General Discussions / Set a default value in RadGrid In Insert Mode

Set a default value in RadGrid In Insert Mode

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Aret
    Aret avatar
    8 posts
    10 Oct 2011
    14 Dec 2011
    Link to this post
    How would I simply set a default value of a control in a radgrid when it is in insert mode?
  2. Antonio Stoilkov
    Antonio Stoilkov avatar
    1 posts
    24 Jan 2015
    19 Dec 2011
    Link to this post
    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
2 posts, 0 answered