Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
I'm trying to ajaxify a button placed in the content template of notification. I use notification to check if there're new post in the thread being viewed by user and display a nofication with a button that will update listview with ajax call when user click button.

<telerik:RadNotification ID="notifyMessage" runat="server"
        LoadContentOn="TimeInterval" Width="250"
        Animation="Fade" EnableRoundedCorners="true" EnableShadow="true"
        Title="Message" OnClientUpdated="OnClientUpdated" Height="90" ContentIcon="none"
        OffsetX="-20" OffsetY="-20" TitleIcon="none" UpdateInterval="10000" AutoCloseDelay="0"
        KeepOnMouseOver="true" ShowCloseButton="true"
        oncallbackupdate="notifyMessage_CallbackUpdate">
       <ContentTemplate>
 
            <div class="center">
                <p>New Message Have Been Posted.</p>
                <p class="paddingBottomLite">Show It?</p>
                 
                <telerik:RadButton ID="btnNotifyView" runat="server" Text="View"
                  onclick="btnNotifyView_Click" Width="75px"></telerik:RadButton>
            </div>
 
        </ContentTemplate>
        <NotificationMenu ID="TitleMenu"></NotificationMenu>
</
telerik:RadNotification>

I have added these ajax settings to AjaxManagerProxy

<telerik:AjaxSetting AjaxControlID="btnNotifyView">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="listMessages" />
                <telerik:AjaxUpdatedControl ControlID="notifyMessage" />
            </UpdatedControls>
</telerik:AjaxSetting>

Now, everything work perfectly fine. The first time user clicks on button it makes a proper ajax call, but after that button looses ajax functionality and cause full page postback on click.

Any ideas what might be killing ajax functionality of button after initial successful ajax call?
Marin Bratanov
Telerik team
 answered on 10 Oct 2012
4 answers
283 views
Hi,
      I am using one RadTreeview control with CheckBoxes. I want to show the CheckedNodes in another RadTreeview control.

Can someone please help me out ASAP?

Thanks,
Mahesh
Princy
Top achievements
Rank 2
 answered on 10 Oct 2012
1 answer
118 views
Hi,

I need generate programmatically a chart like this

http://demos.telerik.com/aspnet-ajax/chart/examples/newfeatures/autolayout/defaultcs.aspx

How i can show the labels in the left side 
Petar Kirov
Telerik team
 answered on 10 Oct 2012
19 answers
487 views
Hello,

I am having a problem with both the RadToolTip or the RadToolTipManager not working on a page that inherits from a master page.  Nothing happens on mouseover or onclick on the element in this scenario (i.e. the RadToolTip fails to appear).  I have created a test project to illustrate and have attached the code.  The problem is independent of where the ScriptManager resides (Master page versus child page).

When I have a single page, the tooltip shows.  How do I get this to work for the case of a master page?

Thanks,

Master Page:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Tool.master.cs" Inherits="Tool" %> 
<%@ 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>  
    <asp:ContentPlaceHolder id="head" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">  
      
    </asp:ContentPlaceHolder> 
    </form> 
</body> 
</html> 

Child Page:
<%@ Page Title="" Language="C#" MasterPageFile="~/Tool.master" AutoEventWireup="true" CodeFile="ToolTip1.aspx.cs" Inherits="ToolTip1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
    <table> 
        <tr> 
            <td><asp:Image ID="img" runat="server" ImageUrl="~/images/button_i_blue.gif" /></td>  
        </tr> 
    </table> 
    <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="img"   
        ManualClose="True" IsClientID="True"   
            Height="300px" Width="300px" Text="test123" ShowEvent="OnClick"   
        HideEvent="ManualClose" /> 
</asp:Content> 
 
 


Marin Bratanov
Telerik team
 answered on 10 Oct 2012
2 answers
98 views
Hi Guys,

I was hoping someone might be able to point me in the right direction with a grid edit issue. I need to use a grid where all rows are always in edit mode, and then be able to retrieve the values within each rows columns.

I tried setting all rows to edit within the pre render event but this would only ever set the last row to edit mode. I managed to get all rows into edit mode as follows:

Dim i As Integer
For i = 0 To rgDbValues.PageSize - 1
    rgDbValues.EditIndexes.Add(i)
Next i

When I then need to retrieve the values in each row I am having trouble accessing the edit items.

I've tried the following code, however the editItem always returns nothing. Any ideas in what I'm doing wrong in trying to obtain the values?

For Each item As GridDataItem In rgDbValues.EditItems
       Dim editItem As GridEditFormItem = DirectCast(item.EditFormItem, GridEditFormItem)
       If editItem.IsInEditMode Then
           Dim str1 As String = TryCast(editItem("dbValue").Controls(0), TextBox).Text
 
       End If
   Next


Thanks
Jibber4568
Top achievements
Rank 1
 answered on 10 Oct 2012
14 answers
900 views
Hello i have a rad grid insert edit form popup with a asp.net upload in it. I have made it so that on the button click it makes postback but when the postback returns back the temporary data is lost. How can i from codebehind close all insert/edit forms so i can open the popup from the prerender event? with this code:

            RadGridCardDetails.MasterTableView.FindItemByKeyValue("CardDetailsID", new Guid(HiddenShowCardDetailID.Value)).Edit = true;
            RadGridCardDetails.Rebind();
Rohan
Top achievements
Rank 1
 answered on 10 Oct 2012
1 answer
131 views
Hi,
     I have a requirement to cancel the edit/insert mode on an external button click. How can I fulfill this. Can anybody suggest something helpful
Thanks
Savyo
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2012
2 answers
162 views
Hi,

I'm trying desperately to find a way to change the template of the row that is being dragged (drag clue). In my application, the user will drag a row from a RadGrid and drop it into a RadScheduler. I want the row that is being dragged to appear like it is when it's dropped  in the scheduler.

I know that the RadGrid doesn't provide any DragItemTemplates, so I will have to do it manually but I can't find the css class that is used by the dragged item. I'm guessing the css of the drag clue item is made in javascript (as every row is different), is there a master div that I can use?

Thanks in advance
Marin
Telerik team
 answered on 10 Oct 2012
1 answer
296 views
hi!!

i have this code in my aspx:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <asp:Table runat="server" CellPadding="0" CellSpacing="0" HorizontalAlign="Center">
                <asp:TableRow runat="server">
                    <asp:TableCell runat="server">
                        <asp:Table runat="server" CellPadding="0" CellSpacing="0">
                            <asp:TableRow runat="server">
                                <asp:TableCell runat="server">
                                    <telerik:RadBarcode runat="server"
                                                        ID="radcodigos"
                                                        Width="100"
                                                        Height="30"
                                                        Font-Size="10px"
                                                        ShowChecksum="false"
                                                        RenderChecksum="false"
                                                        ShowText="true"></telerik:RadBarcode>

                                </asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>      
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None">
        </telerik:RadAjaxLoadingPanel>


this barcode i'm load in the follow function:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            lbltipocodigoID.Text = Request.Params("tipocodigoID")
            lblcodigo.Text = Request.Params("codigo")

            radcodigos.Text = Val(lblcodigo.Text)

            Select Case lbltipocodigoID.Text
                Case "1"
                    radcodigos.Type = BarcodeType.EAN13
                Case "2"
                    radcodigos.Type = BarcodeType.EAN8
            End Select
        End If
    End Sub


in the file "img_barcode.png" you can see my problem better.
plase i need implements this barcode for my aplication. thanks.
Kostadin
Telerik team
 answered on 10 Oct 2012
1 answer
125 views
as I can lift a pop-up with a key combination, after selecting edit in a column, an item RaGrid??
Andrey
Telerik team
 answered on 10 Oct 2012
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?