Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
439 views
Hi,
I using RadUpload Control. How can i change FileName before this file uploaded to target folder? For example, i choose file : 1.jpg, and how can i upload to target folder and change it to 20100610180000.jpg(yyyymmddhhmmss) ?
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2010
2 answers
285 views
I have a grid in a ajaxpanel that I need to export from.  I followed the advise of the following URL:

http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx

The ajaxpanel has a loadingpanel with a custom skin (to change the animated gif).  After the first export where set_enableAjax(false) is performed, the loading panel is still displayed for every ajax request but, the animated gif does not animate. (this occurs only after the export runs. 

Here is the code on my ajaxpanel request started event:

function

 

requestStarted(ajaxManager, eventArgs) {

 

 

if (eventArgs.get_eventTarget().indexOf("btnExcel") > -1 ||

 

eventArgs.get_eventTarget().indexOf(

"btnPDF") > -1)

 

eventArgs.set_enableAjax(

false);

 

}

Any thoughts on how I can get the animated gif to move again?

Thanks in advance,

- Adam

James Daresta
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
433 views

We are trying to perform some code when the user clicks on a tab in the tab strip.  However, we also want to execute the same code when the user clicks on a tab that is already selected.  The TabClick event (see below) is not capturing it, is there another event that we need to bind to?

ASP.NET Code

<telerik:RadTabStrip ID="RadTabStrip1" OnTabClick="RadTabStrip1_TabClick" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Office2007" Style="padding-left: 50px;" ShowBaseLine="true">

C# code

    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)

    {

               //do something

    }

Yana
Telerik team
 answered on 17 Jun 2010
3 answers
97 views
I've added a radcombobox to my web user control which is dynamically added at runtime to my page. The control and appearance looks fine but when you mouse over the drop down arrow disappears. When I add the same control to a standard web page it works fine. Please advise.

Note: In IE 6 it appears to be working correctly. Firefox does not appear to be working correctly

Regards
Brian
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
122 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
206 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
180 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
68 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
199 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
79 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?