Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
186 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
150 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
53 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
87 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
64 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
96 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
115 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
130 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
83 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
1 answer
112 views

Hi,

It seems no matter what element width I set on my RadGrid parent element, the RadGrid forces the parent elements width to be 100%
I have overridden the rgGridData class and it has no effect, the top-level parent element always expands.

Sample code below:

<table border="1" width="500px;">
    <tr>
        <td>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadGrid ID="rGridSearchResults" Width="500px" runat="server" Height="500px">
                    <ClientSettings Scrolling-AllowScroll="true" Scrolling-ScrollHeight="500px">
                    </ClientSettings>
                    <MasterTableView Width="500px" Height="500px">
                        <NoRecordsTemplate>
                            No Results</NoRecordsTemplate>
                    </MasterTableView>
                </telerik:RadGrid>
        </td>
    </tr>
</table>

Any ideas?
Marin
Telerik team
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?