Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hello,

I'm trying to embed the rotator as mentioned in the telerik examples, but it is not fading the images. The images are moving from right to left and they are not performing the fade effect even the sample is copy paste from the telerik samples.

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<head runat="server">
    <title></title>
     <style type="text/css">
        .rotatorBackground
        {
            float: left;
            margin-left: 50px;
            margin-top: 10px;
            width: 440px;
            height: 185px;
            border: solid 2px #dedede;
            -moz-border-radius: 15px;
            -webkit-border-radius: 15px;
        }
        .rotatorStyle
        {
            margin: 40px auto 0px;
        }
        .rotatorStyle .RotatorItem
        {
            margin:5px;
            height: 100px;
            width: 100px;
        }
        .rotatorCarouselStyle
        {
            margin: 0px auto;
        }
        .RotatorItem
        {
            border: solid 1px #dff3ff !important;
        }
        .mainDiv
        {
            margin-bottom: 20px;
        }
        .configurationPanel
        {
            width: 290px;
            border: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
      
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="Server" Transparency="30"
        EnableSkinTransparency="false" BackColor="#E0E0E0">
    </telerik:RadAjaxLoadingPanel>
     
    <telerik:RadAjaxPanel ID="AjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
        <div class="mainDiv">
            <div class="rotatorBackground">
                
                <telerik:RadRotator ID="RadRotator1" runat="server" Width="224px" Height="112px"
                    CssClass="rotatorStyle" ItemHeight="112" ItemWidth="112" 
                    SlideShowAnimation-Type="Fade" SlideShowAnimation-Duration="3000"  >
                    <Items>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image" ImageUrl='Img/Northwind/Customers/Thumbs/ANATR.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image1" ImageUrl='Img/Northwind/Customers/Thumbs/ANTON.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image2" ImageUrl='Img/Northwind/Customers/Thumbs/BOTTM.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/CACTU.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/CENTC.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/ERNSH.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/LAUGB.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/MAISD.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/MEREP.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/OCEAN.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                    </Items>
                </telerik:RadRotator>
            </div>
        </div>
    </telerik:RadAjaxPanel>
  
    </form>
</body>
</html>

Thanks for your help
Mike_T
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
84 views
hi,

how to hide parent radwindow behaviours when open child radwindow in javascript and how to enable parnet radwindow behaviour when close child radwindow


regards,
asiq
Marin Bratanov
Telerik team
 answered on 03 Jun 2011
5 answers
468 views
Hi
I'm using a hierarchical grid. In one of them I defined columns but all of them is set to visible = false. All of these columns I binded manualy in nested view template. The grid have just one row. Nested view template is automaticaly expanded. I want to place the edit and the delete button onto view template instead to having them in column (e. g. GridEditCommandColumn). Is this possible ?

I'm using this because I don't want to loose the automatic update delete and insert abilities.

Thank you very much.

Tibor
Princy
Top achievements
Rank 2
 answered on 03 Jun 2011
10 answers
256 views
Hello every one,


How to find control in ,
But One thing that radlist box in EditFormSettings,
That why how i find that controls.
Reply As soon As possible

 protected void RadListBoxSourceGroup_Transferred(object sender, Telerik.Web.UI.RadListBoxTransferredEventArgs e)
        {
            RadListBox SelectedList = (RadListBox)FindControl("RadListBoxDestinationGroup");
            foreach (RadListBoxItem item in SelectedList.Items)
            {
                Response.Write(item.Attributes["myId"]); // get the third value
            }
        }


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
110 views
1. I have a general layout like this (see below). What happens is when i click on content1 or 2 pane they slide open but they DONT fill up 100% of the width of "LeftPane", unstead they open in a small slice about 200px it looks like. If I explicitly change content1 width to be like 700px then it opens bigger, but i want to use percentage to fill in 100% of "LeftPane". How can i get percentages to work?

2. Say i make CONTENT1 docked and open on load. (expandedpaneid=content1 and dockonopen=true). How can I totally prevent the user from ever undocking ie closing that pane. Such that CONTENT2 will just slide open overtop content1 but CONTENT1 can never be closed or undocked?


<telerik:RadSplitter ID="RadSplitter1" runat="server" skin="vista" Width="100%">
   <telerik:RadPane ID="LeftPane" runat="server" Scrolling="None" Width="58%">
 
      <telerik:RadSlidingZone ID="Zone1" runat="server" Width="22px" ClickToOpen="true">
            <telerik:RadPane ID="Expanding_CONTENT1" Title="Pane1" runat="server" Scrolling="None" Width="100%" >    
            </telerik:RadPane>
            <telerik:RadPane ID="Expanding_CONTENT2" Title="Pane1" runat="server" Scrolling="None" Width="100%" >    
            </telerik:RadPane>
      </telerik:RadSlidingZone>
 
  </telerik:RadPane>
 
  <telerik:RadSplitBar runat="server" ID="SplitBar1" CollapseMode="Both" />
 
  <telerik:RadPane ID="RightPane_AlwaysOpen" runat="server" Scrolling="None" Width="38%">
  </telerik:RadPane>
 
</telerik:RadSplitter>


UPDATE: Did some more testing and the layout/sizing is actually all correct as long as I don't use ExpandedPaneId or Dock any Panes. As soon as i dock something or set expandedpaneid then the size of the left pane jumps to a small window and the right pane takes up most of the screen. (not the behavior i want)

Another Issue i noticed is resizing the browser doesn't resize Panes? why is this? The radgrid and all the other controls i have used automatically resize if i resize the browser but the above layout does not resize at all - unless i reload the page


THANKS
jason
Dobromir
Telerik team
 answered on 03 Jun 2011
5 answers
194 views
Hello,

I have a radGrid inside a XmlHttpPanel and when I call panel.set_value() I am getting the following error:

XmlHttpPanel Callback Loading error:
Exception=Script control 'rfltMenu' is not a registered script control.
Script controls must be registered using RegisterScriptControl() before
calling RegisterScriptDescriptors().
Parameter name: scriptControl


I have downloaded and installed the latest build ( 2009_2_927) which seems to have fixed a similar error I was getting before with the GoToPageTextBox. 

Thanks

Ernie
Pero
Telerik team
 answered on 03 Jun 2011
4 answers
123 views
Hi,
I'm using Telerik version 2009.31208.20. I have a master page in which I put some windows in a radwindow manager and an OnClientClose javascript function that is invoked when a window is open then closed in the content page. This scenario works perfectly.
However,
I have placed in the  content page 3 radtextbox (change pass word form),. After entering the  old and new password, I clic on a validate button to send the form and change the password. This works fine in all web navigators except in Google Chrome: some times and at random way, when I clic on the validate button i get the "try to enter your old passwold" and the radtextbox is cleared (an empty string is sent to the server). When I debug javascript in the page, this error is shown: erreur javascript :"OnClientClose is not defined : $create(Telerik.Web.UI.RadWindow, ...get("ctl00_frmCoordonneesPostale"));".
Thanks.
here the master page source code:
 <telerik:RadWindowManager ID="RadWindowManager1" Skin="WebBlue" runat="server" Behaviors="Close, Move" 
        Modal="True" ReloadOnShow="True" ShowContentDuringLoad="False" OnClientClose="OnClientClose" 
        InitialBehaviors="Close"
        <Windows> 
            <telerik:RadWindow ID="frmCoordonneesPostale" runat="server" Title="<%$ Resources:Labels, SubSpacefrmCoordonneesPostaleTitle %>" 
                DestroyOnClose="False" Height="510px" KeepInScreenBounds="True" VisibleStatusbar="false" 
                Width="575px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" OnClientClose="OnClientClose" /> 
            <telerik:RadWindow ID="frmMsg" runat="server" Title="<%$ Resources:Labels, SubSpacefrmMsgTitle %>" 
                DestroyOnClose="False" Height="534px" KeepInScreenBounds="True" VisibleStatusbar="false" OnClientClose="OnClientClose" 
                Width="575px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" /> 
            <telerik:RadWindow ID="frmConfirmRegister" runat="server" Title="confimation" DestroyOnClose="False" Height="200px" KeepInScreenBounds="True" VisibleStatusbar="false" OnClientClose="OnClientClose" 
                    Width="570px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" /> 
        </Windows> 
    </telerik:RadWindowManager> 
<script type="text/javascript"
 function OnClientClose(radWindow) { 
            if (radWindow.Argument != null & radWindow.Argument == 'ConfirmMessage') { 
                radWindow.Argument = null
                if (radWindow._name == 'frmCoordonneesPostale') { 
                    $find("<%= RadToolTip1.ClientID %>").show();                     
                    return; 
                } 
                if (radWindow._name == 'frmMsg') { 
                    $find("<%= RadToolTip2.ClientID %>").show(); 
                    return; 
                } 
            } 
            if (radWindow._name == 'frmConfirmRegister') { 
                document.location.href = "login.aspx";  
            } 
        } 
............... 
 </script> 
 

Here the content page source code (change password form):
<asp:UpdatePanel runat="Server" ID="UpdatePanel1"
                        <ContentTemplate>
                                    <table cellspacing="2" cellpadding="2" border="0" width="100%" style="position: relative; 
                                left: 21px; z-index: 1000;"> 
                                <tr> 
                                    <td colspan="2"
                                        <span class="repliB" id="ChangePwd"><span class="changePassword" onclick="cacherMontrerB('ChangePwdContent','ChangePwd')"
                                            <img src="Images/pixel.gif" width="13" height="13" alt="puce" class="puceTriangleB" 
                                                style="cursor: pointer" /> 
                                            <asp:Label ID="lbChangePassword" runat="server" Style="cursor: pointer"><% =Resources.Labels.SubSpaceTdChangePassword%></asp:Label> 
                                        </span><span id="ChangePwdContent" class="listeCache listeItems"
                                            <table id="tblChangePwdDefaultMessage" runat="server" Visible="True" cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px"
                                            <tr style="vertical-align: text-top;height: 70px"
                                                    <td colspan="2" style="text-align: right"
                                                        <asp:Label runat="server" ID="MsgInfoDefaultModifPwd" Text="<%$ Resources:Labels, MsgInfoDefaultModifPwd %>" CssClass="MsgInfoDefaultModifPwd"/> 
                                                    </td> 
                                            </tr> 
                                            </table>        
                                            <table cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px"
                                                <tr style="vertical-align: text-top"
                                                    <td style="text-align: right"
                                                        <span class="classTitleMember"
                                                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Labels, SubSpaceTdTapeOldPassword %>"></asp:Label></span
                                                    </td> 
                                                    <td style="text-align: right"
                                                        <telerik:RadTextBox ID="tbxOldPwd" runat="server" ValidationGroup="ChangePassword" 
                                                            CssClass="classTbx" Skin="WebBlue" TextMode="Password" Width="160px"
                                                        </telerik:RadTextBox> 
                                                    </td> 
                                                </tr> 
                                                <tr style="vertical-align: text-top"
                                                    <td style="text-align: right"
                                                        <asp:Label ID="Label9" CssClass="classTitleMember" runat="server" Text="<%$ Resources:Labels, SubSpaceTdTapeNewPassword %>"></asp:Label> 
                                                    </td> 
                                                    <td style="text-align: right"
                                                        <telerik:RadTextBox ID="tbxNewPwd" runat="server" CssClass="classTbx" Skin="WebBlue" 
                                                            ValidationGroup="ChangePassword" TextMode="Password" Width="160px"
                                                        </telerik:RadTextBox> 
                                                    </td> 
                                                </tr> 
                                                <tr style="vertical-align: text-top"
                                                    <td style="text-align: right"
                                                        <asp:Label ID="Label2" CssClass="classTitleMember" runat="server" Text="<%$ Resources:Labels, SubSpaceTdConfirmPassword %>"></asp:Label> 
                                                    </td> 
                                                    <td style="text-align: right"
                                                        <telerik:RadTextBox ID="tbxConfirmNewPwd" runat="server" CssClass="classTbx" Skin="WebBlue" 
                                                            ValidationGroup="ChangePassword" TextMode="Password" Width="160px"
                                                        </telerik:RadTextBox> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                            <table cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px">                                                 
                                                <tr style="vertical-align: text-top"
                                                    <td style="text-align: right"
                                                    </td> 
                                                    <td style="text-align: right"
                                                        <asp:Button UseSubmitBehavior="false" CssClass="classebouton" ID="btnChangePassword" runat="server" Text="<%$ Resources:Labels, SubSpacebtnValidate %>" 
                                                           OnClick="btnChangePassword_Click" Width="165px" ValidationGroup="ChangePassword"
                                                        </asp:Button> 
                                                    </td> 
                                                </tr> 
</table>
............ 
  </ContentTemplate> 
  </asp:UpdatePanel> 


Georgi Tunev
Telerik team
 answered on 03 Jun 2011
3 answers
86 views
  1. I am trying to add/delete rows using on client(webmethods), but when the last row is deleted the

CommandItemDisplay is also getting deleted. 


2. Also the grid layout is changing when a row is deleted/added.
3. The Databinder expression for the years attended column does not work after rebind.

can you please point out the problems from the code below


Class:
 
public class Education
{
    #region Private fields
    private int? _ID;
    private string _Degree;
    private string _Program;
    private string _School;
    private DateTime _From;
    private DateTime _To;
    #endregion
 
    #region Constructors
    public Education()
    {
    }
    public Education(int ID, string Degree, string Program, string School, DateTime  From, DateTime  To)
    {
        this._ID = ID;
        this._Program = Program;
        this._Degree = Degree;
        this._School = School;
        this._From = From;
        this._To = To;
    }
    #endregion
 
    #region Public properties
 
    public int? ID
    {
        get
        {
            return this._ID.Value;
        }
        set
        {
            if ((this._ID != value))
            {
                this._ID = value;
            }
        }
    }
 
    public string Degree
    {
        get
        {
            return this._Degree;
        }
        set
        {
            if ((this._Degree != value))
            {
                this._Degree = value;
            }
        }
    }
 
    public string Program
    {
        get
        {
            return this._Program;
        }
        set
        {
            if ((this._Program != value))
            {
                this._Program = value;
            }
        }
    }
 
    public string School
    {
        get
        {
            return this._School;
        }
        set
        {
            if ((this._School != value))
            {
                this._School = value;
            }
        }
    }
 
 
    public DateTime From
    {
        get
        {
            return this._From;
        }
        set
        {
            if ((this._From != value))
            {
                this._From = value;
            }
        }
    }
 
    public DateTime To
    {
        get
        {
            return this._To;
        }
        set
        {
            if ((this._To != value))
            {
                this._To = value;
            }
        }
    }
 
    #endregion
}
 
ASPX:
 
  <telerik:RadGrid ID="RadGrid1" Width="489px" runat="server" Skin="Windows7"
                                            OnDataBound="RadGrid1_DataBound" OnItemCreated="RadGrid1_ItemCreated"
                                            OnPreRender="RadGrid1_PreRender">
                                            <MasterTableView CommandItemDisplay="Bottom" AutoGenerateColumns="False" CommandItemSettings-ShowRefreshButton="False"
                                                HeaderStyle-CssClass="gridHeader" CommandItemSettings-AddNewRecordText="Add"
                                                DataKeyNames="ID" ClientDataKeyNames="ID" ShowHeadersWhenNoRecords="true">
                                                <Columns>
                                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
                                                        <ItemStyle />
                                                        <HeaderStyle Width="1%" HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridEditCommandColumn>
                                                    <telerik:GridTemplateColumn UniqueName="ID" HeaderText="ID" ItemStyle-Width="1px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LblID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'> ></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="0%" HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="Degree" HeaderText="Degree" ItemStyle-Width="80px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDegree" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Degree") %>'> ></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="12%" HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="Program" HeaderText="Program" ItemStyle-Width="80px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblProgram" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Program") %>'>></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="30%" HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="School" HeaderText="School" ItemStyle-Width="80px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSchool" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "School") %>'>></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="37%" HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="YearsAttended" HeaderText="Years" ItemStyle-Width="80px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFrom" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "From","{0:yyyy}") + " - " + DataBinder.Eval(Container.DataItem, "To","{0:yyyy}") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="23%" HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn">
                                                        <HeaderStyle Width="1%" HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </telerik:GridButtonColumn>
                                                </Columns>
                                                <CommandItemTemplate>
                                                    <div style="padding-top: 3px; margin-top: 3px;">
                                                        <asp:LinkButton Style="vertical-align: bottom" ID="btnAddEducation" runat="server"
                                                            OnClientClick="return showEditEducation('Add');">
                                                   <img alt ="" src="Images/AddRecord.gif" style="border:0px;padding-left:2px;padding-right:5px;margin-top:0px;margin-top:-5px;"/>Add</asp:LinkButton>
                                                    </div>
                                                </CommandItemTemplate>
                                            </MasterTableView>
                                            <ClientSettings>
                                                <Selecting AllowRowSelect="true" />
                                                <ClientEvents OnRowSelected="rowSelected" />
                                                <Scrolling UseStaticHeaders="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>
 
 
Code Behind:
 
  protected void Page_Load(object sender, EventArgs e)
{
 educationList = new List<Education>();
        educationList.Add(new Education(0, "X", "General", "stanford", Convert.ToDateTime("1/1/1988"), Convert.ToDateTime("1/1/2000")));
  educationList.Add(new Education(0, "X", "General", "stanford", Convert.ToDateTime("1/1/1988"), Convert.ToDateTime("1/1/2000")));
  educationList.Add(new Education(0, "X", "General", "stanford", Convert.ToDateTime("1/1/1988"), Convert.ToDateTime("1/1/2000")));
  educationList.Add(new Education(0, "X", "General", "stanford", Convert.ToDateTime("1/1/1988"), Convert.ToDateTime("1/1/2000")));
  RadGrid1.DataSource = educationList;
        RadGrid1.DataBind();
}
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
             ((ImageButton)item["DeleteColumn"].Controls[0]).Attributes.Add("onclick", "deleteCurrent('" + item.ItemIndex + "');return false;");
        }
}
 
 
JavaScript:
 
 function deleteCurrent(index) {
                                    var grid = $find("<%= RadGrid1.ClientID %>");
                                    var MasterTable = grid.get_masterTableView();
                                    var row = MasterTable.get_dataItems()[index];
                                    id = row.getDataKeyValue("ID") //access DataKeyValue
                                    if (id != null) {
                                    PageMethods.DeleteEducationByID(id, updateGrid);
                                    }
                                    return false;
                                }
 
 
 
                                function updateGrid(result) {
                                    var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                                    if (result != null) {
                                        tableView.set_dataSource(result);
                                        tableView.dataBind();
                                        var grid = $find("<%= RadGrid1.ClientID %>");
                                        grid.repaint();
                                    }
                                }
Vasil
Telerik team
 answered on 03 Jun 2011
1 answer
76 views

Hello,

I'm trying to create a reusable server control that will act as a "Help control" - it will render an image (or an image button) and will display a rich tooltip after clicking (or hovering) containing some help-related data. Since there can be a lot of content in the tooltip and there can be many of these controls on the page I would like to load the content only on demand - for instance from a Web Service.

I know that RadToolTip itself has no support for loading content from Web Service - I have to use RadToolTipManager or handle loading data on my own and use RadToolTip. What will be the best way (considering the performace and reusability) to achieve this : 

1. Each Help control creates a RadToolTipManager for itself

2. Assume that there is one RadToolTipManager (for instance in master page) and use it to display tooltips. (But how to access it since there is no RadToolTipManagerProxy)

3. Each Help control creates an empty RadToolTip for itselft, loads the content from web service on its own and when its loaded uses RadToolTip client side API to fill the tooltip with the content and show it.

Or maybe there is a better solution ?

Regards,

Jacek Toren

Svetlina Anati
Telerik team
 answered on 03 Jun 2011
1 answer
533 views
Hai,

This is my code :

<

 

telerik:RadWindow ID="RadWindowPopup" Width="1100px" Height="750px" Modal

="true"

 

 

 

Left="0" Top="0" EnableShadow="true" DestroyOnClose="true" Visible="true" Behaviors

="Close"

 

 

 

VisibleOnPageLoad="false" runat="server" Title="Local Item Request" Skin

="Web20">

 

 

 

</telerik:RadWindow

>

But it is showing in the default size(small window). I tried with only width and height , not giving other options. But still the same. Also, title is not the one which is given. Showing the pagename( of the page called in radwindow) as title.

Also, I have given only Close as Behaviors. But it is showing all Behaviors (Resize, Minimize, Close, Maximize, Move ) in the popup window.

I want a quick reply.

 

 

Shinu
Top achievements
Rank 2
 answered on 03 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?