Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
206 views

Hi,

This is a weird one.

My markup is rather large so I'll just include a collapsed summary of my windows.  The full declarations can be found at the end of this thread.

<telerik:RadWindowManager ID="RadWindowManager" runat="server" ShowContentDuringLoad="false"
        Skin="Office2007" Style="z-index: 7000">
        <Windows>
<telerik:RadWindow ID="winTaskIdentifier" ... > ... </telerik:RadWindow>
<telerik:RadWindow ID="winActivity" ... > ... </telerik:RadWindow>
<telerik:RadWindow ID="winAutoSave" ... > ... </telerik:RadWindow>
<telerik:RadWindow ID="winExport" ... > ... </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

 All of the windows use ContentTemplate.

The issue is that "one" of these windows will display the footer from the master page.

If I re-order the windows, then the footer appears on another one.

It appeared that whatever window was in the 3rd position (winAutoSave in the snippet above), would have the footer - but I've found that is not always the case.

Another important clue is that this only occurs in Chrome; Firefox and IE are fine and do not show the footer on any of the windows.

I have attached a file containing a screenshot showing the issue on the Auto Save popup.

The fact that merely changing the sequence in which the windows occur in my page makes me believe that it's not a problem at my end.

Please help.

Thanks

Jim

Here's the full markup for the windows - the footer and referenced class from the master appear at the bottom:

<telerik:RadWindowManager ID="RadWindowManager" runat="server" ShowContentDuringLoad="false"
    Skin="Office2007" Style="z-index: 7000">
    <Windows>
        <telerik:RadWindow ID="winTaskIdentifier" Width="520px" Height="200px" runat="server" Title="Task Identification"
            VisibleOnPageLoad="false" Behaviors="Close,Move" EnableShadow="true" Modal="true" VisibleStatusbar="False"
            OnClientClose="OnClientClose">
            <ContentTemplate>
                <div style="padding: 10px;">
                    <telerik:RadButton ID="RadButton1" Text="OK" runat="server" OnClientClicked="taskIdentifierDialogButtonClicked" CommandName="update" AutoPostBack="false">
                    </telerik:RadButton>
                       
                    <telerik:RadButton ID="RadButton2" Text="Cancel" runat="server" OnClientClicked="taskIdentifierDialogButtonClicked" CommandName="cancel" AutoPostBack="false">
                    </telerik:RadButton>
                    <div style="padding: 10px;">
                        <br />
                        <telerik:RadButton ID="chkShowIdentifiers" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False"
                            ToggleType="CheckBox" AutoPostBack="false" Text="Show Identifiers (diagram + exports)" OnClientCheckedChanged="ShowIdentifiers">
                        </telerik:RadButton>
                        <asp:Panel ID="pnlMain" runat="server">
                            <div style="margin-top: 10px;">
                                <telerik:RadButton ID="chkSysIdent" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="True" GroupName="IdentifierType" OnClientCheckedChanged="chkSysIdent_CheckedChanged"
                                    ToggleType="Radio" AutoPostBack="false" Text="Use System Format (e.g., 3.5)">
                                </telerik:RadButton>
                                <telerik:RadButton ID="chkIncludePrefix" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False"
                                    ToggleType="CheckBox" AutoPostBack="false" Text="Include Process Prefix (e.g., INC 3.5)">
                                </telerik:RadButton>
                                <br />
                                <telerik:RadButton ID="chkUserIdent" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False" GroupName="IdentifierType"
                                    ToggleType="Radio" AutoPostBack="false" Text="User Provided (manually entered for each activity / task)">
                                </telerik:RadButton>
                            </div>
                        </asp:Panel>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadWindow ID="winActivity" Width="420px" Height="320px" runat="server"
            VisibleOnPageLoad="false" Behaviors="Close,Move" EnableShadow="true" Modal="true" VisibleStatusbar="False"
            OnClientClose="OnClientClose" OnClientShow="OnWindowShow">
            <ContentTemplate>
                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                    <script type="text/javascript">
                        var obj;
                        function pageLoad() {
                            obj = document.getElementById('<%= txtActivityName.ClientID %>');
                        }
                        function OnWindowShow(sender, args) {
                            if (obj != null) {
                                //setTimeout(" obj.focus();", 300);
                                document.getElementById('<%= lblActivityError.ClientID %>').style.display = "none";
                            }
                        }
                    </script>
                </telerik:RadScriptBlock>
                <div style="padding: 10px; float: left;">
                    <telerik:RadButton ID="btnOK" Text="OK" runat="server" OnClientClicked="activityDialogButtonClicked" AutoPostBack="false" ValidateRequestMode="Enabled">
                    </telerik:RadButton>
                       
                    <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" OnClientClicked="activityDialogButtonClicked" CommandName="cancel" AutoPostBack="false">
                    </telerik:RadButton>
                </div>
                <div style="padding: 10px; float: right;">
                    <asp:Label ID="lblActivityError" runat="server" Text="Name field is required" CssClass="required"></asp:Label>
                    <%--                            <asp:LinkButton ID="lnkSpell" runat="server"><img style="border:0px" alt="" src="Images/From Web/spellchecker_24x24.png"  /></asp:LinkButton>--%>
                </div>
                <div style="padding: 10px;">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Name" CssClass="popupLabelText"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadTextBox ID="txtActivityName" Width="350px" runat="server" EmptyMessage="Required"></telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="Description" CssClass="popupLabelText"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadTextBox ID="txtActivityDesc" Width="350px" Rows="8" TextMode="MultiLine" runat="server"></telerik:RadTextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadWindow ID="winAutoSave" Width="520px" Height="300px" runat="server" Title="Auto-Save"
            VisibleOnPageLoad="false" Behaviors="Close,Move" EnableShadow="true" Modal="true" VisibleStatusbar="False"
            OnClientClose="OnClientClose">
            <ContentTemplate>
                <div style="padding: 10px;">
                    <telerik:RadButton ID="RadButton5" Text="OK" runat="server" OnClientClicked="autoSaveDialogButtonClicked" CommandName="update" AutoPostBack="false">
                    </telerik:RadButton>
                       
                    <telerik:RadButton ID="RadButton6" Text="Cancel" runat="server" OnClientClicked="autoSaveDialogButtonClicked" CommandName="cancel" AutoPostBack="false">
                    </telerik:RadButton>
                    <div style="padding: 10px;">
                        <br />
                        <telerik:RadButton ID="chkAutoSave" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False"
                            ToggleType="CheckBox" AutoPostBack="false" Text="Enable Auto-Save" OnClientCheckedChanged="EnableAutoSave">
                        </telerik:RadButton>
                        <asp:Panel ID="pnlAutoSave" runat="server">
                            <div style="margin-top: 10px;">
                                <asp:Label ID="Label8" runat="server" Text="Number of <strong>minutes</strong> after which the diagram will automatically be saved (1-30)"></asp:Label>
                                <br />
                                <br />
                                <telerik:RadNumericTextBox ID="numSaveInterval" runat="server" MinValue="1" MaxValue="30" ShowSpinButtons="True" Width="50px">
                                    <NumberFormat DecimalDigits="0"></NumberFormat>
                                </telerik:RadNumericTextBox>
                            </div>
                        </asp:Panel>
                        <div style="margin-top: 10px;">
                            <asp:Label ID="Label10" runat="server" Text="Note: The current diagram is always saved when switching between activities or "></asp:Label>
                            <asp:Label ID="Label11" runat="server" Text="navigating to another page - regardless of the above settings."></asp:Label>
                        </div>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadWindow ID="winExport" Width="520px" Height="275px" runat="server" Title="Export All Process Activities"
            VisibleOnPageLoad="false" Behaviors="Close,Move" EnableShadow="true" Modal="true" VisibleStatusbar="False"
            OnClientClose="OnClientClose">
            <ContentTemplate>
                <div style="padding: 10px;">
                    <telerik:RadButton ID="RadButton3" Text="OK" runat="server" OnClientClicked="exportDialogButtonClicked" CommandName="export" AutoPostBack="false">
                    </telerik:RadButton>
                       
                    <telerik:RadButton ID="RadButton4" Text="Cancel" runat="server" OnClientClicked="exportDialogButtonClicked" CommandName="cancel" AutoPostBack="false">
                    </telerik:RadButton>
                    <div style="padding: 10px;">
                        <div style="margin-top: 10px;">
                            <telerik:RadButton ID="optExportCurrent" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="True" GroupName="ExportType" OnClientCheckedChanged="optExportCurrent_CheckedChanged"
                                ToggleType="Radio" AutoPostBack="false" Text="Export Current Activity">
                            </telerik:RadButton>
                            <div style="margin-left: 20px;">
                                <telerik:RadButton ID="optPNG" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="True" GroupName="ImageType" OnClientCheckedChanged="imageTypeChanged"
                                    ToggleType="Radio" AutoPostBack="false" Text="png">
                                </telerik:RadButton>
                                <telerik:RadButton ID="optJPG" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False" GroupName="ImageType" OnClientCheckedChanged="imageTypeChanged"
                                    ToggleType="Radio" AutoPostBack="false" Text="jpg">
                                </telerik:RadButton>
                                <telerik:RadButton ID="optBMP" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False" GroupName="ImageType" OnClientCheckedChanged="imageTypeChanged"
                                    ToggleType="Radio" AutoPostBack="false" Text="bmp">
                                </telerik:RadButton>
                                <telerik:RadButton ID="optSVG" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False" GroupName="ImageType" OnClientCheckedChanged="imageTypeChanged"
                                    ToggleType="Radio" AutoPostBack="false" Text="svg">
                                </telerik:RadButton>
                            </div>
                            <br />
                            <telerik:RadButton ID="optExportAll" runat="server" ButtonType="ToggleButton" Style="z-index: 999999" Checked="False" GroupName="ExportType" OnClientCheckedChanged="optExportAll_CheckedChanged"
                                ToggleType="Radio" AutoPostBack="false" Text="Export All Activities (.pdf)">
                            </telerik:RadButton>
                            <div style="margin-left: 20px;">
                                <asp:Label ID="lblPageSize" runat="server" Text="Page Size:" ToolTip="Select the page size to which the diagram should be rendered"></asp:Label>
                                <telerik:RadComboBox ID="ddlPageSize" runat="server" Width="80px" ZIndex="7002" ToolTip="Select the page size to which the diagram should be rendered">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Legal" Value="Legal" />
                                        <telerik:RadComboBoxItem Text="Letter" Value="Letter" Selected="True" />
                                        <telerik:RadComboBoxItem Text="A3" Value="A3" />
                                        <telerik:RadComboBoxItem Text="A4" Value="A4" />
                                    </Items>
                                </telerik:RadComboBox>
                                   
                        <telerik:RadButton ID="optLandscape" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
                            Text="Landscape" AutoPostBack="false" GroupName="orientation"
                            Checked="true">
                        </telerik:RadButton>
                                <telerik:RadButton ID="optPortrait" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
                                    Text="Portrait" AutoPostBack="false" GroupName="orientation"
                                    Checked="false">
                                </telerik:RadButton>
                            </div>
                            <br />
                            <asp:Label ID="Label5" runat="server" Text="File Name:"></asp:Label>
                            <telerik:RadTextBox ID="txtExportFileName" Width="400px" runat="server" Text="" onkeyup="this.value=this.value.replace(/[\W]/g,'_');"></telerik:RadTextBox>
                            <asp:Label ID="lblFileSuffix" runat="server" Text=".png"></asp:Label>
                        </div>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

<div id="divFooter" class="footer">
    <table width="100%">
        <tr>
            <td style="width: 30%; text-align: left;">
                <asp:LinkButton ID="lnkPrivacy" runat="server" Style="text-decoration: underline;
                    color: White;" OnClientClick="openPrivacyWindow();return false;">Privacy Policy</asp:LinkButton>
            </td>
            <td style="width: 40%; text-align: center;">
                <asp:Label ID="lblCopyright" runat="server" Text="©Consulting-Portalâ„¢ Inc., all rights reserved"></asp:Label>
            </td>
            <td style="width: 30%; text-align: right;">
                <asp:Label ID="lblLastMod" runat="server" OnPreRender="lblLastMod_PreRender"></asp:Label>
            </td>
        </tr>
    </table>
</div>
.footer
{
    position: fixed;
    bottom: 0px;
    left: 8px;
    right: 8px;
    height: 22px;
    margin-top: 2px;
    padding-left: 5px;
    padding-right: 5px;
    font-family: Calibri;
    color: White;
    background-color: #15597A;
}
Danail Vasilev
Telerik team
 answered on 19 Aug 2015
4 answers
148 views
I have a raddropdowntree that i'm using to display a list of location with the floors in each location. The user can click on either the location or the floor and submit the form. Some locations either don't have floors or we don't know what floors exist so we have to allow for just the location but if we do have the floors identified, we want to be able to select those too. The floors and locations come from two different database tables, each with their own IDs. The ID of a floor might be the same as the ID of a location in the database. Is there any way to know if I've selected a parent or a child in the raddropdowntree? If it's a parent, it's a location but if it's a child, it's a floor (always). How would I determine what level the selected item is at?
Plamen
Telerik team
 answered on 19 Aug 2015
2 answers
92 views

Hi

 I have a TileList that consists of 3 groups (yesterday, today, tomorrow) displayed horizontally, each with a group header tile. 'Yesterday' is on the left, 'Today' is center, 'Tomorrow' is on the right.  I want to scroll horizontally to the 'today' group on pageLoad. Anchors don't seem to work or only vertically. Any ideas how to accomplish this?

Thank you

rugydp
Top achievements
Rank 1
 answered on 19 Aug 2015
5 answers
73 views

Hi all,

I have 2 differents ways to create grids in my asp.net page, in aspx and programmatically, so 4 of those grids are programatically because the numbers of columns are dynamic and other 4 has static columns so i defined in aspx.

There is some incompatibility with this?, the static grids lose the events, i have a delete command an never fires if there is some code in Page_Init event, if i comment that code, the events works,

 

Thanks

Eyup
Telerik team
 answered on 19 Aug 2015
3 answers
110 views

I have a FormView in the main page.  A button would allow me to do some processing and then bind a new datasource to the FormView.

I couldn't get it to work though.  I am wondering is it because the formview is sitting in one AjaxPanel while the RadWindow has its own AjaxPanel.  I tried to use AjaxManager but same thing.

 Any sample would be appreciated.

 Thanks

Danail Vasilev
Telerik team
 answered on 19 Aug 2015
4 answers
169 views
I wonder if someone could help me solve this issue:

I need to have a Datalist (for layout purposes etc.) inside a RadGrid in a Parent/Child relationship.

Hi,

For some reason the parent/child link does not quite work for me. In the Northwind database when I click on say OrderID 10248 -it also populates the order details of OrderID 10248 to all the other OrderID's (i.e. 10249, 10250 etc.). What I am doing wrong...?

Thanks in advance!

/J

The sample code is included below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
 
<%@ 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">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI"
                Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <div>
         
        <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"
            DataSourceID="SqlDataSource1" GridLines="None">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID"
                DataSourceID="SqlDataSource1">
 
<ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="OrderID"
                    MasterKeyField="OrderID" />
                    </ParentTableRelation>
    <NestedViewTemplate>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="OrderID"
            DataSourceID="SqlDataSource2">
            <ItemTemplate>
                OrderID:
                <asp:Label ID="OrderIDLabel" runat="server" Text='<%# Eval("OrderID") %>' />
                <br />
                ProductID:
                <asp:Label ID="ProductIDLabel" runat="server" Text='<%# Eval("ProductID") %>' />
                <br />
                UnitPrice:
                <asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
                <br />
                Quantity:
                <asp:Label ID="QuantityLabel" runat="server" Text='<%# Eval("Quantity") %>' />
                <br />
                Discount:
                <asp:Label ID="DiscountLabel" runat="server" Text='<%# Eval("Discount") %>' />
                <br />
<br />
            </ItemTemplate>
        </asp:DataList>
    </NestedViewTemplate>
     
    <NestedViewSettings DataSourceID="SqlDataSource2">
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="OrderID"
                MasterKeyField="OrderID" />
        </ParentTableRelation>
    </NestedViewSettings>
 
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32"
            FilterControlAltText="Filter OrderID column" HeaderText="OrderID"
            ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CustomerID"
            FilterControlAltText="Filter CustomerID column" HeaderText="CustomerID"
            SortExpression="CustomerID" UniqueName="CustomerID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmployeeID" DataType="System.Int32"
            FilterControlAltText="Filter EmployeeID column" HeaderText="EmployeeID"
            SortExpression="EmployeeID" UniqueName="EmployeeID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime"
            FilterControlAltText="Filter OrderDate column" HeaderText="OrderDate"
            SortExpression="OrderDate" UniqueName="OrderDate">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="RequiredDate" DataType="System.DateTime"
            FilterControlAltText="Filter RequiredDate column" HeaderText="RequiredDate"
            SortExpression="RequiredDate" UniqueName="RequiredDate">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShippedDate" DataType="System.DateTime"
            FilterControlAltText="Filter ShippedDate column" HeaderText="ShippedDate"
            SortExpression="ShippedDate" UniqueName="ShippedDate">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipVia" DataType="System.Int32"
            FilterControlAltText="Filter ShipVia column" HeaderText="ShipVia"
            SortExpression="ShipVia" UniqueName="ShipVia">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Freight" DataType="System.Decimal"
            FilterControlAltText="Filter Freight column" HeaderText="Freight"
            SortExpression="Freight" UniqueName="Freight">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipName"
            FilterControlAltText="Filter ShipName column" HeaderText="ShipName"
            SortExpression="ShipName" UniqueName="ShipName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipAddress"
            FilterControlAltText="Filter ShipAddress column" HeaderText="ShipAddress"
            SortExpression="ShipAddress" UniqueName="ShipAddress">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipCity"
            FilterControlAltText="Filter ShipCity column" HeaderText="ShipCity"
            SortExpression="ShipCity" UniqueName="ShipCity">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipRegion"
            FilterControlAltText="Filter ShipRegion column" HeaderText="ShipRegion"
            SortExpression="ShipRegion" UniqueName="ShipRegion">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipPostalCode"
            FilterControlAltText="Filter ShipPostalCode column" HeaderText="ShipPostalCode"
            SortExpression="ShipPostalCode" UniqueName="ShipPostalCode">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipCountry"
            FilterControlAltText="Filter ShipCountry column" HeaderText="ShipCountry"
            SortExpression="ShipCountry" UniqueName="ShipCountry">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT * FROM [Orders]"></asp:SqlDataSource>
 
        <asp:SqlDataSource ID="SqlDataSource2" runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT OrderID, ProductID, UnitPrice, Quantity, Discount FROM [Order Details] WHERE (OrderID = @OrderID)">
            <SelectParameters>
                <asp:Parameter Name="OrderID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>



Eyup
Telerik team
 answered on 19 Aug 2015
1 answer
152 views

Hello,

 

I am having trouble programmatically accessing a DataList control from within a NestedViewTemplate. I need to be able to pass a parent-grid data key item to an SQL connection and then data bind the results to the DataList in the code-behind. However, I am unable to find the DataList control and bind to it. Do you have any relevant information to assist me?

 

Thanks,

Bethany

Eyup
Telerik team
 answered on 19 Aug 2015
3 answers
143 views

Hi,

     I've specific set of requirements for Bubble Chart. How can I add average X and Y lines to bubble chart as shown in the attached image. Is this something possible in Telerik HTML Chart? Is there a hack which can draw these average lines.

Thanks

MT

 

Danail Vasilev
Telerik team
 answered on 19 Aug 2015
1 answer
100 views

I did this using your this answer .......
But I try to implement update functionality like below 

 

    transport : {
                        update: {
                           
                            url: function (item) {
                               
                                return "myURL" + item.id;
                            },
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",
                            type: "put"
                        }
                    }

 

But when I press update button It did not trigger  the update function..

Where should I look at ??

 

Thank you

 

Boyan Dimitrov
Telerik team
 answered on 19 Aug 2015
1 answer
92 views

I have a master view with two child views.  I would like to have command buttons on the master row which cause an expand to happen to one or the other child tables.  When I handle the ItemCommand event, I hide set all detail tables to Visible=False but they are still visible on the output.

I've tried setting the expanded and visibility of the detail tables right within the ItemCommand event like this:

 

if (e.CommandName == "ExpandSomething")
{
    item.Expanded = true;
    foreach (var table in MyGrid.MasterTableView.DetailTables)
        if (table.Name != "Something")
            table.Visible = false;
}
 

Then I thought maybe the hiding needed to be done later in the event cycle so I tried it like this: 

 

private string _activeChildView = null;
protected void ShowSingleChildTable(string name) //this is called from item command
{
    _activeChildView = name;
}
 
private void Page_PreRender(object sender, EventArgs e)
{
    if (_activeChildView != null)
        foreach (var table in AdminGrid.MasterTableView.DetailTables)
            if (table.Name != _activeChildView)
                table.Visible = false;
}

Neither way works - both grids are always visible.

In playing around with different events, I've found that the DataBinding event is the only place that setting the visibility to false works, but unfortunately that fires before the ItemCommand so I can't figure out if a detail button was pressed.

Kostadin
Telerik team
 answered on 19 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?