Hi
How do you add a client side OnExpanded / OnClientExpanded?
I have tried... but I get an error add_expand is NOT A FUNCTION
var radDock = $find('MyRadDock')
radDock.add_expand(function () {
// Expand
}
Ideas? thx
I allow the user to create in runtime, zones (my sections) and docks.
<asp:Repeater ID="repSections" runat="server" OnItemDataBound="repSections_ItemDataBound">
<ItemTemplate>
<asp:Panel ID="panelSection" runat="server" CssClass="container">
A RadDockZone(section) and it's RadDocks are injected here in runtime...
</asp:Panel>
</ItemTemplate>
</asp:Repeater>
This repeater is populated from database and zones and it's docks injected in runtime, assigning the DockPositionChanged event to each of the created docks. Since I also inject in runtime, controls before and after each zone to manage it (Add, configure, move up/down) and I want them to postback using ajax, I'm configuring the ajax behavior in the ItemDataBound event of the Repeater:
protected void repSections_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
LinkButton linkbtAddNormalSection = e.Item.FindControl("linkbtAddNormalSection") as LinkButton;
linkbtAddNormalSection.CommandArgument = section.Id.ToString();
AjaxSetting ajaxSetting_linkbtAddNormalSection = new AjaxSetting();
ajaxSetting_linkbtAddNormalSection.AjaxControlID = linkbtAddNormalSection.UniqueID;
ajaxSetting_linkbtAddNormalSection.EventName = "Click";
ajaxSetting_linkbtAddNormalSection.UpdatedControls.AddRange(new AjaxUpdatedControlsCollection()
{
new AjaxUpdatedControl(repSections.UniqueID,""),
new AjaxUpdatedControl(panelNosections.UniqueID,""),
new AjaxUpdatedControl(radNotification.UniqueID, "")
});
ajaxManagerProxy.AjaxSettings.Add(ajaxSetting_linkbtAddNormalSection);
...
}
Because of this, RadAjax places a RadAjaxPanel that includes all the created zones inside of the repeater causing the DockPositionChanged event to function in ajax mode. That's fine, and works great since avoids a regular postback each time a dock changes position.
The issue is that I need to show a RadNotification that is outside the repeater and consequently, outside that RadAjaxPanel and I can't show it from the DockPositionChanged event.
Any suggestion to overcome this?
Thank you!
Hi,
Is there any way to get the mouse x,y of the dock as it's being dragged? I have javascript examples that use dataTransfer, and have tried adapting them to dock events, OnClientDragStarted, OnClientDrag and OnClientDragEnd. But OnClientDragStarted, which does provide access to the "OriginalEvent", does not have dataTransfer defined. And OnClientDrag provides no access to the "OriginalEvent".
Can you provide some direction? Or is just not possible.
Dave
I need to show the handle / title bar under certain conditions, and have not showing under other conditions. Looking for a way to set the DockHandle to none using javascript.
Is there a way to do this? I tried dock.set_handle(null), and that didn't work.
Thanks,
Dave
I have a product in asp.net web forms which has 6000+ plus clients with differant databases.
I stored raddock state of user controls in database. now i want to convert my application to mvc. so now how could i load this state in mvc . user controls treated as partial view
EnableEmbeddedSkins
="false"
I thought that might help me ovverride, but still missing the mark.
all I want is the horz and vert scrollbars to go away. Doesnt seem to matter if my zone is wider or smaller. with the same ascx it still always shows the scrollbars.
thanks!
I noticed that a simple collapsed dock I have is still showing a bit of the contents when the page loads. If I expand it and collapse it, then it will display properly. Version I have is 2019.2.514
I checked and noticed it was using the Lightweight render mode and that it would be missing "overflow:hidden" in the css in the initial page load.
Code
<telerik:RadDockLayout runat=
"server"
ID=
"DockLayoutExceptions"
>
<telerik:RadDockZone runat=
"server"
ID=
"DockZoneException"
Orientation=
"Vertical"
MinHeight=
"40px"
MinWidth=
"300px"
>
<telerik:RadDock RenderMode=
"Lightweight"
runat=
"server"
ID=
"DockExceptions"
Title=
"Exceptions"
EnableDrag=
"False"
DockMode=
"Docked"
Collapsed=
"True"
>
<Commands>
<telerik:DockExpandCollapseCommand />
</Commands>
<ContentTemplate>
<cust:ExceptionTable runat=
"server"
ID=
"tblOrderExceptions"
Type=
"Order"
/>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</telerik:RadDockLayout>
Attached are images showing the generated CSS at the page load and after expanding and collapsing again.