or
protected override void OnPreRenderComplete(EventArgs e) {
base.OnPreRenderComplete(e);
RadMenuItem item = RadGrid1.HeaderContextMenu.FindItemByValue("GroupBy");
RadGrid1.HeaderContextMenu.Items.RemoveAt(0); RadGrid1.HeaderContextMenu.Items.Remove(item); item = RadGrid1.HeaderContextMenu.FindItemByValue("UnGroupBy"); RadGrid1.HeaderContextMenu.Items.Remove(item); }The code translation tool is not working. Intellisence shows errors; the site won't compile.
Also, don't you need the IsReusable() property?
I have a telerik radgrid that has an allows inserts. After clicking the "Add New Record" button the textboxes appear with a couple of buttons. One for Insert and one to cancel. I would like the page focus to be on the insert button so when the user clicks the enter button, the insert button has the focus.
Does anyone know how to do this?
ddl.AppendDataBoundItems = true;ddl.Items.Add(new ListItem("select one", ""));ddl.DataTextField = "Value";ddl.DataValueField = "ID";ddl.DataSource = Session["DataTableSource"];ddl.DataBind();RadComboTest.AppendDataBoundItems = true;RadComboTest.Items.Add(new RadComboBoxItem("select one", ""));RadComboTest.DataTextField = "Value";RadComboTest.DataValueField = "ID";RadComboTest.DataSource = Session["DataTableSource"];RadComboTest.DataBind();