Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
public
static
int
count = 0;
protected
void
RadGrid1_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
DataTable ds =
new
DataTable();
RadGrid1.DataSource = addBlankLines(ds, count);
}
private
DataTable addBlankLines(DataTable ds,
count)
if
(count != 0)
DataRow drBlank =
default
(DataRow);
for
(
i = 0; i < count; i++)
drBlank = ds.NewRow();
ds.Rows.Add(drBlank);
return
ds;
RadGrid1_ItemCommand(
sender, Telerik.Web.UI.GridCommandEventArgs e)
(e.CommandName == RadGrid.InitInsertCommandName)
e.Canceled =
true
;
count = count + 1;
RadGrid1.Rebind();