Tag: radgrid

获取Telerik RadGrid的行

我正在研究RadGrid,我想访问它的行,但似乎它没有.Rows属性。 这是我到现在为止所尝试的: 如何访问rgCustomers的Rows集合? 我想为每一行添加一个按钮。

“在编辑记录时RadGrid中无法取消注册带有ID’xxx’的UpdatePanel,因为它没有在ScriptManager中注册…”

让我切入追逐。 我的场景如下:我有自定义添加字段来过滤RadGrid,过滤效果很好。 当我想在RadGrid中使用EditForm编辑记录时,问题出现了。 它曾经工作正常,但后来我选择正确的行有一些问题(我总是选择错误的行)所以这就是我做的修复它。 所以,带filter的RadGrid看起来像这样: 我所做的是使用Session,这将帮助我们稍后确定过滤后的RadGrid DataSource是否已启动或是否为默认值。 protected void btnSearch_Click(object sender, EventArgs e) { Session[“SearchKontakti”] = “1”; } 之后,我不得不使用if循环设置PreRender来检查之前提到的Session。 protected void gvKontakti_PreRender(object sender, EventArgs e) { int idKontakt = Convert.ToInt32(Request.QueryString[“idk”]); if (Session[“SearchKontakti”] == “1”) { var kontakti = from k in db.Kontakt select k; int idTipUsera = Convert.ToInt32(rcbTipUsera.SelectedValue); int idTvrtka = Convert.ToInt32(rcbTvrtka.SelectedValue); if (rcbTvrtka.SelectedValue != […]