<
add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>

<
telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="true" OnClientPageLoad="OnClientPageLoad" VisibleStatusbar="false" OnClientClose="OnClientClose" IconUrl="favicon.ico" OnClientDragStart="OnClientDragStart" OnClientDragEnd="OnClientDragEnd">
</telerik:RadWindowManager>
Please let me know if i am doing any thing wrong here. In the client side events i just have an alert statement.
Thanks,
Divya
| <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" ExpandMode="MultipleExpandedItems" Width="1042px" AllowCollapseAllItems="True"> |
| <Items> |
| <telerik:RadPanelItem Runat="server" Expanded="True" Text="Search Results" Font-Bold="True"> |
| <Items> |
| <telerik:RadPanelItem Runat="server" Value="RadPanelItem1"> |
| <ItemTemplate> |
| <div style="padding: 0px; float: left; width: 1042px"> |
| <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="950px" |
| Height="370px" RelativeTo="Element" Animation="Slide" Position="BottomCenter" |
| OnAjaxUpdate="OnAjaxUpdate" |
| HideEvent="LeaveTargetAndToolTip" AutoCloseDelay="15000" ShowDelay="1000" /> |
| <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" > |
| <ItemTemplate> |
| <div style="float: left; text-align: center;" id="smallImage" runat="server"> |
| <a href="<%# Eval("PrintSize", "../../../Images/Print/{0}") %>"> |
| <div style="border: 1px solid #999999; margin: 1px; width: 100px; height: 100px; background-position: center; background-repeat: no-repeat; background-image: url('<%# Eval("Thumbnail", "../../../Images/Thumbs/{0}") %>');"> |
| </div> |
| </div> |
| </ItemTemplate> |
| </asp:Repeater> |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
Hi
We are starting to play with the Rad Grid and investigating the Popup settings with a user control for inserts/updates to the grid. The grid is being created in code during page init.
| With grd |
| .ID = "grdMyGrid" |
| .AutoGenerateColumns = False |
| .AllowMultiRowEdit = False |
| .AllowPaging = True |
| .AllowSorting = True |
| .GridLines = GridLines.None |
| .ShowStatusBar = True |
| .MasterTableView.PageSize = 10 |
| .MasterTableView.AllowMultiColumnSorting = False |
| .MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top |
| .MasterTableView.DataKeyNames = New String() {"MySerialNo"} |
| .MasterTableView.TableLayout = GridTableLayout.Fixed |
| .MasterTableView.Width = New Unit(100, UnitType.Percentage) |
| .MasterTableView.EditFormSettings.UserControlName = "MyUserControl.ascx" |
| .MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl |
| .MasterTableView.EditMode = GridEditMode.PopUp |
| .MasterTableView.EditFormSettings.PopUpSettings.Modal = True |
| '.MasterTableView.EditFormSettings.PopUpSettings.Width = New Unit(750, UnitType.Pixel) |
| .MasterTableView.EditFormSettings.CaptionFormatString = "Popup Title" |
| '... create columns ... |
When the user clicks the edit button to display the edit control, the user control is being displayed as anticipated. However, because we haven’t declared a width for the popup window, the window borders are being drawn behind the user control at a fixed width of 400px plus 2px of border because the user control is 750px wide. Obviously I know that we can set the width in code, but I was wondering if there is any way to have the popup auto size its width like it does with the height.
Thanks in advance.
Paul