As you can see I have DefaultInsertValue set to True. However when I go to add a new record the checkbox isn't checked, can anyone think of any reason this may be happening? I should be able to set it to checked in my code but I would like to know what I am doing wrong with this.
6 Answers, 1 is accepted
I have tried your code and it works fine at my end. You can try another approach from code behind as follows:
Thanks for your help.
The back end solution does not work for me as I am using the front insert command functionality.
Any other suggestions?
Can you please elaborate on what yo mean by "front end insert command functionality"? The idea behind the suggestion provided by Princy is that you need to find the newly created insert item and set the values that you need.
However, setting the DefaultInsertValue should work without any issues.
If you continue to experience problems with this, please elaborate on your exact scenario.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Sorry I didn't respond to this back then. I am still having the issue so let me elaborate,
My Grid does not postback when it enters insert mode.
I suggest you go through the following forum thread where a similar problem with batch editing and DefaultInsertValue is disscussed: http://www.telerik.com/forums/set-griddatetimecolumn-default-insert-value-to-today-with-batch-edit-mode
However, as you can see from the public feedback item stated there: http://feedback.telerik.com/Project/108/Feedback/Details/172538-setting-defaultinsertvalue-does-not-work-for-a-batch-editing-grid it is already fixed and if you are using the latest Q1 2016 version of Telerik.UI for ASP.NET AJAX you should not encounter any issues.