Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
305 views
Hi,
I'm fighting with a problem for over one week that sounds very easy:
Click a button, open a modal dialog with a grid, select a row of this grid and return the selected value back to the textbox of the parent form.
I started with a demo from telerik demos section (http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx).
This works fine when the textbox and button are placed directly on a form. But I need them inside an user control. This is because I need the popup functionality more than once on one webform. It should be a kind of standard search that i can use for different textboxes.

The problem is that when returning the value to the parent page javascript does not know which user control (textbox) called the dialog and writes the returned value to the textbox of the first user control.

Can anybody please help me to solve that problem? Maybe with an running example? :-)

Thanks,
Uwe


Marin Bratanov
Telerik team
 answered on 12 May 2011
3 answers
191 views
Hello guys.

I'm using this example with my grid:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

but my columns are disrupted when you put a child row. I only wish to change the first column and nothing else, as the example.

How can I do this?

My problem today:
 with no child rows:
http://imageshack.us/f/39/griderro1.png/

with child rows:
http://imageshack.us/f/808/griderror.png/

Regards.
Daniel
Telerik team
 answered on 12 May 2011
1 answer
166 views

 

Hi, I have a display issue I hope someone can help me with.

When I apply a class to a block of text in the editor, it creates a span tag surrounding the text and assigns
its class attribute properly.  The problem is when I highlight that same block of text and apply
a specific font, the font from the CSS class is displayed in the editor, not the inline style font
value.

The HTML resulting from this is :

<P> <SPAN style="FONT-FAMILY: Times; FONT-SIZE: 24pt" 
class=Headline>This is a test</SPAN></P>

The HTML is what I expect, but the editor displays the font as Verdana (which is specified in the Headline class), not Times. If I paste this HTML into a browser, the font displays as times. Does the editor handle style inheritance differently than the browser?
Rumen
Telerik team
 answered on 12 May 2011
1 answer
131 views
Hi

I have a treelist with a column holding datetime values. In edit mode I need to show the datetime selection control. But the problem I am facing is that the width of the column is not wide enough to make the  datetime selection cotrol visible.

Now my question is, how can I manipulate the width of the auto generated column

Any help on the regard will be highly appreciated.

Thanks
Tsvetina
Telerik team
 answered on 12 May 2011
7 answers
898 views
Hi!

Can somebody help me!
I have webpage with three nested radgrids in one radGrid, I want to select the second nested radgrid out of the three and make the height the same as the window height, via javascript. Is this possible?
I've tried to put something together but it doens't seem to be working.
My code is attached, hope someone can help me!

Thanks and regards,
LiZ0r

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TEST_ResultsALL.aspx.cs" 
    Inherits="TEST_ResultsALL" %> 
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>AIRLINE INCENTIVE TARGET TRACKING - ALL AIRLINES</title> 
    <link href='https://enett99.com/Travel/Styles/CTP.asp' type="text/css" rel="stylesheet">  
    <%--    <LINK href='<%=System.Configuration.ConfigurationSettings.AppSettings["Styles"] + Request.Cookies["Brand"].Value%>.asp' type=text/css rel=stylesheet>--%> 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
        <script type="text/javascript">  
            function ResizeGrid()  
            {  
                var winWidth, winHeight, d = document;  
                var radGrid0 = $find('<%= RadGrid0.ClientID %>'); //outer RadGrid  
                var radGrid1 = $telerik.findControl(radGrid0.get_element(), "RadGrid2"); //get the RadGrid2 client object  
                  
                if (typeof window.innerWidth != 'undefined')  
                {  
                    winWidth = window.innerWidth;  
                    winHeight = window.innerHeight;  
                }  
                else if (d.documentElement && typeof d.documentElement.clientWidth != 'undefined' && d.documentElement.clientWidth != 0)  
                {  
                    winWidth = d.documentElement.clientWidth;  
                    winHeight = d.documentElement.clientHeight;  
                }  
                else if (d.body && typeof d.body.clientWidth != 'undefined')  
                {  
                    winWidth = d.body.clientWidth;  
                    winHeight = d.body.clientHeight;  
                }  
 
                if (winHeight > 800)  
                    radGrid1.set Height(winHeight - 265);  
        else  
                    radGrid1.set Height(winHeight - 20);  
            }  
 
 
            //function findGrid()  
            //{  
            //    var radGrid0 = $find('<%= RadGrid0.ClientID %>'); //outer RadGrid  
            //    var radGrid1 = $telerik.findControl(radGrid0.get_element(), "RadGrid1"); //get the RadGrid1 client object  
            //    alert("RadGrid1 MasterTableView Items count = " + radGrid1.get_masterTableView().get_dataItems().length); //test  
            //}  
        </script> 
 
    </telerik:RadCodeBlock> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div style="overflow-x: hidden">  
        <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">  
            <tr> 
                <td align="left">  
                    <asp:Label ID="lblReportHeading" runat="server" CssClass="Heading">AIRLINES INCENTIVE TARGET TRACKING (ALL AIRLINES)</asp:Label> 
                </td> 
            </tr> 
            <tr> 
                <td align="left">  
                    <hr size="1" align="left" style="width: 100%">  
                </td> 
            </tr> 
        </table> 
        <asp:Label ID="lblData" runat="server" CssClass="Heading">NOTE: Data available for selection between </asp:Label><br /> 
        <br /> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <asp:Button ID="Button1" runat="server" Text="Export" OnClick="Button1_Click" /> 
        <asp:Button ID="Button2" runat="server" Text="PDF" OnClick="Button2_Click" /> 
        //<input type="button" value="Find RadGrid1 w/JS" onclick="findGrid()" /> 
        <telerik:RadGrid ID="RadGrid0" runat="server" Skin="Default" ShowHeader="false" OnNeedDataSource="RadGrid0_NeedDataSource" 
            BorderStyle="None" Width="450px">  
            <MasterTableView> 
                <ItemTemplate> 
                    <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" 
                        Skin="Vista" Width="450px">  
                        <MasterTableView AutoGenerateColumns="false">  
                            <Columns> 
                                <telerik:GridBoundColumn HeaderText="Filters" UniqueName="Filters" DataField="Filters" /> 
                                <telerik:GridBoundColumn HeaderText="" UniqueName="MoreFilters" DataField="MoreFilters" /> 
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 
                    <br /> 
                    <br /> 
                    <telerik:RadGrid ID="RadGrid2" runat="server" OnNeedDataSource="RadGrid2_NeedDataSource" 
                        Skin="Vista" Width="1093px">  
                        <MasterTableView AutoGenerateColumns="false" Width="1000px">  
                            <Columns> 
                                <telerik:GridTemplateColumn HeaderText="Airline Name" UniqueName="AirlineName" FooterText="Total">  
                                    <%--                             <ItemTemplate> 
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/RevNett_Report_TicketedRevenue_Detailed.aspx?" + Request.QueryString + "&AL2=" + DataBinder.Eval(Container.DataItem,"Airline") %>' Text='<%# DataBinder.Eval(Container.DataItem,"AirlineName") %>' /> 
                                </ItemTemplate>--%> 
                                    <FooterStyle HorizontalAlign="Left" Width="150px" /> 
                                    <HeaderStyle HorizontalAlign="Left" Width="150px" /> 
                                    <ItemStyle HorizontalAlign="Left" Width="150px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn DataField="AirlineName" Display="False" HeaderText="Airline Name" 
                                    UniqueName="AirlineNameForExport" FooterText="Total">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="Airline" HeaderText="Code" UniqueName="column">  
                                    <FooterStyle HorizontalAlign="Right" Width="40px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="40px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="40px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="TicketedRevenue" DataFormatString="{0:C0}" 
                                    HeaderText="Ticketed Revenue" UniqueName="column1" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="110px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="110px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="110px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="TicketedRevenueLY" DataFormatString="{0:C0}" 
                                    HeaderText="Last Month" UniqueName="column2" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="100px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="100px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="100px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="TicketedRevenuePcnt" DataFormatString="{0:N2}%" 
                                    HeaderText="% change" UniqueName="column3" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="TicketedRevenueFYDate" DataFormatString="{0:C0}" 
                                    HeaderText="FY YTD" UniqueName="column4" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="100px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="100px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="100px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="TicketedRevenueLFYDate" DataFormatString="{0:C0}" 
                                    HeaderText="Last Year" UniqueName="column5" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="100px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="100px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="100px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="TicketedRevenueFYPcnt" DataFormatString="{0:N2}%" 
                                    HeaderText="% change" UniqueName="column6" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="MarketSharePcnt" DataFormatString="{0:N2}%" HeaderText="Market Share" 
                                    UniqueName="column7" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="90px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="90px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="90px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="MarketSharePcntChange" DataFormatString="{0:N2}%" 
                                    HeaderText="% change" UniqueName="column8" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget1" DataFormatString="{0:C0}" 
                                    HeaderText="1st Tier" UniqueName="column9" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt1" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column10" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget2" DataFormatString="{0:C0}" 
                                    HeaderText="2nd Tier" UniqueName="column11" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt2" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column12" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget3" DataFormatString="{0:C0}" 
                                    HeaderText="3rd Tier" UniqueName="column13" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt3" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column14" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget4" DataFormatString="{0:C0}" 
                                    HeaderText="4th Tier" UniqueName="column15" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt4" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column16" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget5" DataFormatString="{0:C0}" 
                                    HeaderText="5th Tier" UniqueName="column17" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt5" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column18" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="IncentiveTarget6" DataFormatString="{0:C0}" 
                                    HeaderText="6th Tier" UniqueName="column19" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="80px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="80px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="80px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IncentiveTargetPcnt6" DataFormatString="{0:N2}%" 
                                    HeaderText="% achieved" UniqueName="column20" DataType="System.Decimal">  
                                    <FooterStyle HorizontalAlign="Right" Width="70px" /> 
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" /> 
                                    <ItemStyle HorizontalAlign="Right" Width="70px" /> 
                                </telerik:GridBoundColumn> 
                            </Columns> 
                        </MasterTableView> 
                        <ClientSettings> 
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                        </ClientSettings> 
                    </telerik:RadGrid> 
                    <br /> 
                    <br /> 
                    <telerik:RadGrid ID="RadGrid3" runat="server" OnNeedDataSource="RadGrid3_NeedDataSource" 
                        Skin="Vista" Width="450px">  
                        <MasterTableView AutoGenerateColumns="false">  
                            <Columns> 
                                <telerik:GridBoundColumn HeaderText="Filters" UniqueName="Filters" DataField="Filters" /> 
                                <telerik:GridBoundColumn HeaderText="" UniqueName="MoreFilters" DataField="MoreFilters" /> 
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 
                </ItemTemplate> 
            </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 
Kaushal
Top achievements
Rank 1
 answered on 12 May 2011
3 answers
42 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
192 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
156 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?