Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hi,

I'm new to the AJAX Controls so apologies if this seems really dumb, but it seems that I cannot set the AjaxURL property of RadAjaxManager? We are using URL rewriting on our sites (e.g. http://localhost/big4/website/private/my-park/my-website/in-park-activities.aspx), and the ajax events throw a 404 error on the second time they're fired because it's trying to reference the page http://localhost/big4/website/private/my-park/my-website/index.aspx?id=19


Here is a sample of the code we're using.

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="dlImages">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="pnlMessage" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>







<asp:datalist id="dlImages" repeatcolumns="4" repeatdirection="Horizontal" runat="server">

<itemtemplate>

<asp:linkbutton runat="server" id="lnkAdd" cssclass="add" title="Add image to this category" commandname="add">Add</asp:linkbutton>

</itemtemplate>

</asp:datalist>

Maria Ilieva
Telerik team
 answered on 01 Jul 2008
2 answers
194 views

Dear Telerik,

I'm using rad date picker in Rad Calender....

I have problem with it, when I Choose The Date (1st February,2008) then i click also on the date Picker then i find the date is(2nd January 2008), in other words the date and the month are changed....

How can this come....?

Here is some of my code

dtTime.DateInput.DisplayDateFormat = "dd/MM/yyyy";
dtTime.DateInput.DateFormat = "dd/MM/yyyy";

So, Can you please Help me with this...?

Konstantin Petkov
Telerik team
 answered on 01 Jul 2008
2 answers
147 views
I have a query about the RadUploader.
HOw can I add tooltip to the Remove button of the uploader?

-- Sadeka
Sadeka
Top achievements
Rank 1
 answered on 01 Jul 2008
1 answer
304 views

Hi,

My requirement is, I have RadComboBox(SystemNameCombo), it should get disable when ever my page gets refreshed. I have javascrip which is been injecting from server-side to disable the RadComboBox. But it is not working for me. Please help me out in this regard.

ClientScript.RegisterClientScriptBlock(Me.GetType(), "testClientScript", _

"<script language=JavaScript>" & vbCrLf & _

" $find('SystemNameCombo').disable();" & _

"</script>")


Thanks,
Sravan

Baatezu
Top achievements
Rank 2
 answered on 01 Jul 2008
11 answers
220 views
Hi,

Is that possible to cancel dragging once it's started? I tried using eventArgs.set_cancel() but this method is not supported.

function OnClientDragStart(sender, eventArgs)
{
    var dock = sender;
    
    
// Collapse/Expand dock on single click anywhere in title bar.
    
if(dock)
    {
        
var isCollapsed = !dock.get_collapsed(); 
        dock.set_collapsed(isCollapsed); 
    }

    // Cancel drag
    
eventArgs.set_cancel( true);  // error: object doesn't support this method.
}

Thanks.

Kian

skysailor
Top achievements
Rank 1
 answered on 30 Jun 2008
6 answers
433 views
Hi,

I am trying to get rid of the hover effect on the actual panel bars (everything else can be set per bar, but not this).

So, basically, if I use the Outlook skin, and move the mouse over a panel bar, it changes from blue to orange, I do not want this to happen.

Any ideas?

Regards,

Mike
PureCode
Top achievements
Rank 2
 answered on 30 Jun 2008
3 answers
323 views
Hello,

I have a grid that has sorting, filtering and export to excel functionality by design. This grid is part of a user control page that is loaded inside of a content asp panel from the parent page. The default.aspx page has the script manager and radajax manager, the later is configured to update the content page when the header or footer are clicked but not it self.

The issue i am having is I cant seem to be able to trigger the export to excel function of the grid. It works fine in a aspx page, but not at all in my usercontrol.
I have read all the posted information and reviewed all available projects regarding working with export in ajax projects. The closest one i saw is exporting from a content page that is loaded by a master page, however that example didn't work either for my practicular environment. 

I tried using Ajax Manager Proxy but no luck so far. Can you please post an example of how to make the export work for a usercontrol scenario in C#? 


Update :  I managed to get it to work somewhat except it only works on the 2nd click of the btnExcel and every click there after.  
This is my code:

Reports.ascx.cs
protected void btnExcel_Click(object sender, EventArgs e)  
        {  
           RadAjaxManager ram = (RadAjaxManager)this.Page.FindControl("ramManager");  
           ram.EnableAJAX = false;  
            gReports.PageSize = gReports.MasterTableView.VirtualItemCount;  
            gReports.ExportSettings.IgnorePaging = true;  
            gReports.ExportSettings.ExportOnlyData = true;  
            gReports.MasterTableView.ExportToExcel();  
        } 

Reports.aspx:
<asp:Button ID="btnExcel" Width="150px" Text="Export to Excel" CommandName="Export" runat="server" OnClick="btnExcel_Click" /> 
 
<telerik:RadGrid ID="gReports" ShowStatusBar="True" Skin="WebBlue" GridLines="None" 
        AllowSorting="True" AllowPaging="True" PageSize="20" Width="100%" runat="server" 
        AllowFilteringByColumn="True" AutoGenerateColumns="False" ItemStyle-Wrap="false" 
        OnItemCommand="gReports_ItemCommand">  
        <MasterTableView TableLayout="Auto" DataKeyNames="service_request_id" CellPadding="3" GridLines="None">  
            <Columns> 
                <telerik:GridTemplateColumn UniqueName="ViewRequestColumn" AllowFiltering="False" HeaderStyle-Width="30px" ItemStyle-Width="30px">  
                    <ItemTemplate> 
                        <asp:LinkButton ID="lbView" runat="server" CommandName="ShowDetails">View</asp:LinkButton> 
                    </ItemTemplate> 
                    <HeaderStyle Width="30px" /> 
                    <ItemStyle Width="30px" /> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn HeaderText="Claim Number" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                    DataField="claim_no" UniqueName="claim_no">  
                </telerik:GridBoundColumn> 
            </Columns>            
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> 
            <Scrolling AllowScroll="True" ScrollHeight="457px" UseStaticHeaders="True" SaveScrollPosition="True">  
            </Scrolling> 
        </ClientSettings> 
      </telerik:RadGrid> 

Default.aspx:
<telerik:RadScriptManager ID="RadScriptManager" runat="server" /> 
    <telerik:RadAjaxManager ID="ramManager" runat="server" > 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="pHeader">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rapCrumb" /> 
                    <telerik:AjaxUpdatedControl ControlID="rapContent" LoadingPanelID="rlpLoading" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="pFooter">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rapCrumb" /> 
                    <telerik:AjaxUpdatedControl ControlID="rapContent" LoadingPanelID="rlpLoading" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <div id="dFrame">  
        <div id="dContent">  
            <asp:Panel ID="rapContent" runat="server">  
            </asp:Panel> 
        </div> 
 As expected after that the sorting, view details and the whole webpage navigation stops working because the ajax remains disabled.
Can you please help me correct that behaviour so it actualy works on the first click and does not affect the rest of the application functionality?


Blagodaria vi mnogo za vremeto vi I se izveniavam za bezpokoistvoto.
Esk
Top achievements
Rank 2
 answered on 30 Jun 2008
1 answer
111 views
I want to customize the advance template for adding and editing appointments.  I found this link (http://www.telerik.com/help/aspnet-ajax/schedule_advancedformtemplate.html) with excellent instructions for doing just what I want.  However, I do not have the files referenced in either of the sample packages I've installed.  I have RadControls 'Prometheus' for ASPNET Q2 & Q3 2007 Live Examples.

Is there another place I should be looking for the sample code described in this article? 

Thank you!
Albert Anglin
Top achievements
Rank 1
 answered on 30 Jun 2008
2 answers
109 views
Hello,

I have a web form with multiple RadInputs, each populated in code-behind with a value (not data-bound).  When the page loads, the values show properly for a second or so, then they all change to the lowercase letter x!  If I click in the inputs, the original, correct value appears.  These are just regular textboxes, not masked for numbers or dates or anything - just basic string values.  They do have a basic required field validator and a RadToolTip attached to each.  I am really only using the RadInput for visual consistency with other controls, not for functionality.  Here is a sample of one textbox:

<

telerik:RadTextBox ID="NameTextBox" runat="server" MaxLength="100" Skin="Sunset"  Width="400px"/>

Please help!

Amanda
Top achievements
Rank 1
 answered on 30 Jun 2008
2 answers
161 views
When you have a RadComboBox inside a Tooltip and you scroll down to open the tooltip by clicking on the target element, the dropdown of the combo box does not take into consideration the scroll offset, it is positioned way off.

Please help,
Svetlina Anati
Telerik team
 answered on 30 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?