protected void ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
(this.Page.FindControl("txtOpcode") as RadTextBox).Visible = false;
//(RadGrid1.MasterTableView.FindControl("txtOpcode") as RadTextBox).Visible = false;
}
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
OnItemCommand
var
cbxDate = $find("<%= ComboBox.ClientID %>");
......
. How can I solve this issue?
Regards
Tomasz
<telerik:RadMenuItem ID="radMenuItem1" runat="server" text="Home" CssClass="radMenuBar" Width
="100px">
</telerik:RadMenuItem >
In Telerik CSS
.radMenuBar
{
font-family: Arial, Helvetica, sans-serif ;
font-size: 18px ;
font-weight: bold ;
text-align: center ;
}
Thanks for your help,
Bayley
function FocusOnRadWindow() { window.setTimeout(function () { GetRadWindow().GetContentFrame().contentWindow.focus(); var wndHeightValue = GetRadWindow().get_popupElement().style.height.toString().replace("px", ""); document.getElementById("TestLabel").innerHTML = wndHeightValue; }, 100); }<body onload="FocusOnRadWindow()">int wndHeight = Convert.ToInt32(TestLabel.Text) - 130;