I have found it to fire the loader to set the value. it can close the dialog but just don;t show the value inside the control. Anyone know how to do it ?
Here is the RenderJS Inside my custom loader
public override void RenderJS(ref StringBuilder Javascript) { //bind javascript when node is clicked Javascript.Append( @" function openProductCategory(id) { parent.right.document.location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id; } ");
if (!String.IsNullOrEmpty(this.FunctionToCall)) {
Javascript.Append("function openProductCategory(id) {\n alert('"+this.FunctionToCall+"');"); Javascript.Append(this.FunctionToCall + "(id);\n"); Javascript.Append("}\n"); } else if (!this.IsDialog) { Javascript.Append( @" function openProductCategory(id) { alert('not Dialog'); " + ClientTools.Scripts.GetContentFrame() + ".location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id;" + @" } "); } else { //TODO: SD: Find out how what this does...? Javascript.Append( @" function openProductCategory(id) { alert('dialog'); if (parent.opener) parent.opener.dialogHandler(id); else parent.dialogHandler(id); }
using existing datatype control in custom edit page
Hi,
I m creating custom edit page for my own table.
I want to use existing umbraco datatype control such as content picker , etc.
is there any reference to do it?
thx
These might get you started:
See Jeroen's post here: http://our.umbraco.org/forum/developers/extending-umbraco/13518-implement-improved-mediapicker-c ;
http://www.nibble.be/?p=87
http://www.nibble.be/?p=87
nice this is what i need.
Sorry,
http://www.nibble.be/?p=87
Is that possible to use inside aspx instead of code behind.
What is the different umbraco.uicontrol and umbraco.controls and /umbraco/controls inside of umbraco.presentations ?
Thanks
Hi,
I have try to use Content Control,
But when I click on the inside the custom content, it fires the same javascipt to load the page.. instead of selecting them.
Do you know how to do it ?
Thanks
I have found it to fire the loader to set the value. it can close the dialog but just don;t show the value inside the control.
Anyone know how to do it ?
Here is the RenderJS Inside my custom loader
public override void RenderJS(ref StringBuilder Javascript)
{
//bind javascript when node is clicked
Javascript.Append(
@"
function openProductCategory(id)
{
parent.right.document.location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id;
}
");
if (!String.IsNullOrEmpty(this.FunctionToCall))
{
Javascript.Append("function openProductCategory(id) {\n alert('"+this.FunctionToCall+"');");
Javascript.Append(this.FunctionToCall + "(id);\n");
Javascript.Append("}\n");
}
else if (!this.IsDialog)
{
Javascript.Append(
@"
function openProductCategory(id) { alert('not Dialog');
" + ClientTools.Scripts.GetContentFrame() + ".location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id;" + @"
}
");
}
else
{
//TODO: SD: Find out how what this does...?
Javascript.Append(
@"
function openProductCategory(id) {
alert('dialog');
if (parent.opener)
parent.opener.dialogHandler(id);
else
parent.dialogHandler(id);
}
");
}
}
is working on a reply...