Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
I'm not sure where I am going wrong with this, but I just want to dynamically add some text to a literal when the Tooltip is activated.

My aspx code is :
<asp:Image ID="helpImg" runat="server"    ImageUrl="~/images/help4.gif" />    
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  
    OnAjaxUpdate="OnAjaxUpdate"  Width="250" Height="175" HideEvent="ManualClose"  
    ShowEvent="OnClick" Skin="Hay">  
<TargetControls>   
<telerik:ToolTipTargetControl  TargetControlID="helpImg"  />    
</TargetControls>  
</telerik:RadToolTipManager> 
 

The code behind is:
    Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) 
        Dim textLit As New Literal 
        textLit.Text = "texteexttext" 
        RadToolTipManager1.TargetControls.Add(textLit.ID) 
    End Sub 

Not sure where I am going wrong...

Thx
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2010
4 answers
227 views
Hello

I have the Grid Binded with Sql data source with embeded update and delete command
i need to catch the delete or update exception generated 

thanks
Webster Velasco
Top achievements
Rank 2
 answered on 17 Jun 2010
2 answers
195 views
Is it possible to serialize a RadGrid and then use it as a control in the server side?

client side:

var grid = $find('<%= gvQuery.ClientID %>');
$.get("asynchronous/getSearchResults.ashx", { "grid": grid }, function(data) {
  // use data
});

and in the getSearchResults.ashx Handler:

RadGrid grid = (RadGrid)context.Request["grid"];


what do I need to set to use the RadGrid like this? so I can separate the process of searching for a result and give a fancy smooth experience to the user without wasting to much bandwidth.

The second attempt would be go row by row and create a JSON from the selected items, but this is a little bit overkill as I need to create hidden fields for each row and set them correctly (client-side) per each type of search the user selects... per row...

Thank you.
Søren Hartig
Top achievements
Rank 2
 answered on 17 Jun 2010
3 answers
74 views
Hi

I want to optimize search engine visibility of my carefully-optimized pages...

Can anyone confirm whether Google et al can see text in panels which are not visible
on page load? Does it depend on whether there is an open close link within the page?

Likewise can Google follow a link that opens a window, so that the window content can be indexed?

Thanks

Clive
Coty
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
212 views
I've got a page that contains a Dock Layout but when I view in localhost from VS2010 (F5), Win 7, IE8 the layout is good yet once I publish to Windows Server 2003 and IIS6 and view from the same client machine the layout changes.

Published version renders OK when viewing from Firefox.

Screenshots attached along with code below...

Any ideas where I'm going wrong?

Cheers
Cliff


<telerik:RadDockLayout ID="RadDockLayoutDefaultPage" runat="server">  
        <table width="100%" border="0" cellpadding="0" cellspacing="0">  
            <tr> 
                <td> 
                    <telerik:RadDockZone ID="RadDockZoneLeft" runat="server" Height="490px" Width="610px">  
                        <telerik:RadDock ID="RadDockEvents" runat="server" Width="95%" Title="Upcoming Events">  
                            <Commands> 
                                <telerik:DockExpandCollapseCommand /> 
                                <telerik:DockCommand AutoPostBack="false" Name="Add Event" CssClass="DockAdd" Text="Add Event" OnClientCommand="openRadWinCreateEvent" /> 
                            </Commands> 
                            <ContentTemplate> 
                                 <telerik:RadGrid ShowHeader="False" 
                                    ID="RadGridEvents" runat="server" GridLines="None" Width="99%" 
                                    onneeddatasource="RadGridEvents_NeedDataSource"   
                                    onitemdatabound="RadGridEvents_ItemDataBound" 
                                    OnSelectedIndexChanged="RadGridEvents_SelectedIndexChanged"   
                                    onprerender="RadGridEvents_PreRender" > 
                                    <MasterTableView TableLayout="Fixed">  
                                        <ItemTemplate> 
                                            <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %> 
                                            <asp:Panel ID="panelEventLine" runat="server"   
                                                CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "eventItem" : "eventAlternatingItem" %>'>  
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">  
                                                    <tr> 
                                                        <td colspan="4" align="center">  
                                                            <asp:Label ID="lblEventID" runat="server" style="display:none" Text='<%# Eval("EventID") %>'></asp:Label> 
                                                            <asp:Label ID="lblEventColour" runat="server" style="display:none" Text='<%# Eval("EventColour") %>'></asp:Label> 
                                                            <asp:LinkButton ID="lbtnEventTitle" runat="server" CommandName="Select" Text='<%# Eval("EventTitle") %>'></asp:LinkButton> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            <b>Start: </b> 
                                                        </td> 
                                                        <td> 
                                                            <asp:Label ID="lblStartDate" runat="server" Text='<%# Eval("StartDate") %>'></asp:Label> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">  
                                                    <tr> 
                                                        <td align="center">  
                                                            <b>High</b> 
                                                        </td> 
                                                        <td align="center">  
                                                            <b>Late</b> 
                                                        </td> 
                                                        <td align="center">  
                                                            <b>All</b> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td align="center">  
                                                            <asp:LinkButton ID="lbtnHighTasks" ToolTip="Show High Tasks" runat="server" CommandName="High Tasks" Text="2"></asp:LinkButton> 
                                                        </td> 
                                                        <td align="center">  
                                                            <asp:LinkButton ID="lbtnLateTasks" ToolTip="Show Late Tasks" runat="server" CommandName="Late Tasks" Text="1"></asp:LinkButton> 
                                                        </td> 
                                                        <td align="center">  
                                                            <asp:LinkButton ID="lbtnAllTasks" ToolTip="Show All Tasks" runat="server" CommandName="All Tasks" Text="6"></asp:LinkButton> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </asp:Panel> 
                                        </ItemTemplate> 
                                    </MasterTableView> 
                                </telerik:RadGrid> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </td> 
                <td> 
                    <telerik:RadDockZone ID="RadDockZoneRight" runat="server" Height="490px" Width="310px">  
                        <telerik:RadDock ID="RadDockTasks" runat="server" Width="100%" Title="Tasks">  
                            <Commands> 
                                <telerik:DockExpandCollapseCommand /> 
                                <telerik:DockCommand AutoPostBack="false" Name="Add Task" CssClass="DockAdd" Text="Add Task" OnClientCommand="openRadWinCreateTask" /> 
                            </Commands> 
                            <ContentTemplate> 
                                <telerik:RadGrid ClientSettings-Scrolling-AllowScroll="false" ShowHeader="False" 
                                    ID="RadGridTasks" runat="server" AutoGenerateColumns="False"   
                                    GridLines="None" Width="99%"   
                                    onneeddatasource="RadGridTasks_NeedDataSource"   
                                    onitemdatabound="RadGridTasks_ItemDataBound">  
                                    <ClientSettings> 
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                                    </ClientSettings> 
                                    <MasterTableView DataKeyNames="TaskID">  
                                    <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                    </ExpandCollapseColumn> 
                                        <Columns> 
                                            <telerik:GridBoundColumn DataField="TaskID" Visible="False" /> 
                                            <telerik:GridBoundColumn DataField="TaskTitle" HeaderText="Task" /> 
                                            <telerik:GridTemplateColumn HeaderText="Due" ItemStyle-HorizontalAlign="Center">  
                                                <ItemTemplate> 
                                                    <asp:Label ID="lblDueDate" runat="server" Text='<%# Eval("DueDate") %>'></asp:Label> 
                                                </ItemTemplate> 
                                                <ItemStyle HorizontalAlign="Center" /> 
                                            </telerik:GridTemplateColumn><telerik:GridTemplateColumn HeaderText="Event" ItemStyle-HorizontalAlign="Center">  
                                                <ItemTemplate> 
                                                    <asp:Label ID="lblEventColour" runat="server" Text='<%# Eval("EventColour") %>' style="display:none"></asp:Label> 
                                                    <asp:Label ID="lblEventTitle" runat="server" Text='<%# Eval("EventTitle") %>' style="display:none"></asp:Label> 
                                                    <asp:Button ID="btnEventColour" runat="server" Enabled="false" BorderStyle="None" EnableTheming="False" CssClass="NonDecoratedItem" Height="15px" Width="25px" Text=" " /> 
                                                </ItemTemplate> 
                                                <ItemStyle HorizontalAlign="Center" /> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                </telerik:RadGrid> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </td> 
            </tr> 
        </table> 
    </telerik:RadDockLayout> 
Pero
Telerik team
 answered on 17 Jun 2010
2 answers
86 views
Is it possible to use the Image manager to upload and browse an image located in a separate website on the same server?  

I'm using the RadEditor in a CMS which is situated in a secure website (Website1), to edit the front end of another website (Website2), I need to know if it's possible to set the ViewPath / UploadPath / DeletePath to Website2 from Website1.

Thanks in advance
Scott
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
428 views
Dear All,

Presently, I have the scenario of File Explorer to show the specific root folders and corresponding files. Here, for the above condition, I am using RAD File Explorer. Sametime, I already implemented the sepearte permissions like View Folder, Delete Folder, create Folder, rename Folder in DB Level. The same permissions implemented for file level also.

Now, the requirement need to apply the permissions to the RAD File Explorer control to control the type of permissions based on the current user. Ex: If he has View Folder Permission he can view only the particular folder and files. The remaining folders need to be hide. The same need to apply for the file level.

Please, if anybody have the better solution.. help me..

Thanks,
Sheik Aladin
Dobromir
Telerik team
 answered on 17 Jun 2010
3 answers
282 views
Hello

Our application makes extensive use of the Web20 and Office2007 embedded skins, but I wish to make changes to these skins.
So, I followed the instructions for using themes. So, setting EnableEmbeddedSkins = false and setting the Theme property appropriately.

My procedure for getting the Web20 and Office2007 skins was to navigate to the following directories:
  1. C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q1 2010\Skins\Web20
  2. C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q1 2010\Skins\Office2007
  3. C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q1 2010\Skins

And to grab two two CSS files for the two skins and to grab the images in the two folders.
I did the recommended CSS name changes and my images are appropriately referenced.

Unfortunitely, the result from my skinning looks nothing near what the embedded skin looks like.
Now, I noticed that the controls using embedded skins were referencing images using WebResource.axd... and my controls did not have access to these files.

Please advice as to where I can download full skins from or what steps I need to take to have control over these skins.

Thanks.
Kamen Bundev
Telerik team
 answered on 17 Jun 2010
3 answers
104 views
Hi All,

How do I get the labels on the X axis to be on the top of the chart?  I tried the code below but it doesn't seem to do anything?  Is this even possible?

RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top;

Thanks in advance! 
Velin
Telerik team
 answered on 17 Jun 2010
1 answer
228 views
I am creating an order entry page which has a large number of items (30-50K)
On the doubleclick a user control opens up containing the part number, description, cost, etc.
is there a way to pass into (or pull up) the customer number?
I could always add it to the data source but that is increasing the size of an already large data table
the add is on a click event in the control - I could change it to trigger an Insert (adding it to the order table, not the items table)
I am working in VS2010 ASP.NET 4.0
the grid is filled through LINQ to SQL

from the main page:
<asp:Content ID="cntBody" ContentPlaceHolderID="cpHolder" Runat="Server">
    <telerik:RadScriptManager ID="rsManager" runat="server" />
    <telerik:RadCodeBlock ID="rcBlock" runat="server">
        <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="raManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgItems">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgItems" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

the grid (from the main page)
    <telerik:RadGrid ID="rgItems" AutoGenerateColumns="False" AllowPaging="True"
            runat="server" AllowFilteringByColumn="True" AllowSorting="True" GridLines="None">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView DataKeyNames="ItemID" EditMode="PopUp">
        <Columns>
            <telerik:GridBoundColumn UniqueName="ItemID" DataField="ItemID" Visible="False">
            </telerik:GridBoundColumn>
...
        </Columns>
        <EditFormSettings UserControlName="OrderItem.ascx" EditFormType="WebUserControl">
        </EditFormSettings>
        </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>
    </telerik:RadGrid>
and code behind
Partial Class Items
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim DivisionID As Integer = 3
        Dim ws As CommonFunctions
        If Page.IsPostBack Then
        Else
            ws = New CommonFunctions
            rgItems.DataSource = ws.GetItems(DivisionID)
            rgItems.DataBind()
        End If
        ws = Nothing
    End Sub

    Protected Sub rgItems_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgItems.NeedDataSource
        Dim DivisionID As Integer = 3
        Dim ws As New CommonFunctions
        rgItems.DataSource = ws.GetItems(DivisionID)
        ws = Nothing
    End Sub

End Class

the user control HTML
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OrderItem.ascx.vb" Inherits="OrderItem" %>
<table border="1" cellpadding="1" cellspacing="1" style="background-color:#CC9900;">
<tr>
<td>ItemID</td>
<td>
    <asp:Label ID="lblItemID" Text='<%# DataBinder.Eval( Container, "DataItem.ItemID") %>' runat="server" />
</td>
</tr>
...
<tr>
<td>
    <asp:Button ID="btnAddtoOrder" Text="Add to Order" CommandName="AddtoOrder" runat="server" />
</td>
<td align="right">
    <asp:Button ID="btnCancel" Text="Cancel" CommandName="Cancel" CausesValidation="false" runat="server" />
</td>
</tr>
</table>
and code behind for the user control
Imports System.Data

Partial Class OrderItem
    Inherits System.Web.UI.UserControl

    Private _dataItem As Object
    Public Property DataItem() As Object
        Get
            Return Me._dataItem
        End Get
        Set(ByVal value As Object)
            Me._dataItem = value
        End Set
    End Property
' where do I get this???????
    Private _dealerNumber As Int64
    Public Property DealerNumber() As Int64
        Get
            Return Me._dealerNumber
        End Get
        Set(ByVal value As Int64)
            Me._dealerNumber = value
        End Set
    End Property

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
    End Sub

    Protected Sub btnAddtoOrder_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddtoOrder.Click
        Dim ItemID, OrderItemID As Integer

        If Page.IsValid Then
        Else
            Exit Sub
        End If

        ItemID = CInt(lblItemID.Text)

        Dim ws As New CommonFunctions
        OrderItemID  = ws.AddToOrder(DealerNumber, ItemID, etc)
        ws = Nothing
    End Sub
End Class


Rosen
Telerik team
 answered on 17 Jun 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?