RadMenu hide menu item from server side
RadMenu1.FindItemByText("RadMenuItem1").Visible = false;
Achievement provides the only real pleasure in life
RadMenu1.FindItemByText("RadMenuItem1").Visible = false;
Posted by SF at 9:57 am 1 comments
Edit Mode:
"if"(!RadScheduler1.StartEditingInAdvancedForm)
Insert Mode:
"if"(!RadScheduler1.StartInsertingInAdvancedForm)
Posted by SF at 2:50 pm 0 comments
code:
"Response".Clear();
"Response".AddHeader("content-disposition", "attachment;filename=" + FileName + ".txt");
"Response".Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
"Response".ContentType = "application/vnd.text";
"StringWriter" stringWrite = new StringWriter();
"HtmlTextWriter" htmlWrite = new HtmlTextWriter(stringWrite);
"Response".Write(strTXTFileBuilder.ToString());
"Response".End();
Error:
Internet Explorer cannot download file
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
My Solution:
Take out the line "
Posted by SF at 3:48 pm 0 comments
'if' not 'exists' (select .... from .... where ....)
Begin
'Insert' Into ....... (..., ..., ...) values (..., ..., ...,)
END
Posted by SF at 2:26 pm 0 comments
in the Parent page add into the radwinow aspx code:
sas"<"telerik:radwindow id="rwpopup111" title="popup111" runat="server" behaviors="Close" onclientclose="OnClientClose" navigateurl="popup111.aspx">
also add javascript:
function OnClientClose(oWnd)
{
//place your code to execute, see below for my examples, in this example I rebind a grid:
var hf111 = document.getElementById("");
var masterTable1 = $find("").get_masterTableView();
masterTable1.rebind();
var masterTable = $find("").get_masterTableView();
masterTable.rebind();
//after radwindow close you may lose title of the parent page, if that is the case reset it here:
document.title="abc";
}
Posted by SF at 12:29 pm 0 comments