Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Greetings,

I have been using RAD Editor for a year with out any issues. Recently I noticed, Editor is inserting additional line breaks when saving the data in html format.

Has any one seen this issue? Please guideme in right direction to resolve this issue.

Thanks
Atchuta
Rumen
Telerik team
 answered on 17 Nov 2011
2 answers
156 views
This is my combobox with Custom validator
 <telerik:RadComboBox  ID="cbSecurityLevel" Skin="Vista" runat="server" ></telerik:RadComboBox>
                                   <asp:CustomValidator ControlToValidate="cbSecurityLevel" Display="Dynamic" CssClass="validator"
                                    OnServerValidate="cbSecurityLevel_ServerValidate" ID="cvSecurityLevel" runat="server"/>

I fill dynamically :
   protected void Page_Load(object sender, EventArgs e)
        {

            if (Page.IsPostBack) return;

            LoadSettings();
            FillComboBox();           
        }

 private void FillComboBox()
        {
    cbSecurityLevel.EmptyMessage = _resources.GetString(cbSecurityLevel.ID, new CultureInfo(_culture));
            cbSecurityLevel.DataSource = _organization.GetSecurityLevels();
            cbSecurityLevel.DataTextField = "Name";
            cbSecurityLevel.DataValueField = "Id";
            cbSecurityLevel.DataBind();
        }


This is Custom validator: (This does not Fire)
 protected void cbSecurityLevel_ServerValidate(object sender, ServerValidateEventArgs e)
        {
            e.IsValid = cbSecurityLevel.SelectedIndex > 0;
        }


Thanks!
July
Top achievements
Rank 2
 answered on 17 Nov 2011
14 answers
381 views
Hi,

i'm using the portal example, but is there code how to demonstrate
a DockWindow Close(hide?) confirmation dialog (client side?).

Thanx.
Slav
Telerik team
 answered on 17 Nov 2011
5 answers
141 views
Is there an newer/easier way to preserve the expand state of detailtables after rebind?

I've seen the below example, but I need an example in vb.net and the conversion does not work. 

http://www.telerik.com/community/code-library/aspnet-ajax/grid/retain-expanded-selected-state-in-hierarchy-on-rebind.aspx
Mira
Telerik team
 answered on 17 Nov 2011
3 answers
101 views
Hi Guys,

I'm trying to add a RadMenu to the RadEditors Tools. I want it to fit into an EditorToolGroup like the rest of the tools but noticed that it only accepts items that are from base class EditorToolBase.

Is it possible to have a control inherit from this to be able to add it to an EditorToolGroup?

In fact am I even on the right track or is there another way to do this?

Thanks!
Rumen
Telerik team
 answered on 17 Nov 2011
3 answers
85 views

Hello,

We currently have Rad editor installed on our instance of MOSS 2007, publishing protal to allow users to update content on web pages, this works fine but the editor doesn't seem to be WISYWIG, it doesn't seem to be using the CSS files associated with our website, but when the page is redered in normal website viewing mode - the styles are picked up fine.

Is there a way to configure the Rad Editor within Sharepoint to pick up the CSS file(s) being used on the website?

We are currently using the following code within our Master Pages / Page layouts:

<%@ Register TagPrefix="telerik" Namespace="Telerik.SharePoint.FieldEditor" 
Assembly="RadEditorSharePoint, Version=5.3.2.0, culture=neutral, 
PublicKeyToken=1f131a624888eeed" %>

<telerik:RadHtmlField 
id="Content" DisplayWidth="1000px" FieldName="PublishingPageContent" 
runat="server" 
AllowSpecialTags="true"></telerik:RadHtmlField>

Your help would be greatly appreciated.

Thanks
Hefin Jones
Rumen
Telerik team
 answered on 17 Nov 2011
5 answers
161 views
hi dear telerik admin : 
i have two GridTemplateColumn in my RadGrid That Regular filtering on them has error and it seems we should change them! 
those GridTemplateColumns are like below : 
<telerik:GridTemplateColumn FilterControlAltText="Filter Online column" HeaderText="Online"
    UniqueName="Online">
    <ItemTemplate>
        <asp:CheckBox ID="chkOnline" runat="server" Checked='<%# CheckForOnline(Eval("ID")) %>'
            Enabled="False" />
    </ItemTemplate>
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
</telerik:GridTemplateColumn>

and the other one :

<telerik:GridTemplateColumn FilterControlAltText="Filter FileSize column" HeaderText="FileSize"
    UniqueName="FileSize" Visible="False">
    <ItemTemplate>
        <asp:Label ID="lblFileSize" runat="server" Text='<%# Eval("FileSize") %>'></asp:Label>
    </ItemTemplate>
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn FilterControlAltText="Filter FileSizeChange column" HeaderText="FileSize"
    UniqueName="FileSizeChange">
    <ItemTemplate>
        <asp:Label ID="lblFileSizeChange" runat="server" Text='<%# ChangeFileSize(Eval("FileSize")) %>'></asp:Label>
    </ItemTemplate>
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</telerik:GridTemplateColumn>
as you seeFileSize TemplateColumn is disable and i am using FileSizeChange instead! 
FileSize string is like (213435) -> this number shows us bytes!
and FileSizeChange is like (231 MB)!
how can i write filtering for both Online and FileSizeChange ? 

thanks in advance
Pavlina
Telerik team
 answered on 17 Nov 2011
5 answers
124 views
Hi,
I am creating a Grid dynamically and i am using grid.columns.Clear() to clear the columns before adding the new columns to the grid.But that causes the following error,and i have tried to set GridTableView.EnableColumnsViewState to False but that does not work.
Please give the solution for this problem.

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +2776221
   Telerik.WebControls.GridColumnCollection.x107df2cdc54f1163() +635
   Telerik.WebControls.GridTableView.x2f42edb67de223fa() +2342
   Telerik.WebControls.RadGrid.xecc39c6829764c81(ArrayList x968349690f5f2dca, GridTableView x97cb49e21273638b) +73
   Telerik.WebControls.RadGrid.SaveViewState() +439
   System.Web.UI.Control.SaveViewStateRecursive() +137
   System.Web.UI.Control.SaveViewStateRecursive() +254
   System.Web.UI.Control.SaveViewStateRecursive() +254
   System.Web.UI.Control.SaveViewStateRecursive() +254
   System.Web.UI.Control.SaveViewStateRecursive() +254
   System.Web.UI.Page.SaveAllState() +602
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5016
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2011
4 answers
366 views
Hi

            I am using radbutton in my page for printing the web page. I have using the the javascript function   OnClientClicked="javascript:self.print();return false;"   for printing. But it didn't  work. If i am using HTML or ASP button then it will work properly. Please give the solution for this problem.

Thanks,
Velkumar
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintDemo.aspx.cs" Inherits="PrintDemo" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
 
    <link rel="stylesheet" href="PrintStyleSheet.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <table style="width: 877px">
            <tr style="height:20px; vertical-align:middle;"  >
                <td align="center" id="headid">
                    <asp:Label id="Heading" Text="Print checking " runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="printContent" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="height:20px;">
             
                </td>
            </tr>
            <tr>
                <td align="center">
                    <telerik:RadButton ID="printbtn" Text=" Print " OnClientClicked="javascript:self.print();return false;"  runat="server"></telerik:RadButton>
                </td>
            </tr>
            <tr>
                <td align="center">
                   <asp:Button ID="printbutton" OnClientClick="javascript:self.print();return false;" Text="Print" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <input type="button" value="Print" onclick="JavaScript:window.print();" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
Velkumar
Top achievements
Rank 2
 answered on 17 Nov 2011
1 answer
111 views
I need to access the combobox values from with in jquery e.g.:

$(document).ready(function () {
var ddl = $("#<%= RadComboBox1.ClientID %>"); 
var value = ddl.get_value();
)};

How do I get this or something similar to work?

Thanks, Justin.
Princy
Top achievements
Rank 2
 answered on 17 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?