Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
41 views
Hello,

There's a problem when using a SlidingZone inside a Splitter Pane, if the height of the Splitter exceeds 10000.  Our production page includes a RadDockLayout, and we dynamically size the Splitter to the height of the layout, but this simple example demonstrates the problem:

<%@ Page Language="vb" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
    <title>Test</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" EnablePageMethods="true" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" Width="100%"
            Height="10050">
            <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" Width="100%">
            This is the Left pane
            </telerik:RadPane>
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None" Width="22px">
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" SlideDirection="Left">
                    <telerik:RadSlidingPane ID="RadSlidingPane1" Title="Menu" runat="server" EnableDock="false"
                        BackColor="Red" Width="300px" PersistScrollPosition="False" Scrolling="None">
                    </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </form>
</body>
</html>
Dobromir
Telerik team
 answered on 12 May 2011
1 answer
190 views
Hi,

I have a page which opens a radwindow and this page in radwindow further opens another radwindow recursively inside one another.

Now after navigating to the multiple level I need the name/path of the Parent page which caused the sequential load of windows.

The use of sending the data between parent/child will not work as some of the calls are made using static href links.

Also is there any way of restricting the number of windows that can be opened inside each other recursively?
Georgi Tunev
Telerik team
 answered on 12 May 2011
2 answers
155 views
GridHyperLinkColumn page load restrict .
when hyper link is clicked page's loaded how i restrict that
please reply immediately.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetsList1.aspx.cs" Inherits="TBS_HelpDesk.Views.Assets.AssetsList1"
    MasterPageFile="~/Views/Shared/MasterPage.Master" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadCodeBlock runat="server" ID="radCodeBlock">
        <script type="text/javascript">
            function onToolBarClientButtonClicking(sender, args) {
                var grid = $find("<%=RadGrid1.ClientID %>");
                debugger;
                var comandName = args.get_item().get_commandName();
                if (comandName == "Filter") {
                    if (grid.get_masterTableView().get_isFilterItemVisible()) {
                        grid.get_masterTableView().hideFilterItem();
                    }
                    else {
                        grid.get_masterTableView().showFilterItem();
                    }
                }
            }
            function lnkAdd_Click() {
                window.location.href = "Assets.aspx";
            }
            //<![CDATA[
            function openWin() {
                var oWnd = radopen("Dialog1.aspx", "RadWindow1");
            }

            function OnClientClose(oWnd, args) {
                //get the transferred arguments
                var arg = args.get_argument();
                if (arg) {
                    var cityName = arg.cityName;
                    var seldate = arg.selDate;
                    $get("order").innerHTML = "You chose to fly to <strong>" + cityName + "</strong> on <strong>" + seldate + "</strong>";
                }
            }
            //]]>
        </script>
    </telerik:RadCodeBlock>
    <div style="width: 650px; height: 600px;">
        <telerik:RadDockZone ID="EisDefaultDockZone" runat="server" Orientation="Vertical"
            Style="border: 0px;">
            <telerik:RadDock ID="EisDefaultDock" runat="server" Title="Asset List" EnableRoundedCorners="true"
                DefaultCommands="None" EnableDrag="false">
                <ContentTemplate>
                    <telerik:RadToolBar ID="EisDefaultToolBar" runat="server" Width="100%" Style="margin-top: 6px;"
                        OnClientButtonClicking="onToolBarClientButtonClicking" OnButtonClick="EisDefaultToolBar_ButtonClick">
                        <Items>
                            <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" ImageUrl="../../Content/images/AddRecord.gif"
                                Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>' NavigateUrl="Assets.aspx">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarDropDown Text="LayOut">
                                <Buttons>
                                    <telerik:RadToolBarButton Text="SharedViews" Value="1" CommandName="SharedViews"
                                        onclick="openWin(); return false;" />
                                    <telerik:RadToolBarButton Text="Private Views" Value="2" />
                                    <telerik:RadToolBarButton Text="Quick Views" Value="2" />
                                </Buttons>
                            </telerik:RadToolBarDropDown>
                            <telerik:RadToolBarButton Text="Filter" CommandName="Filter" ImageUrl="../../images/Filter 3.gif">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="../../Content/images/RefreshSelectedRecord.gif">
                            </telerik:RadToolBarButton>
                        </Items>
                    </telerik:RadToolBar>
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="EisDefaultToolBar" UpdatePanelHeight="" />
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                    <telerik:RadGrid ID="RadGrid1" runat="server" CellPadding="0" GridLines="None" AutoGenerateColumns="False"
                        Skin="Office2007" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound"
                        EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" OnItemCommand="RadGrid1_ItemCommand"
                        OnNeedDataSource="RadGrid1_NeedDataSource" AllowSorting="true" AllowFilteringByColumn="true">
                        <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" HorizontalAlign="NotSet"
                            IsFilterItemExpanded="false">
                            <CommandItemTemplate>
                            </CommandItemTemplate>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="10px" />
                                <telerik:GridBoundColumn DataField="AssetID" DataType="System.Int32" HeaderText="AssetID"
                                    SortExpression="AssetID" UniqueName="AssetID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridHyperLinkColumn DataTextField="AssetName" HeaderText="AssetName" SortExpression="AssetName"
                                    UniqueName="AssetName" NavigateUrl="Assets.aspx" HeaderStyle-Width="150px">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridBoundColumn DataField="SerialNumber" DataType="System.Int32" HeaderText="SerialNumber"
                                    SortExpression="SerialNumber" UniqueName="SerialNumber" HeaderStyle-Width="100px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Asset_UserID" DataType="System.Int32" HeaderText="Asset_UserID"
                                    SortExpression="Asset_UserID" UniqueName="Asset_UserID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ppl_Name" HeaderText="User Name" SortExpression="ppl_Name"
                                    UniqueName="ppl_Name" HeaderStyle-Width="150px">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="Asset_Inactive" DataType="System.Boolean"
                                    HeaderText="Asset_Inactive" SortExpression="Asset_Inactive" UniqueName="Asset_Inactive"
                                    HeaderStyle-Width="100px">
                                </telerik:GridCheckBoxColumn>
                                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn"
                                    CommandArgument="Child" ConfirmDialogType="RadWindow" ConfirmText="Are You Sure Want To Delete This Record?"
                                    ConfirmTitle="Delete Confirm" HeaderStyle-Width="10px" />
                            </Columns>
                        </MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" />
                        </ClientSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </telerik:RadGrid>
                    <telerik:RadContextMenu ID="RadMenu_PT20" runat="server" Skin="Default">
                        <Items>
                            <telerik:RadMenuItem Text="Go to Employee" />
                            <telerik:RadMenuItem Text="Go to Terminal" />
                            <telerik:RadMenuItem Text="Edit Record" />
                        </Items>
                        <Targets>
                            <telerik:ContextMenuControlTarget ControlID="EisDefaultToolBar" />
                        </Targets>
                    </telerik:RadContextMenu>
                    <%--
                <telerik:RadContextMenu ID="EisDefaultContextMenu" runat="server" EnableShadows="true">
                    <Items>
                        <telerik:RadMenuItem Text="Full Details" Value="details" Enabled="true" />
                        <telerik:RadMenuItem Text="Edit" Value="edit" Enabled="false" />
                        <telerik:RadMenuItem Text="Set status" Value="status" Enabled="false" />
                    </Items>
                </telerik:RadContextMenu>--%>
                </ContentTemplate>
            </telerik:RadDock>
        </telerik:RadDockZone>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Sunset" />
        <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
            ReloadOnShow="true" runat="server" Skin="Web20" EnableShadow="true">
            <Windows>
                <telerik:RadWindow Width="350" ID="RadWindow1" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                    NavigateUrl="Dialog1.aspx">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
</asp:Content>


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 12 May 2011
3 answers
55 views
Hi,

Are there any known problems when using IE9 with custom skins? Specifically when changing the mouse cursor from a pointer to a hand when hovering over a menu item.

For whatever reason I cannot seem to be able to override the:

.RadMenu a.rmLink
cursor: default;

IE8 works fine.

Any ideas??

Many Thanks

Mark
Helen
Telerik team
 answered on 12 May 2011
1 answer
97 views
Hi,

I have a radgrid with a delete Imagebutton, when i click on delete button a panel should hide that row with corresponding height and width of that row and the panel should contain two buttons with confirmation message... I'm using a jquery function to display the panel as slidedown when i click on delete button. this is my code to slidedown that panel

<script type="text/javascript">
        $(function () {
            $("#Link1").click(function (evt) {
                evt.preventDefault();
                $('#panelText').slideToggle('slow');
            });
        });
         
    </script>

can any one  please tell me how to display the panel on the selected row... and how to call that jquery function
Radoslav
Telerik team
 answered on 12 May 2011
1 answer
68 views
Hello,
I'm using Telerik OpenAccess with Telerik ASP.NET Ajax controls. I'm wondering how can I show the first elemnt of a related collection in a column of the RadGrid.
I can do it using the itemDataBound event, but I want to know if is possible to do it configurin the radgrid. I tried to use First<T>() method of the colletion in the column property DataField ( DataField="relatedCollectionNavigationProperty.First<MyEntity>()"), but unsuccessfully.

Thanks in advance, and sorry for my bad explanation.
Mira
Telerik team
 answered on 12 May 2011
1 answer
103 views
Hi:

I have a treelist with some auto generated column. The header text of those columns needs to be hyperlinked so that user can click on that and navigate to some other page.

Currently I am generating 'href'  and assigning it to the header text to achieve this. The problem is that look and feel wise it does not appear as hyper link (i.e. blue color and underlined). When i move the cursor to it the ICON does change into 'hand' and I am able to successfully click and navigate to the destination url.

How can I force this header text to look and feel like actual hyperlink

Thanks
Shabbir
Martin
Telerik team
 answered on 12 May 2011
1 answer
124 views
Hi,

I want to perform following actions on RadCalendar through client side using web methods.

1. Change inner Html and css of current Calendar cells on selection of any cell.
2. Disable, make a cell not selectable and change its style on rendering a new view.
3. Change current view of calendar on button click outside the calendar.

please guide me how can I implement all these through client side.

Issues facing:
1. Not able to add special days to calender from client side.
2. Css not persisting after hover on the Cell after performing event OnDayRender called by NavigateToDate Method.
3. Not able to make any cell disabled or not selectable.
4. Not able to find proper documentation on RadCalendar Client Side Programming other than this:
http://www.telerik.com/help/aspnet-ajax/calendar-client-side-basics.html


Thanks,
Ramanpreet Singh


Vasil
Telerik team
 answered on 12 May 2011
1 answer
133 views
We migrated our application to another server and maybe it is a coincidence but after that wierd things started to happen with Rad controls.

Clearly on some computers the content from WebResource.axd is not served as it should , images are missing for example there are no arrows and command item icons in RadGrid, RadComboBoxes are just white spaces without borders but other controls are visable , like menu. Thats not all, on different machines and different pages different controls are lacking images.

It looks better when Telerik CDN is on for styles but it slows down the page, server is fast enough to serve the content on it own, but that still doesn't solve ale the issues.

Furthermore in logs we keep getting one error :

2011-05-07 10:21:45.6580|Error ## In Application_Error This is an invalid webresource request. ##
                 
Xxx.WebApp.Global.Application_Error()
PipelineStepManager.ResumeSteps() > HttpApplication.RaiseOnError() > Global.Application_Error()
                 
This is an invalid webresource request. System.Web.HttpException HttpException System.Web.HttpException (0x80004005): This is an invalid webresource request.
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Void System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)    at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
                

Have anyone experienced that kind of problem ?

The version that we use is : 2010.3.1109.40 
Maria Ilieva
Telerik team
 answered on 12 May 2011
2 answers
88 views
I am trying to use the RadGrid and the Self-referencing hierarchy concept and had success when pulling all my data from 1 table.  When i put a where clause on the SQLDataSource (where managerid = @managerid (parameter that is passed thru querystring) ) that is attached to the RadGrid I get no results on the grid.  Is the problem that the managerid i put in  has a parentid?  At the root level of my table the record does not have a parentid but i guess my question is can i show all children for a manger that does have a parentid?  Are there any references for using the Self-referencing Hierarchy with SqlDataSource that uses a querystring parameter on the .aspx page?


Thanks.
Mira
Telerik team
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?