Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
123 views
Hello,
 I'm wondering if there's any possible way to have the ToolTip disappear, in for instance 6 sec, as opposed to using
the HideEvent property. I want to display the process of an uploaded file in modal view so a user cannot click
or disrupt the viewing process whatsoever. Thank you
Svetlina Anati
Telerik team
 answered on 14 Aug 2009
1 answer
90 views
Hi All,
I have a strange problem in my application. I am using the Radeditor on a custom aspx page and it works fine for some users but not for some and throws me the following error and does not render the page

Could not find a part of the path C:\windows\system32\inetserv~\ToolsFile.xml

I have placed my ToolsFile inside the below given path

C:\Inetpub\wwwroot\wss\VirtualDirectories\800
where 800 is the port number for my application


Am i missing something here or is it some authorization issue for the other users?
Lini
Telerik team
 answered on 14 Aug 2009
1 answer
97 views
I am trying to get a radgrid to display in a VERY custom way. i am wondering if anyone can help. You can see in the comments that say THIS NEED TO BE THE DATA, what I am trying to achieve is each section <tr class="first", <tr class="second", <tr class="third"

This displays as three rows obviously, but out of the data it is really just one row of data. Is there an easy way that I can translate this into a rad grid? I have tried using a HeaderTemplate and ItemTemplate but it did not come out well. Any ideas?

<table border="0" cellpadding="0" cellspacing="0" class="table_Item_Info"> 
<!-- THIS NEEDS TO BE THE HEADER -->                         
                        <tr class="first"> 
                               <th colspan="12" class="first" scope="col">Item Information</th> 
                        </tr> 
                        <tr class="second"> 
 
                                <th class="second" scope="col">ATA/AD/SB</th> 
                                <th colspan="3" class="third" scope="col">Description</th> 
                                <th class="fourth" scope="col">Disposition</th> 
                                <th class="fifth" scope="col">Cast C/W<br /> 
                                        Installed</th> 
                                <th class="sixth" scope="col">Intervals</th> 
 
                                <th class="seventh" scope="col">Tolerance</th> 
                                <th class="eighth" scope="col">Time At Inst<br /> 
                                        /Adjustment</th> 
                                <th class="nineth" scope="col">Next Due</th> 
                                <th class="tenth" scope="col">Remaining</th> 
                                <th class="eleventh" scope="col">Action</th> 
 
                        </tr> 
                        <tr class="third"> 
                                <th class="twelveth">Item No</th> 
                                <th class="thirteenth">Part No</th> 
                                <th class="fourteenth">Serial No</th> 
                                <th class="fifteenth">Reference No</th> 
                                <th colspan="3" class="sixteenth">Tracked By</th> 
 
                                <th colspan="5" class="seventeenth">Group</th> 
                        </tr> 
<!-- THIS NEEDS TO BE THE END OF THE HEADER --> 
<!-- THIS NEEDS TO BE THE DATA --> 
                        <tr class="first"> 
                                <td class="first noline">32-10-04-900-001-A00</td> 
                                <td colspan="3" rowspan="2" class="second noline">FUNCTION/ALLY CHECK (HYDROSTATIC TEST) CREW OXYGEN M: 36 01-Jan-2011CYLINDER P/N 4441009-50 NOTE: APPLICABLE ONLY FOR CYLINDERS TESTED PRIOR TO JULY 1ST 2006 OR ACCORDANCE WITH LOCAL REGULATORY AUTHORITY REQUIREMENTS.THE CPCP BASIC TASK SHALL ALSO BE PERFORMED FOR THIS SSI. (APPLIES IF POST MOD SB 145LEG-00-0007)</td> 
                                <td rowspan="2" class="third noline">RST</td> 
                                <td rowspan="3" class="fourth noline">28-Mar-2008</td> 
 
                                <td rowspan="3" class="fifth noline">M: 96 TI<br /> 
                                        H: 7200 TI<br /> 
                                        L: 7200 TI</td> 
                                <td rowspan="2" class="sixth noline">D: 15<br /> 
                                        H: 20<br /> 
                                        L: 20</td> 
 
                                <td rowspan="3" class="seventh noline">M: 0<br /> 
                                        H: 0.00 <br /> 
                                        L: 0</td> 
                                <td rowspan="3" class="eighth noline">01-Jan-2009<br /> 
                                        H: 4500.00<br /> 
                                        L: 4500</td> 
 
                                <td rowspan="3" class="nineth noline">M: -2 D: -23<br /> 
                                        H: -1500.00<br /> 
                                        L: 700</td> 
                                <td rowspan="3" class="tenth noline"><a href="javascript:void(0);"><img src="images/button_Action.jpg" alt="Action" name="action_up" width="66" height="18" class="action_up" id="action_up" /></a></td> 
                        </tr> 
                        <tr class="second"> 
                                <td class="eleventh">SYSTEM</td> 
 
                        </tr> 
                        <tr class="third"> 
                                <td class="twelveth">255</td> 
                                <td class="thirteenth">P/N: 1172C0000-02</td> 
                                <td class="fourteenth">S/N: 00140</td> 
                                <td class="fifteenth">AMM 32-20-02-900-801-A</td> 
                                <td class="sixteenth">Airframe</td> 
 
                                <td class="seventeenth">L8</td> 
                        </tr> 
<!-- THIS NEEDS TO BE THE END OF THE DATA --> 
</table> 

Vlad
Telerik team
 answered on 14 Aug 2009
1 answer
171 views
We are using the 2008 Q3 version of the AJAX controls. We have an editor on a page that is hidden when the page loads. We are using an ajax request to make it appear. It renders correctly and looks good the first time. However, if another ajax request makes the editor hidden and then we perform an postback, the next AJAX request to display the editor makes it render as a messed up unordered list with bullets down the screen. Needless to say, it can't be used at all. Is there a reason this is happening and a way to fix it? It almost appears that it outputs the necessary CSS and scripts the first time and then from that point on it doesn't think it needs to.

Thanks,
Adam
Rumen
Telerik team
 answered on 14 Aug 2009
3 answers
82 views
HI,
When I have Russel Mason ribbon bar on the page and i set whole page to 100% height, page have 100% + ribbon bar height, does anyone have the same problem?
Milosz
Top achievements
Rank 1
 answered on 14 Aug 2009
1 answer
133 views
I have a rad grid with a master (parent) and detailtable (child).

And I tried an example that was posted on another thread, but no matter what I try, I can't get get_nestedViews to work. It always returns error "Object doesn't support this property or method"

Here's the sample I tried....

the aspx..
<script type="text/javascript" language="javascript">  
            function getNestedViewsForFirstMasterItem() {  
                debugger;  
                var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();  
                alert(masterTable.get_dataItems()[0].get_nestedViews().length);  
            }   
        </script> 
 
        <asp:Button ID="Button1" runat="server" Text="GetNested" OnClientClick="getNestedViewsForFirstMasterItem();return false;" /> 
        <telerik:RadGrid ID="RadGrid1"  GridLines="None" runat="server" OnNeedDataSource="radgrid1_NeedDataSource">  
            <MasterTableView DataKeyNames="ID" Width="100%">  
                <DetailTables> 
                    <telerik:GridTableView DataKeyNames="ID" /> 
                </DetailTables> 
            </MasterTableView> 
        </telerik:RadGrid> 

C#
protected void radgrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            var dt = new DataTable();  
            dt.Columns.Add("ID", typeof(Int32));  
            dt.Columns.Add("Name", typeof(String));  
            dt.Rows.Add(1, "test");  
            dt.Rows.Add(2, "Another test");  
            RadGrid1.DataSource = dt;  
 
        } 

This seemed so simple, but I can't get it to work.

Please help as I'm trying to access the nested/child tables via JavaScript in order to select the child rows when the parent row is selected. I have everything else working -- I have the selection/deselection of the parent row wired to a javascript function, I force teh parent row to be expanded if it isn't already -- I just can't seem to access the child/nested table to select all of its rows.

Thanks!

- Debbie
Shinu
Top achievements
Rank 2
 answered on 14 Aug 2009
1 answer
229 views
Hi,

Just beginning to use this control - not a very good start!

If I place a RadCaptcha control on the page, I get this exception:

Multiple controls with the same ID 'CaptchaImage' were found. FindControl requires that controls have unique IDs.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Multiple controls with the same ID 'CaptchaImage' were found. FindControl requires that controls have unique IDs.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Multiple controls with the same ID 'CaptchaImage' were found. FindControl requires that controls have unique IDs.]
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +273
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +320
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +320
   System.Web.UI.Control.EnsureNamedControlsTable() +61
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +222
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.UI.RadCaptcha.Render(HtmlTextWriter writer) +28
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Using the following markup:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Captcha.aspx.vb" Inherits="Captcha" %>

 

<%

@ 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 runat="server">

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<div>

 

 

<asp:ScriptManager runat="server" />

 

 

 

<telerik:RadCaptcha ProtectionMode="Captcha" runat="server" />

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>


Any ideas?

 

Pero
Telerik team
 answered on 14 Aug 2009
1 answer
246 views
Using the latest version, I am using the NavigateUrl property of the RadToolBarButton, which does redict the user to the location (a relative path in the same web site), but the Request.UrlReferrer is NULL. The Toolbar is not using AJAX, just a full postback.

Is this expected behavior? How would I determine the page sending the user to the new page?
Alex Gyoshev
Telerik team
 answered on 14 Aug 2009
1 answer
99 views
Hi,

While upgrading telerik controls from Rad Controls for ASP.NET (Q3 2007 release), to Rad Controls ASP.Net Ajax (Q2 2009 release), the existing  client side scripts are not executing:

Sample code is:
System.Text.StringBuilder sb = new System.Text.StringBuilder(); 
sb.Append("<script language='javascript'>"); 
sb.Append("scroll(0, 200);"); 
sb.Append("</script>"); 
Page.ClientScript.RegisterStartupScript(this.GetType(), "scroll", sb, false); 
 

While upgrading the telerik controls, the existing script codes are not working!. i also got code from telerik to execute javascript using RadAjaxManager as follows:

RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("Sys.Application.add_load(function(){scroll(0, 200);})"); 

But that too doesn't helped me out. Please give me a solution for this.

Thanks
Vlad
Telerik team
 answered on 14 Aug 2009
1 answer
106 views
Hi i have an issue with the Splitters on this page what i want is to have on the page is the splitter to work and that my grid also shows properly at the moment the page and panes dont seem to do this with the splitter

here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Property.aspx.cs" Inherits="WebSchedule.Property1" %> 
 
<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %> 
 
<%@ 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 runat="server">  
    <link href="css/WebScheduleTheme.css" rel="stylesheet" type="text/css" /> 
    <title>Property Information</title> 
    </head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">  
    </telerik:RadStyleSheetManager> 
 
    <div> 
      
        <telerik:RadSplitter ID="RadSplitter1" Runat="server" FullScreenMode="true" LiveResize="True" Orientation="Horizontal" Skin="WebBlue">  
            <telerik:RadPane ID="TopPane" Runat="server" Scrolling="None">  
            <telerik:RadSplitter ID="RadSplitter2" Runat="server" FullScreenMode="True">  
                <telerik:RadPane ID="TopLeftPane" Runat="server" Scrolling="None" MinHeight="350" MinWidth="350" > 
            <table> 
                <tr> 
                    <td> 
                        <asp:Label ID="label6" runat="server" Text="Int Ref:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblPropRef" runat="server" Text="" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="Label1" runat="server" Text="Customer Name:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblCustomerName" Runat="server" Width="150px" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="Label2" runat="server" Text="Address:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblFullAddress" Runat="server" Width="150px" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label4" runat="server" Text="Postcode:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblPostcode" runat="server" Width="60px" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label3" runat="server" Text="Tel:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblTelNumber" runat="server" Width="75px" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label7" runat="server" Text="Mobile:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblMobContact" runat="server" Text="" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label9" runat="server" Text="Contract:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblContract" runat="server" Text="" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label11" runat="server" Text="Prop Clas:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblPropClass" runat="server" Text="" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label13" runat="server" Text="Last Service Date:"  /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblLastService" runat="server" Text="" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label15" runat="server" Text="Status" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblStatus" runat="server" Text="" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label8" runat="server" Text="Heat Type:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblHeatType" runat="server" Text="" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label12" runat="server" Text="Apps:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblApps" runat="server" Text="" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label10" runat="server" Text="Assets:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblAssets" runat="server" Text="" /> 
                    </td> 
                    <td> 
                    </td> 
                    <td> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:Label ID="label18" runat="server" Text="Problem:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblProblemProperty" runat="server" Text="" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="label20" runat="server" Text="Void:" /> 
                    </td> 
                    <td> 
                        <asp:Label ID="lblvoidProperty" runat="server" Text="" /> 
                    </td> 
                </tr> 
                </table> 
                </telerik:RadPane> 
                <telerik:RadPane ID="TopRightPane" Runat="server" Scrolling="None" Width="350" Height="300">  
                    <telerik:RadTabStrip ID="RadTabStrip2" runat="server" Skin="WebBlue"   
                            SelectedIndex="1" MultiPageID="RadMultiPage3">  
                        <Tabs> 
                            <telerik:RadTab runat="server" Text="Map">  
                            </telerik:RadTab> 
                        </Tabs> 
                    </telerik:RadTabStrip> 
                <telerik:RadMultiPage ID="RadMultiPage3" Runat="server" SelectedIndex="1">  
            <telerik:RadPageView ID="RadPageView1" runat="server" TabIndex="1">  
                    <cc1:GMap ID="gMap1" runat="server"  Width="350px" Height="250px" /> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView10" runat="server" TabIndex="2">  
            </telerik:RadPageView> 
            </telerik:RadMultiPage> 
            </telerik:RadPane> 
            </telerik:RadSplitter> 
            </telerik:RadPane> 
            <telerik:RadPane ID="BottomPane" Runat="server" Scrolling="None">  
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0"   
                Skin="WebBlue">  
                <Tabs> 
                <telerik:RadTab runat="server" PageViewID="RadPageView4" Text="Repairs History" Selected="true">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" PageViewID="RadPageView5" Text="Service History">  
                </telerik:RadTab> 
                </Tabs> 
                </telerik:RadTabStrip> 
                <telerik:RadMultiPage ID="RadMultiPage1" Runat="server">  
                    <telerik:RadPageView ID="RadPageView4" runat="server" Selected="true" Height="100%" Width="100%">  
                        <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" /> 
                        <input type="hidden" id="radGridClickedRowValue" name="radGridClickedRowValue" /> 
                        <telerik:RadGrid ID="RadgrdRepair" runat="server" Skin="WebBlue"   
                            GridLines="None" OnDetailTableDataBind="RadgrdRepair_DetailTableDataBind"   
                            AutoGenerateColumns="False" > 
                            <MasterTableView CellSpacing="-1" clientDataKeyNames="ORDERID, PROPREF" DataKeyNames="ORDERID, PROPREF">  
                                <DetailTables> 
                                    <telerik:GridTableView DataKeyNames="ORDERID" Name="Orders" Width="100%">  
                                        <ParentTableRelation> 
                                            <telerik:GridRelationFields DetailKeyField="ORDERID" MasterKeyField="ORDERID" /> 
                                        </ParentTableRelation> 
                                        <Columns> 
                                            <telerik:GridBoundColumn DataField="VISITID" HeaderText="VISITID" SortExpression="VISITID" UniqueName="VISITID">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="PROPREF" HeaderText="PROPREF" SortExpression="PROPREF" UniqueName="PROPREF">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="ORDERID" HeaderText="ORDERID" SortExpression="ORDERID" UniqueName="ORDERID">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="FAULT" HeaderText="FAULT" SortExpression="FAULT" UniqueName="FAULT">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status" UniqueName="Status">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="WORKDONE" HeaderText="WORKDONE" SortExpression="WORKDONE" UniqueName="WORKDONE">  
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                    </telerik:GridTableView> 
                                </DetailTables> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="ORDERID" HeaderText="ORDERID" SortExpression="ORDERID" UniqueName="ORDERID">  
                                        <HeaderStyle Width="40px" /> 
                                        <ItemStyle Width="40px" Wrap="False" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="PROPREF" HeaderText="PROPREF" SortExpression="PROPREF" UniqueName="PROPREF">  
                                        <HeaderStyle Width="40px" /> 
                                        <ItemStyle Width="40px" Wrap="False" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="FAULTREPORTED" HeaderText="FAULTREPORTED" SortExpression="FAULTREPORTED"   
                                        UniqueName="FAULTREPORTED" ItemStyle-Width="300px" HeaderStyle-Width="350px" ItemStyle-Wrap="false">  
                                        <HeaderStyle Width="350px" /> 
                                        <ItemStyle Width="300px" Wrap="False" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="RAISEDDATE" DataType="System.DateTime" HeaderText="RAISEDDATE"   
                                    SortExpression="RAISEDDATE" UniqueName="RAISEDDATE">  
                                        <HeaderStyle Width="60px" /> 
                                        <ItemStyle Width="60px" Wrap="False" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" 
                                    SortExpression="STATUS" UniqueName="STATUS">  
                                        <HeaderStyle Width="40px" /> 
                                        <ItemStyle Width="40px" Wrap="False" /> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                                <RowIndicatorColumn> 
                                     <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </ExpandCollapseColumn> 
                            </MasterTableView> 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                               <ClientEvents OnRowContextMenu="RowContextMenu" OnRowSelected="RowSelected" /> 
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                            </ClientSettings> 
                        </telerik:RadGrid>                     
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView5" runat="server" Height="75px" Width="227px">Tab5</telerik:RadPageView> 
                </telerik:RadMultiPage> 
          </telerik:RadPane> 
        </telerik:RadSplitter> 
      
    </div> 
    <telerik:RadAjaxManager runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadSplitter1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadSplitter1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"/>  
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadMenu1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
      
    <telerik:RadContextMenu ID="RadMenu1" runat="server" Skin="WebBlue" onclientitemclicked="MenuSelect">  
        <Items> 
            <telerik:RadMenuItem Text="View Property" /> 
            <telerik:RadMenuItem Text="View Job Details" Visible="False" /> 
            <telerik:RadMenuItem Text="Find Closest Engineer" Visible="False" /> 
            <telerik:RadMenuItem Text="Edit Job" Visible="false" /> 
            <telerik:RadMenuItem Text="Edit/Book Job" /> 
            <telerik:RadMenuItem Text="Show on Map" Visible="False" /> 
        </Items> 
    </telerik:RadContextMenu> 
      
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"   
        Skin="Simple" Height="100%" Width="100%" InitialBehavior="Maximize"   
        InitialBehaviors="Maximize" Behaviors="Maximize" Behavior="Close">  
        <Windows> 
        <telerik:RadWindow runat="server" ID="Repair" Height="100%" Width="100%"   
                InitialBehavior="Maximize" InitialBehaviors="Maximize" AutoSize="True" Behavior="Close" Behaviors="Maximize">  
        </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">  
 
        <script type="text/javascript">  
            function RowSelected(sender, args) {  
                var dataKeyValue = args.getDataKeyValue("ORDERID");  
                document.getElementById("txtOrderID").value = dataKeyValue;  
                var pdataKeyValue = args.getDataKeyValue("PROPREF");  
                document.getElementById("txtPropref").value = pdataKeyValue;  
            }  
          
        function RowContextMenu(sender, eventArgs)   
        {  
            var menu = $find("<%=RadMenu1.ClientID %>");  
            var evt = eventArgs.get_domEvent();  
 
            var index = eventArgs.get_itemIndexHierarchical();  
            document.getElementById("radGridClickedRowIndex").value = index;  
            var dataKeyValue = eventArgs.getDataKeyValue("ORDERID");  
 
            sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);  
 
            menu.show(evt);  
 
            evt.cancelBubble = true;  
            evt.returnValue = false;  
 
            if (evt.stopPropagation) {  
                evt.stopPropagation();  
                evt.preventDefault();  
            }  
        }  
 
        function MenuSelect(sender, eventArgs) {  
            var item = eventArgs.get_item();  
            var itemitems = item.get_text();  
 
            if (items == "Edit/Book Job") {  
                var propref = document.getElementById("txtPropref").value;  
                var orderno = document.getElementById("txtOrderID").value  
                window.radopen("Repair.aspx?Propref=" + propref + "&OrderNo=" + orderno, "");  
            }  
 
            if (items == "Edit Job") {  
                var propref = document.getElementById("txtPropref").value;  
                var orderno = document.getElementById("txtOrderID").value  
                window.radopen("Repair.aspx?Propref=" + propref + "&OrderNo=" + orderno, "");  
            }  
 
            if (items == "View Property") {  
                var propref = document.getElementById("txtPropref").value;  
                window.radopen("Property.aspx?Propref=" + propref, "");  
            }  
 
            if (items == "Find Closest Engineer") {  
                var propref = document.getElementById("txtPropref").value;  
                window.radopen("Maps.aspx?Propref=" + propref + "&MenuItem=GetClosestEngineer", "");  
            }  
 
            if (items == "Show on Map") {  
                var propref = document.getElementById("txtPropref").value;  
                var order = document.getElementById("txtOrderID").value;  
                window.radopen("Maps.aspx", "");  
            }  
 
        }  
          
    </script> 
    </telerik:RadScriptBlock> 
    <asp:HiddenField ID="txtPropref" runat="server" /> 
    <asp:HiddenField ID="txtOrderID" runat="server" /> 
    </form> 
</body> 
</html> 
 
Svetlina Anati
Telerik team
 answered on 14 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?