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

Hi

            I amhaving radgrid which has NestedGrid also. I would like to see my row is beingselected when invoking edit and close the editpopup window. So that the clientcan be known what row is selected after coming back from updating or closingthe PopUp window?

I used the below scenarios, it is working fine with singlegrid. But in nested grid suppose I expanded two parent items in order to edittheir child items. I could not able to save the state of row after theoperation has been done.

if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
                    { 
                        if (!e.Item.OwnerTableView.IsItemInserted) 
                        { 
                            Session["selIndex"] = e.Item.ItemIndex; 
                        } 
                        e.Item.Selected = true; 
                        isSelected = true; 
                    } 
 

protected void RadChild1_PreRender(object sender, EventArgs e) 
        {  
            if (!isSelected && Session["selIndex"] != null) 
            { 
                RadChild1.MasterTableView.Items[(int)Session["selIndex"]].Selected = true; 
                Session["selIndex"] = null; 
            } 
            isSelected = false; 
        } 

Shinu
Top achievements
Rank 2
 answered on 19 Apr 2010
4 answers
170 views
Hi,
your example "Scrolling to the selected item" works fine in IE but not in Firefox. You see the selected Row a short time - then the cursor jumps to the top.
Could it be, that another  function "disturbs" this action in Firefox?

Regards,
Andreas
BaiH
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
78 views
Hi,
I am working with Telerik and playing around with widgets. IN the Grids, I am using CustomPaging and created a new paging style. I can make it appear on top and bottom of the grid using Position="TopAndBottom". BUt if I want a different paging style on top and different paging style on bottom,i,e say "Numeric" on top and "custom Paging" on bottom, is it possible?If yes, how?
Maria Ilieva
Telerik team
 answered on 19 Apr 2010
1 answer
128 views
I can not use a radchart in my panel.
I want to use three radchart in a panel.But the radchart is always on the top of the panel,not in the panel.

The scrollbar can not control the radchart.
I am using IE7.0,8.0.It is no problem in Firefox and Chrome.


Thanks.
Ves
Telerik team
 answered on 19 Apr 2010
1 answer
121 views
I can not use a radchart in my panel.
I want to use three radchart in a panel.But the radchart is always on the top of the panel,not in the panel.
The scrollbar of the panel can not control the radchart.
I am using IE7.0 and IE8.0. There is no problem in Firefox and Chrome.

The code is below.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testchart.aspx.cs" Inherits="Web.testchart" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" 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>
    <script type="text/javascript">
   
      function pageLoad() {
      }
   
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
  
  </telerik:RadScriptManager>
 <telerik:RadWindowManager runat="server" ID="RadWindowManager1">
 </telerik:RadWindowManager>
    <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheet1" />
 <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="Default,Zone" />
    <asp:Panel ID="Panel1" runat="server" ScrollBars="Both" Width="600" Height="300">
    <telerik:RadChart ID="RadChartx1" runat="Server" Width="495px" AutoLayout="true" Skin="Mac">
                        <ClientSettings ScrollMode="Both" />
                        <Series>
                            <telerik:ChartSeries  Type="Line">
                            </telerik:ChartSeries>
                        </Series>
                        <Legend Visible="false"></Legend>
                        <ChartTitle TextBlock-Text="Zooming / Scrolling (no initial scaling)">
                        </ChartTitle>
                    </telerik:RadChart>
                    <telerik:RadChart ID="RadChartx2" runat="Server" Width="495px" AutoLayout="true" Skin="Mac">
                        <ClientSettings ScrollMode="Both" />
                        <Series>
                            <telerik:ChartSeries  Type="Line">
                            </telerik:ChartSeries>
                        </Series>
                        <Legend Visible="false"></Legend>
                        <ChartTitle TextBlock-Text="Zooming / Scrolling (no initial scaling)">
                        </ChartTitle>
                    </telerik:RadChart>
                    <telerik:RadChart ID="RadChartx3" runat="Server" Width="495px" AutoLayout="true" Skin="Mac">
                        <ClientSettings ScrollMode="Both" />
                        <Series>
                            <telerik:ChartSeries  Type="Line">
                            </telerik:ChartSeries>
                        </Series>
                        <Legend Visible="false"></Legend>
                        <ChartTitle TextBlock-Text="Zooming / Scrolling (no initial scaling)">
                        </ChartTitle>
                    </telerik:RadChart>
    </asp:Panel>
    </form>
</body>
</html>

 



THANKS.

Ves
Telerik team
 answered on 19 Apr 2010
1 answer
122 views

I'm trying to create a hierarchical grid with 3 levels.

I get these 3 levels, but on the child levels I get all data, so the parent/child view relations seem to be ignored, what am i doing wrong?

Thanks in advance.

Martin

<%@ Page Title="" Language="C#" MasterPageFile="~/PresentationLayer/MyProject.Master" AutoEventWireup="true" CodeBehind="AA.aspx.cs" Inherits="Projects.MyProject.PresentationLayer.AA" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.DataSourceControls" tagprefix="ig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lblPageTitle" runat="server" CssClass="pagetitle" Text="Telerik (Grid)"
        Height="50px" Width="100%"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder" runat="server">

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

 <telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" ShowStatusBar="true" DataSourceID="ObjectDataSource1"
            runat="server" AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AllowMultiRowSelection="False"
            AllowPaging="True" GridLines="None">
            <PagerStyle Mode="Advanced"></PagerStyle>
            <MasterTableView DataSourceID="ObjectDataSource1" DataKeyNames="EnvironmentType" AllowMultiColumnSorting="True">
                <DetailTables>
                    <telerik:GridTableView DataKeyNames="OrganizationID, EnvironmentType" DataSourceID="ObjectDataSource2" Width="100%"
                        runat="server">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="EnvironmentType" MasterKeyField="EnvironmentType" />
                        </ParentTableRelation>
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="OrganisationID, EnvironmentType" DataSourceID="ObjectDataSource3" Width="100%"
                                runat="server">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="OrganisationID" MasterKeyField="OrganizationID" />
                                    <telerik:GridRelationFields DetailKeyField="EnvironmentType" MasterKeyField="EnvironmentType" />
                                </ParentTableRelation>
                                <Columns>
                                    <telerik:GridBoundColumn SortExpression="LocatieID" HeaderText="LocatieID" HeaderButtonType="TextButton"
                                        DataField="LocatieID" UniqueName="LocatieID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="Locatiename" HeaderText="Locatiename" HeaderButtonType="TextButton"
                                        DataField="Locatiename" UniqueName="Locatiename">
                                    </telerik:GridBoundColumn>
                                          <telerik:GridBoundColumn SortExpression="OrganisationID" HeaderText="OrganisationID" HeaderButtonType="TextButton"
                                        DataField="OrganisationID" UniqueName="OrganisationID">
                                    </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn SortExpression="EnvironmentType" HeaderText="EnvironmentType" HeaderButtonType="TextButton"
                                        DataField="EnvironmentType" UniqueName="EnvironmentType">
                                    </telerik:GridBoundColumn> 
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <Columns>
                            <telerik:GridBoundColumn SortExpression="OrganizationID" HeaderText="OrganizationID" HeaderButtonType="TextButton"
                                DataField="OrganizationID" UniqueName="OrganizationID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                                DataField="Name" UniqueName="Name"">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="EnvironmentType" HeaderText="EnvironmentType" HeaderButtonType="TextButton"
                                DataField="EnvironmentType" UniqueName="EnvironmentType">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="EnvironmentType" HeaderText="EnvironmentType" HeaderButtonType="TextButton"
                        DataField="EnvironmentType" UniqueName="EnvironmentType">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                        DataField="Name" UniqueName="Name">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>   

    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetLocations"
        TypeName="Projects.MyProject.BusinessLayer.HubEnvironmentDataUniterComponentStatusHDP">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetOrganisations"
        TypeName="Projects.MyProject.BusinessLayer.HubEnvironmentDataUniterComponentStatusHDP">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetEnvironments"
        TypeName="Projects.MyProject.BusinessLayer.HubEnvironmentDataUniterComponentStatusHDP">
        <SelectParameters>
            <asp:SessionParameter Name="envTypeFilter" SessionField="EnvironmentTypeFilter"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
t="server" ID="Footer1"></telerik:Footer>
    </form>
</body>
</html>
--%>

Pavlina
Telerik team
 answered on 19 Apr 2010
2 answers
144 views
I try to load a tooltip after click on a radgrid row, and the first time I click all works fine, but if I close the tooltip and click another row, I'm getting a javascript error

.cs code
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)  
        {  
            this.UpdateToolTip(args.Value, args.UpdatePanel);  
        }  
 
        private void UpdateToolTip(string elementID, UpdatePanel panel)  
        {  
            Control ctrl = Page.LoadControl("CustomerInfo.ascx");  
 
            panel.ContentTemplateContainer.Controls.Add(ctrl);  
            CustomerInfo details = (CustomerInfo)ctrl;  
            details.ProductID = "test";   
        } 

.aspx markup
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
    <telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200" 
            HideDelay="1" ID="RadToolTipManager1" Width="480px" Height="210px" RelativeTo="Element" 
            Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate" Skin="Forest" HideEvent="ManualClose" ManualClose="True" ShowEvent="OnClick"></telerik:RadToolTipManager> 
    <asp:UpdatePanel ID="upUSers" runat="server">  
        <ContentTemplate> 
              
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Hay" MultiPageID="rmpCustomers">  
        <Tabs> 
            <telerik:RadTab runat="server" Selected="true" Text="Lista">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Distribuzione">  
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="rmpCustomers" runat="server" SelectedIndex="0">  
                <telerik:RadPageView ID="RadPageView1" runat="server">  
                    <div class="back_tab">  
                        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                        <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="rgrCustomers" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
 
                        </AjaxSettings> 
                        </telerik:RadAjaxManager> 
                        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">  
                        </telerik:RadAjaxLoadingPanel> 
                        <br /> 
                        <telerik:RadGrid ID="rgrCustomers" runat="server" AllowFilteringByColumn="True"   
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"   
            GridLines="None" Skin="Hay"    
                       PageSize="15" AllowCustomPaging="True"   
                       onpageindexchanged="rgrCustomers_PageIndexChanged" > 
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">  
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <MasterTableView> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn HeaderText="ID" UniqueName="column" DataField="abecod">  
                        <HeaderStyle Width="40px" /> 
                        <ItemStyle Width="40px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Descrizione" UniqueName="column1" DataField="abers1">  
                        <HeaderStyle Width="200px" /> 
                        <ItemStyle Width="200px" /> 
                        </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Località" UniqueName="column2" DataField="abeloc">  
                        <HeaderStyle Width="150px" /> 
                        <ItemStyle Width="150px" /> 
                        </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Indirizzo" UniqueName="column3" DataField="abeind">  
                        <HeaderStyle Width="150px" /> 
                        <ItemStyle Width="2150px" /> 
                        </telerik:GridBoundColumn> 
                </Columns> 
                  
            </MasterTableView> 
                       <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
                </telerik:RadGrid> 

.ascx markup
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomerInfo.ascx.cs" Inherits="GestioneOrdini.CustomerInfo" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<p> 
    Scheda cliente</p> 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="1"   
    Skin="Hay" MultiPageID="RadMultiPage1">  
    <Tabs> 
        <telerik:RadTab runat="server" Text="Dati anagrafici" Selected="True">  
        </telerik:RadTab> 
        <telerik:RadTab runat="server" Text="Elenco contatti">  
        </telerik:RadTab> 
    </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
    <telerik:RadPageView ID="RadPageView1" runat="server">  
    <div> 
        <asp:Label ID="Label1" runat="server" CssClass="etichette" Text="Codice"></asp:Label> 
    </div> 
    <div> 
        <asp:Label ID="Label2" runat="server" CssClass="etichette" Text="Ragione sociale"></asp:Label> 
    </div> 
    <div> 
        <asp:Label ID="Label3" runat="server" CssClass="etichette" Text="Indirizzo"></asp:Label> 
    </div> 
    <div> 
        <asp:Label ID="Label4" runat="server" CssClass="etichette" Text="Località"></asp:Label> 
    </div> 
          
    </telerik:RadPageView> 
    <telerik:RadPageView ID="RadPageView2" runat="server">  
    <div>yyy</div> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 
 

attached the error

thanks
Luca
Top achievements
Rank 1
 answered on 19 Apr 2010
2 answers
51 views
Hi

I just had a problem when insert an hyperlink in the editor. It works perfect when I insert hyperlink in the middle of the text. The problem only happens when I insert the hyperlink in the first of the paragraph. The editor will automatically add &nbsp in front of the text and remove the space after the text.

I've attached the screen shot.

BTW: I use telerik online demo editor to simulate this issue.
Rumen
Telerik team
 answered on 19 Apr 2010
3 answers
152 views
Hi,

I'm having trouble with the positioning of a radtooltip.

I have a page containing a sort of quiz. It has a next and a previous button. To the buttons I add a page validation summary type of function. The summary is created serverside and opened.

My tooltip code looks lite:

    <telerik:RadToolTip runat="server" ID="valSumPop" Animation="None" Skin="Simple" RelativeTo="Element" ShowEvent="FromCode" IsClientID="false" HideEvent="LeaveToolTip">
        <div style="padding: 5px;">
            <asp:Literal runat="server" ID="litValSum" />
        </div>
    </telerik:RadToolTip>

and my serverside code looks something like this:

string btID = ((LinkButton)sender).ID.ToString();
            valSumPop.TargetControlID = btID;
            valSumPop.Width = Unit.Pixel(125);

            string[] valStr = valSumText.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            if (valStr.Length > 0)
            {
                litValSum.Text = guiText.getGuiText("validationText", langId, companyId) + "<br />";

                foreach (string s in valStr)
                {
                    litValSum.Text += s + "<br />";
                }

                valSumPop.Show();
            }

I attached 3 images to illustrate what happens. If I click the next button the tooltip appears below the button and far to the right. It also seems broken. The arrow is directly below the button but offset about 50-100 px.

If the previous button is clicked once then the next button can be clicked and the tooltip is positioned properly.

Does anyone know what causes this?

Thanks

/Christofer


Svetlina Anati
Telerik team
 answered on 19 Apr 2010
1 answer
130 views
Are there plans afoot to develop the TreeListView for ASP.NET AJAX? If so, which release could I expect it?
Sebastian
Telerik team
 answered on 19 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?