Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views
I have a situation where very "dirty" HTML gets loaded into RadEditor, produced by webemail HTML parser component cleaning dangerous content from the file. Output shows fine in RadEditor and in browser, but when inserted as HTML body of email message, it is not showing at all in Outlook. Do you have any suggestions how to "clean" this HTML? Any info on available dotnet HTML parsers would be great (if Telerik's components have no options for this).
Regards,
Alex
Rumen
Telerik team
 answered on 18 Nov 2008
7 answers
968 views
I would like to hide my entire page until all the controls are fully loaded - including images.  When using the old Rad Controls for ASP.Net, I simply used a div to show a 'loading' message.  I then registered a startup script which hid the div and displayed the main form.  This worked great.

With Rad Controls for ASP.Net Ajax, I find that this does not work.  The startup script is executed long before the images are loaded.  This results in the page 'building' up as it loads images for the menu, toolbar, tree, panels and tabs.  I've tried using the menu OnClientLoad event and the window.onload event, but these events execute before the images are loaded. 

My question is:  How do I know when are the controls are fully loaded and displayed?

Thanks.
Mark Griebling
Top achievements
Rank 1
 answered on 18 Nov 2008
6 answers
275 views
Starting with version 2008.2.1001, the RadEditor control no longer requires Session State to be activated in the web application. This was done in order to allow the editor to work in all application scenarios. As a result of this change, if you have customized one of the editor dialogs and are using the Session object in the code, the dialog will stop working after you upgrade to the latest release. You might see an exception with the following text:

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

If you experience this problem, you should see the following KB article on the subject, which provides guidance how to solve it: Using Session State in Custom Editor Dialogs.

Best regards,
The Telerik team
Rumen
Telerik team
 answered on 18 Nov 2008
13 answers
269 views
For some reason Firefox will not honor the columns widths set in:
<HeaderStyle Width="56px"></HeaderStyle>
...Unless I set widths on every single column, which I do not want.

I need one column to be flexible and stretch to whatever the remaining space is available. This works in IE, but not Firefox. While setting the column to a fixed width can solve the problem, this cause the grouping to break. If I group by a field, it pushes the grid content off the page since there is no room for the grouping column. If I could make a field flexible, it would then subtract from that width. IE does this as expected as well but not Firefox.The width properties do not appear to support "Auto". I tried creating a CSS class that used width:auto, but that did not seem to help and I also lost the style on my header.

That being said, I'm trying to achieve either of the following:
1) All fields fixed length except one. This field will become smaller when grouping is performed.
or
2) All fields fixed length. Grouping does not cause grid to go off the page by taking equal width from each of the columns, etc. to make room for the grouping column.

I'd rather not use a scrollbar which seems like a hack solution anyway.

Any ideas or best practices for this?

Thanks
Levi
Levi
Top achievements
Rank 1
 answered on 18 Nov 2008
2 answers
174 views
I have a simple grid bound to a DB table.  The number of columns is not know at runtime so I can't hard code the column widths in. When the grid renders itself it first draws itself.  Then there is a flicker and it adjusts the size of the columns to better fit the data.  Is there anyway to prevent this double drawing?
Dimo
Telerik team
 answered on 18 Nov 2008
1 answer
105 views
Hello,

I'm having problems when exporting RadGrid to PDF. After exporting, the pdf file shows only a part of my grid. Example: if the grid has 20 columns with large width, only 3 or 4 columns appears in the final file. How can i format this grid so that all columns appears in the pdf file?

My code is something like this:

grid.ExportSettings.IgnorePaging = false;
grid.ExportSettings.OpenInNewWindow = true;
grid.ExportSettings.ExportOnlyData = true;
grid.ExportSettings.FileName = "test";
//this was a try to do what i want... :(
grid.ExportSettings.Pdf.PageHeight = Unit.Parse("162mm");
grid.ExportSettings.Pdf.PageWidth = Unit.Parse("600mm");

Is that possible?
Thanks.

Eliaquim
Daniel
Telerik team
 answered on 18 Nov 2008
5 answers
191 views

Hey everyone.  My team and I were excited to implement the new Q3 release into our application, but we're experiencing strange UI problems.  Since the problems are crippling, I haven't investigated the extent of the damage yet, but the main one we're experiencing is as follows.  Any page with RadComboBox controls, at least inside of a RadPanelBar, fail to render any data and fail to include any skinning, ie triangle image, hover behavior, etc.  However, after collapsing and re-expanding the panel item, the controls render fine. 

We do not have any RadComboBox controls outside of a RadPanelBar control to my knowledge, so I'm not sure if the problem is directly related to the RadComboBox, the RadPanelBar, or elsewhere.  We haven't had any other trouble like this in the past.  I've done some researching of problems related to the Q3 release, and haven't found any, so hopefully this is not an actual bug with the controls.  If you've gotten any reports or ideas as to the source of this problem, help would be appreciated.

Thanks,

Adam.g
Paul
Telerik team
 answered on 18 Nov 2008
5 answers
158 views
I'm experimenting with the treeview, inside a splitter/pane, and a RadSkinManager, with chooser, on a page--

I have EnableDragAndDrop and EnableDragAndDropBetweenNodes set to true..

I get the above/below dotted-lines only when set to Default skin.  Any of the other skins don't give any between node feedback.

Is this per design?

Thanks.. David


Yana
Telerik team
 answered on 18 Nov 2008
1 answer
143 views
I have followed the tutorial on Google Style filtering for a column, and have it working, but am coming across a few problems.

  1. It doesn't work on all datasources, such as generic lists.
  2. It doesn't work on stored procedures.
  3. It doesn't work on all queries, such as ones with order by statements.
  4. It doesn't work on select statements that use parameters.
  5. It's vulnerable to sql injection, and throws exceptions on the demo if you enter a single quote. (this is an easy fix)
  6. it requires an additional database call for data that is already in memory.

Has anyone found a solution to these issues, or a more elegant way of getting this to work?
Nikolay Rusev
Telerik team
 answered on 18 Nov 2008
1 answer
75 views
I would also like to include another bug that I've noticed. It seems that when you type in things in the editor then you delete everything, it seems that there is &nbsp still when you do a get_text(). This translates to a length when I do 
rtfEditor.get_text().trim().length;

So in essence, my QA is complaining that there are no more characters in the editor but the div is still saying that there are 4 characters.
Tervel
Telerik team
 answered on 18 Nov 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?