protected void CreateDynamicDock()
{
RadDockZone1.Docks.Clear();
RadDockZone2.Docks.Clear();
STDocksMasterRoot sTDocksMasterRootObj = new STDocksMasterRoot(); STDocksMasterCollection sTDocksMasterCollectionObj=sTDocksMasterRootObj.GetAllDocksName();
string _zone;
foreach (STDocksMaster dockName in sTDocksMasterCollectionObj)
{
RadDock dock = CreateRadDock(); UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
if (ViewState["i"] == null)
{
ViewState["i"] = 1;
_zone = "RadDockZone1";
}
else
{
ViewState.Remove("i");
_zone = "RadDockZone2";
}
ScriptManager.RegisterStartupScript(
UpdatePanel1,
typeof(RadDock),
"DockIntoZone" + dock.ClientID,
string.Format(@"function _addDock() {{
Sys.Application.remove_load(_addDock);
$find('{1}').dock($find('{0}'));
$find('{0}').doPostBack('DockPositionChanged');}};
Sys.Application.add_load(_addDock);"
, dock.ClientID, _zone),
true);
CreateSaveStateTrigger(dock);
LoadWidget(dock);
}
}
Hi,
I am trying to place Images on the RadTab,But I want to change the Images based on Events.
I.e. I want to change the Images when ever Focus Lost/On Mouse Move events.
Please Guide me with an example , how to implement this.
I'm using a modal RadWindow where I
load an aspx page.
I saw same posts with similar problems but I
didn't find a reasonable solution.
If I put "ReloadOnShow"
to False, I only detect one postback on my aspx page (loaded on
RadWindow). However, next time I try to open the window, no postback
will be fired.
If I put "DestroyonClose" to True, first
time works ok, but after I loose all my Radwindow configuration.
If
I put "ReloadOnShow" to True, every time I open RadWindow I
detect 3 Postbacks.
Is there any way to use RadWindow with a single postback?
Regards
<script type="text/javascript">
function openWin(args,width,height)
{
var oWnd = radopen(args, "RadWindow1");
oWnd.setSize(width,height);
oWnd.center();
oWnd.add_close(OnClientClose); //If I remove this then code works.
}
function OnClientClose(sender, eventArgs)
{
$find(
"<%= RadAjaxPanel1.ClientID %>").ajaxRequest("Rebind");
}
function realPostBack(eventTarget, eventArgument)
{
$find(
"<%= RadAjaxPanel1.ClientID %>").__doPostBack(eventTarget, eventArgument);
}
</script>
<
asp:Button ID="addBTN" runat="server" Text="Add Visa Details" />
in code behind
addBTN.Attributes.Add(
"onclick", "return openWin('" + Page.ResolveUrl("~/Controls/visaForm.aspx?n=n") + "', '800', '600'); return false;");
Can some one please help me as I am not very good with javascript.
Thanks
Atiq