Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
226 views
I am using the new awesome feature of the RadGrid to be able to bind to a webservice using ASP.NET AJAX + WS + RadGrid.

This is the definition of my grid:
    <telerik:RadGrid ID="RoundList" AutoGenerateColumns="false" Skin="Gray" runat="server">
        <MasterTableView TableLayout="Fixed" DataKeyNames="ID">
            <Columns>
                <telerik:GridBoundColumn DataField="ID" HeaderText="#" />
                <telerik:GridTemplateColumn HeaderText="Delete">
                    <ItemTemplate>
                        <a href="#" onclick="DeleteRow(<%#Eval("ID")%>);return false;">Delete</a>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnCommand="function(){}" />
        </ClientSettings>
    </telerik:RadGrid>
The GridBoundColumn works fine, the ID shows up there, but in the GridTemplateColumn, the ID is blank.

Anyone know what I am doing wrong ??
Vlad
Telerik team
 answered on 01 Aug 2008
2 answers
175 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
163 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
673 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
158 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
483 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
191 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
74 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
300 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
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?