Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
Hi,

I've used the editor for an email program, but run into one problem with the images.  All mail clients (Gmail, Hotmail, Outlook, etc.) all have differences in handling CSS/XHTML and the way Q2 2009 formats the properties is creating a lot of inconsistency for us.  For example:  not all mail clients observe a style="margin:5px" but instead only want or recognize hspace or vspace.  Same goes for image scaling, especially when a message gets forwarded.  If it is a style="height:100px; width:100px;" some clients lose this information and the pictures revert back to original size.

Lastly, some mail clients do not like image alignment being handled as a style="float:left;" but it always works as align="left" across the board.

Obviously turning off ConvertToXHTML can allow someone with HTML knowledge to fix it at the HTML level, but the average user who builds the email doesn't always know HTML and just uses the image manager which always inserts with style="" for the properities.  If at all possible it would be nice to be able to leave ConvertToXHTML on as well, so that all non-image items are formatted as expected and to current standards, but if it has to be off we can try it that way.

Is there any way for us to work around this to be able to use the original properties such as hspace, vspace, align for images, since modern XHTML and standards isn't always accepted by the mail clients?

Thanks for any help and recommendations. :)
eyal
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
759 views
Hi all,

Is there any way to set the maximum number of lines in each row (or maximum height of each row) in RadGrid, so if the content is shorter than the maximum, it will be fully displayed, but if the contect has more lines, all the lines beyond the maximum will be hidden.??

for example. if I define "maximum rows" =3

the following text:

This is a test: line 1
This is a test: line 2
This is a test: line 3
This is a test: line 4

will only display the top 3 line in the gird row.

Is there any way to do that?

Thanks,
feng
Dimo
Telerik team
 answered on 09 Dec 2009
3 answers
331 views
Hello guys,

I want to make radsplitter get height from its content dynamically, not static height. I mean I don't want splitter to have scroll bars, instead using explorer natural scroll bars. Splitter has 2 panes; the left pane is a radpane menu which is higher than entire window and the right pane is a dynamic content with arbitrary heights. In this case I get 2 annoying scroll bars or my contents are hidden. I don't want either case. I want simply one scroll bar on explorer and to achieve this splitter have to get height from content dynamically.

This was OK inTelerik 2008 but in Telerik 2009 I have this problem.

This is a sample code showing the problem:

<%@ Page Language="VB" AutoEventWireup="true" %> 
 
<%@ 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 id="Head1" runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form2" runat="server">  
    <asp:ScriptManager ID="ScriptManager" runat="server" /> 
    <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Outlook" Width="100%" 
        Height="930">  
        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">  
            <div style="background-color: GrayText; height: 920px;">  
                This is a static menu. Height is 920px.  
            </div> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" /> 
        <telerik:RadPane ID="ContentPane" runat="server">  
            <div style="background-color: Gray; height: 5000px;">  
                This is a dynamic content. Current height is 5000px.  
                <br /> 
                I want splitter height be 5000px dynamically.  
            </div> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 

I would thanks in advance for any help.

Regards.

Svetlina Anati
Telerik team
 answered on 09 Dec 2009
2 answers
52 views
Hey Telerik!

When I switch to editmode in my RadGrid the Images for the Calendar are displayed only on the very last row. This only happened after switching from a previous version to Version 2008.03.1314.20

Do I need to add some styling element here?

Sincerely, Peter.
Peter
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
271 views
Hi,

I am trying to open the rad window and enable the users to drag anywhere and even outside the browser area. I want the window to behave similar to popup window of Window. I set the KeepInScreenBounds propert to to false for RadWindowManager as well as RadWindow. But I could not move the rad window out of the browser area. When I checked the view source this property is still set to true. Can any one help me to achieve my target? I use RadControls for ASP.NET AJAX Q2 2009 version.

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" KeepInScreenBounds="false" Skin="Vista" Behaviors="Close,Maximize,Minimize" 
        Width="500px" Height="420px" VisibleStatusbar="false"  
        VisibleOnPageLoad="false"
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" KeepInScreenBounds="false" Behaviors="Default" InitialBehaviors="None" 
                Left="" NavigateUrl=""  Style="display: none;" Top=""
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager>

Client Script, showing the property is not set to False that is it is set to true as here "keepInScreenBounds":true,"

<script type="text/javascript"
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadWindowManager, {"behaviors":37,"clientStateFieldID":"RadWindowManager1_ClientState","formID":"form1","height":"420px","iconUrl":"","keepInScreenBounds":true,"left":"","minimizeIconUrl":"","name":"RadWindowManager1","skin":"Vista","top":"","visibleStatusbar":false,"width":"500px","windowControls":"['RadWindow1']"}, null, {"child":"RadWindow1"}, $get("RadWindowManager1"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxLoadingPanel, {"initialDelayTime":0,"isSticky":false,"minDisplayTime":0,"skin":"","transparency":5,"uniqueID":"LineResetAjaxPnl","zIndex":90000}, null, null, $get("LineResetAjaxPnl"));
});
//]]> 
</script> 
Georgi Tunev
Telerik team
 answered on 09 Dec 2009
1 answer
72 views
Hi,
I am facing an annoying issue with the RadScheduler control;
  • When I add an All day event let's say starting and ending the 1st December, it get spanned across 30st November and 1st December.
  • When I want to correct it by resizing the bar, it is removing the all day event and make it starting and ending at a random time.
I tried to play with timezoneoffset DayEndTime and DayStartTime settings without success.

        <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndTime="00:00:00" DayStartTime="00:00:01" RowHeaderWidth="200px"   
            ShowViewTabs="False" StartEditingInAdvancedForm="False" DataEndField="End" Skin="Office2007" TimelineView-SlotDuration="1.00:00:00" 
            DataKeyField="ID" DataRecurrenceField="RecurrenceRule" TimelineView-NumberOfSlots="5" TimeZoneOffset="01:00:00" 
            DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="SqlDataSource1" RowHeight="48px" TimelineView-ShowInsertArea="true"   
            DataStartField="Start" DataSubjectField="Subject" HoursPanelTimeFormat="htt" OverflowBehavior="Expand" EnableRecurrenceSupport="true" 
            ValidationGroup="RadScheduler1" SelectedView="TimelineView" GroupBy="Team" GroupingDirection="Vertical">  
            <Localization AdvancedAllDayEvent="All day"></Localization> 
 
            <AdvancedForm DateFormat="dd.MM.yyyy" TimeFormat="HH:mm" Modal="true"></AdvancedForm> 
            <AppointmentTemplate> 
                <%#Eval("Subject")%><br /> 
                <asp:Label runat="server" ID="LineDescription" /><br /> 
                <asp:Label runat="server" ID="Shift" /> 
            </AppointmentTemplate> 
            <ResourceTypes> 
                <telerik:ResourceType KeyField="LineID" Name="Line" TextField="LineDescription" ForeignKeyField="LineID" 
                    DataSourceID="LineDataSource" /> 
                <telerik:ResourceType KeyField="GlobeEmployeeID" Name="Team" TextField="FullName" ForeignKeyField="EmployeeID" 
                    DataSourceID="TeamDataSource" /> 
                <telerik:ResourceType KeyField="ShiftID" Name="Shift" TextField="Description" ForeignKeyField="ShiftID" 
                    DataSourceID="ShiftsDataSource" /> 
            </ResourceTypes> 
        </telerik:RadScheduler> 

How to correct this erratic behavior?
Regards,
David
Peter
Telerik team
 answered on 09 Dec 2009
1 answer
141 views
Hi,

I have the following code in the RadGrid of my UserControl:

<telerik:GridTemplateColumn UniqueName="MyColumnName" HeaderText="MyColumnName" Visible='<%# (Mode == SearchAndSelectMode.DataMode) ? true : false %>'
    <ItemTemplate> 
        <asp:ImageButton ID="MyButton" runat="server" ImageUrl="../App_Themes/eventIS/Grid/MyButton.gif" CommandName="DoSomething" /> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

The "Mode" property is a public property of my UserControl, and I want to display this column depending on the value of that property. But when I run it, the following error appears:

Databinding expressions are only supported on objects that have a DataBinding event. Telerik.Web.UI.GridTemplateColumn does not have a DataBinding event.

I know it is also possible to hide the columns in code behind, but I want to do it in the ascx because then it is more clear what happens in my opinion. Is there any way to achieve what I want with the RadGrid?
Princy
Top achievements
Rank 2
 answered on 09 Dec 2009
2 answers
111 views
Hello,

I have a RadGrid with a simple definition, automaticinsert and update allowed:
<telerik:RadGrid ID="MainGrid" runat="server" SkinID="Admin" AllowPaging="True" AllowAutomaticInserts="True" 
  AllowAutomaticUpdates="True" DataSourceID="ObjectDataSourceMain"
  <MasterTableView DataKeyNames="Id"
    <Columns> 
      <telerik:GridBoundColumn HeaderText="Název katalogu" DataField="Name"
      </telerik:GridBoundColumn> 
      <telerik:GridBoundColumn HeaderText="Rok" DataField="Year"
      </telerik:GridBoundColumn> 
      <telerik:GridCheckBoxColumn HeaderText="Aktivní" DataField="IsActive"
      </telerik:GridCheckBoxColumn> 
    </Columns> 
  </MasterTableView> 
</telerik:RadGrid> 
<asp:ObjectDataSource ID="ObjectDataSourceMain" runat="server" OldValuesParameterFormatString="Original_{0}" 
  SelectMethod="GetCatalogs" UpdateMethod="UpdateCatalog" InsertMethod="CreateCatalog" 
  TypeName="Kooperativa.KoopObchod.Facade.ProductFacade"
  <UpdateParameters> 
  </UpdateParameters> 
  <InsertParameters> 
  </InsertParameters> 
</asp:ObjectDataSource> 

Everything works fine till RadAjaxManager is added:
<telerik:RadScriptManager ID="RadScriptManager" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="MainGrid"
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="MainGrid" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 

Then I get client error:

"Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Exception has been thrown by the target of an invocation."

Insert works fine. This problem occured on all my grids.

How to find the problem? Thank you
Jiří
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
56 views
Hi - I have a list of domain object called D with properties Name and Id as well as others.

Now, I want to have the RadPanelBar display this list of Items as follows:

[d1.Name       ^]
<TemplateItem>
showing detailed information about d1.
</TemplateItem>
[d2.Name       ^]
<TemplateItem>
showing detailed information about d2.
</TemplateItem>
etc.

I cannot get RadPanelBar to give me this list with the collapse option.

The list D's is dynamic and I currently set it directly on the DataSource property of RadPanelBar.

Can anyone point me to a solution or offer any help?

Regards
Thomas
Yana
Telerik team
 answered on 09 Dec 2009
1 answer
151 views
Alex

I want to export the RadGrid data to pdf. I can successfully export to pdf but i want to add cutomize header, footer and logo.

is there any way to achieve this requirement?

Alex
Princy
Top achievements
Rank 2
 answered on 09 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?