Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
184 views
Hey, everytime I use client allow row selection I can get the entire row to be highlighted.

How do I just click on the row and do the same for the server side selection?  I really don't want a button or a checkbox to select the row, I just want to click on the row once and be able to select the row.

Thanks
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2008
4 answers
173 views
I'm sending the selected date to a label. I'm using lblDate.Text = RadDatePicker1.SelectedDate.ToString(); and I'm getting the date and time and I'd like to format it just as the date.

I tried lblQuoteDate.Text = RadDatePicker1.SelectedDate.ToString("MM/dd/yyyy"); but no dice.

Any suggestions would be much appreciated.

Thanks,

Brett
Brett
Top achievements
Rank 1
 answered on 01 Aug 2008
5 answers
695 views
Hi guys,

I am using an ASP.Net AJAX RADEditor in an ASP.Net 2.0 application. We have just upgraded to this new Editor. Formerely, our application used the traditional RADEditor which had XML config files etc and ran on ASP.Net 1.1.

We seem to have migrated everything successfully and the editor is working pretty well. But we are unfortunately experiencing some problems pasting content directly from word - these didn't happen with the old version.

For example: The apostrophe's that MSWord uses are a special character that differs from a standard apostrophe in XHTML.

Here is some text I pasted from Word into the RADEditor:
" telcos’"

But I end up seeing funny characters like this inside the RADEditor:
telcos’

Because the apostrophe that Word uses is a weird, non-standard one..

My code for the editor is:

<telerik:RadEditor ID="RadEditor" Runat="server" Width="500px" Skin="Default"
    ToolProviderID="" StripFormattingOptions="MSWordRemoveAll"><Content>
</Content>
</telerik:RadEditor>

If I paste a couple of pages from a Word Document, the result is terrible, it is full of lots of other funny characters and sometimes Greek for bulleted text.

NOTE: It always looks perfect in the RADEditor straight after the paste. Its only after I save the RADEditor and then load it back up later inside the RADEditor that I see the funny characters all through the content. My thoughts are that these funny apostrophes should be replaced with standard apostrophes automatically during the paste, and this kind of thing isn't happening properly. RADEditor displays the apostrophes correctly straight after the paste, but after a fresh load populating the content at runtime, it realises they are funny characters and displays them accordingly.

My RADEditor saves inline, because its part of a custom CMS system. The inline-saving was done using a tutorial document on this web site which worked great.

Any other hints or tips or something that I need to configure? My staff are getting frustrated because they can't paste from word without seeing funny characters.

Is there a need for me to code my own custom replace filter, this would take some time, I assumed the MSWordRemoveAll should do all this for me.

I have taken 4 screenshots of what happens if they are helpful.

Thanks heaps for your help

Aaron.


Aaron Clausen
Top achievements
Rank 1
 answered on 01 Aug 2008
5 answers
160 views
Hi, is there a "selected" status for the appointment? like the selected Row as in Grid
James Shelton Agar
Top achievements
Rank 2
 answered on 01 Aug 2008
8 answers
490 views
I'm probably missing something simple, I miss those the best. :)

How do I upgrade to the latest version of the telerik controls without having to rebuild every module (I'm making modules for DNN) that uses telerik controls?

I assume there is some setting in Visual Studio 2008 that I am missing.
I have the "Specific Version" set to false for the Telerik.Web.UI reference, which is the only telerik DLL I reference. I had the set for the 515 version and the previous as well, but everything is broken when I upload all the files to upgrade.

Any suggestions would be great. I can't seem to find anything else on it. I could be missing something super simple and overly obvious, so if there are a couple things that need to be done, I'll probably need it pretty explicit. hehe
Baatezu
Top achievements
Rank 2
 answered on 01 Aug 2008
2 answers
199 views
I have a RADMenu control that has the following markup in the aspx page:

                    <telerik:RadMenu ID="RadMenu1" Runat="server" Flow="Horizontal">  
                        <CollapseAnimation Type="OutQuint" Duration="200" /> 
                        <Items> 
                            <telerik:RadMenuItem Text="Site Menu">  
                                <Items> 
                                    <telerik:RadMenuItem Text="Entry Page" NavigateUrl="~/admin/entry.aspx" /> 
                                    <telerik:RadMenuItem Text="FAQ">  
                                        <Items> 
                                            <telerik:RadMenuItem Text="Categories" NavigateUrl="~/admin/faq-categories.aspx" /> 
                                            <telerik:RadMenuItem Text="Items" NavigateUrl="~/admin/faq.aspx" /> 
                                        </Items> 
                                    </telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="Helpful Tips" NavigateUrl="~/admin/helpfultip.aspx" /> 
                                    <telerik:RadMenuItem Text="Links">  
                                        <Items> 
                                            <telerik:RadMenuItem Text="Categories" NavigateUrl="~/admin/link-categories.aspx" /> 
                                            <telerik:RadMenuItem Text="Items" NavigateUrl="~/admin/link.aspx" /> 
                                        </Items> 
                                    </telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="News" NavigateUrl="~/admin/news.aspx" /> 
                                    <telerik:RadMenuItem Text="Services" /> 
                                </Items> 
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenu> 

What I need to do is append items to the Services menu item based on database fields. I am using LINQ and a HashTable (plus HttpCache) to pull this off with the following code:

            Hashtable items = (HttpContext.Current.Cache["Services"] != null) ? (Hashtable)HttpContext.Current.Cache["Services"] : new Hashtable();  
 
            if (items.Count == 0)  
            {  
                using (LemonLawyerDataContext data = new LemonLawyerDataContext())  
                {  
                    var services = from s in data.Services orderby s.Name select s;  
 
                    foreach (Service s in services)  
                    {  
                        items.Add(s.Id, s.Name);  
                    }  
                }  
 
                HttpContext.Current.Cache["Services"] = items;  
            }  
 
            foreach (Telerik.Web.UI.RadMenuItem item in this.RadMenu1.Items[0].Items)  
            {  
                if (item.Text == "Services")  
                {  
                    foreach (DictionaryEntry en in items)  
                    {  
                        item.Items.Insert(item.Items.Count, new Telerik.Web.UI.RadMenuItem(en.Value.ToString(), "~/admin/services.aspx?serviceid=" + en.Key.ToString()));  
                        //item.Items.Add(new Telerik.Web.UI.RadMenuItem(en.Value.ToString(), "~/admin/services.aspx?serviceid=" + en.Key.ToString()));  
                    }  
                }  
            }  
 

Everything builds great and runs, but the menu only appends the last item in the dictionary object. I've gone through the debugger and confirmed if the cache is null that it gets populated with all items (supposed to be 2) and the final loop tells the menu to append two items but only the last one added shows up. I confirmed this by adding a third Service to the database and now it is the only one that shows up.

I'm sure I am doing something really simple wrong here, but could someone point me in the right direction?

PS - The forums site has trouble in FF3 so I am forced to use IE. Any chance this will be resolved soon?
digitall
Top achievements
Rank 1
 answered on 01 Aug 2008
0 answers
92 views
<< Moved to different forum >>
Mark
Top achievements
Rank 1
 asked on 31 Jul 2008
1 answer
76 views
I know this is something simple but i am trying to delete the associated images on records that are deleted from a Rad gridview auto delete link.  I have images (up to 15) associated with each record in an images table.  When i delete the record i don't want to abandon the images. 
I'm not sure where to put a file delete function in the delete routine.  I'm guessing i need to make sure that the parent record is deleted before i start deleting the actual images but i need the record id to look up the images that were associated with it in the images table.  If anyone has an example or can tell me where to start I would be very grateful.  I'm not even sure how to search for this in the forums.
Sean
Top achievements
Rank 2
 answered on 31 Jul 2008
1 answer
305 views
When a user changes a number of records to display I need to reset the current page index to 0. How can I do it at the server side?
Sean
Top achievements
Rank 2
 answered on 31 Jul 2008
1 answer
259 views
Hi,

Following is my code for Page1 and Page2.
Page 1 is having a button under RadAjaxPanel, on the click of the button, user redirect to Page2 which actually spits .xls file and close himself.
User found himself on the same page Page1, because Page2 only spits xls in binary.

Problem:
After I click on button1 on Page1, busybox starts and continue to display even after I click "Save, Open or Cancel" button of file Download Dialogbox.

R&D:
I did some research and found that ResponseEnd is not firing, after we close File Download Dialogbox.

Page1:

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%

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

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title>Untitled Page</title>

<script type="text/javascript">

function requestStart(sender, eventArgs)

{

alert(

'Start');

}

function responseEnd(sender, eventArgs)

{

alert(

'End');

}

</script>

</

head>

<

body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" SkinID="apDefault"

LoadingPanelID="LoadingPanel1" ClientEvents-OnRequestStart="requestStart"

ClientEvents-OnResponseEnd="responseEnd"

Width="100%">

<br />

<br />

<br />

<br />

<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click1"></asp:Button>

<br />

<br />

<br />

<br />

</telerik:RadAjaxPanel>

<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" SkinID="lpDefault" runat="server">

<asp:Image ID="Image1" SkinID="imgLoading" runat="Server" />

</telerik:RadAjaxLoadingPanel>

</form>

</

body>

</

html>



Page1.aspx.cs

protected

void Button1_Click1(object sender, EventArgs e)

{

Response.Redirect(

"ExportSuccess.aspx");

}

================================PAGE2=======================

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="ExportSuccess.aspx.cs" Inherits="ExportSuccess" %>

 

<!

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>Untitled Page</title>

</

head>

<

body>

 

<form id="form1" runat="server">

 

<div>

 

</div>

 

</form>

</

body>

</

html>


Page2.aspx.cs

protected

void Page_Load(object sender, EventArgs e)

{

string filename = Server.MapPath("myfile.xls");

HttpContext context = this.Context;

context.Response.Buffer =

true;

context.Response.Clear();

context.Response.ClearContent();

context.Response.ClearHeaders();

if (File.Exists(filename))

{

context.Response.ContentType =

"application/vnd.ms-excel";

context.Response.AddHeader(

"content-disposition", "attachment;filename=myfile.xls");

context.Response.TransmitFile(filename);

}

else

{

context.Response.Write(

"file not found");

}

context.Response.Flush();

context.Response.End();

}



Kevin Babcock
Top achievements
Rank 1
 answered on 31 Jul 2008
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?