我如何把编程Telerik的弧度电网"新增新的"在页面加载模式 [英] How do I programatically put telerik rad grid in "add new" mode on page load
问题描述
好像这应该是容易的,但我必须仅仅是失去了一些东西...我有一个Telerik的radgrid控件一个页面,让行内编辑上。我如何编程把网格进入编辑模式,插入新行入电网。页面加载时,我想表明现有的数据,也显示1空行,用户可以很容易地键入一个新的记录添加到表。 (我不希望他们有推新增按钮)
Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button)
推荐答案
找到了答案前阵子....万一别人更新此需要
Found the answer while back.... updating this in case others need it
RadGrid1.MasterTableView.IsItemInserted = true;
RadGrid1.Rebind();
这篇关于我如何把编程Telerik的弧度电网"新增新的"在页面加载模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!