Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
161 views
Hi

I have set up a font-family on a body level in my CSS.

I would like this font to filter through to my RadControls so that if I change it in one place, the changes are constant throughout the whole system.

Currently the RadControls display their own font which differs from my global font.
How do I change this? Obviously I mean WITHOUT having to specify any font attributes on the RadGrid controls.

Thanks
Paolo
Rumen
Telerik team
 answered on 14 Dec 2011
1 answer
136 views
Upon upgrading to 2011.2.712.40 our calendar shifts position 177px below the text box - on inspection with firebug/dev toolbar I see a div called "rcShadTR" with a height of 177px.

In other environments where these controls have not been updated I don't see this div and the calendars work fine. All of the other controls in the upgrade seem to have gone fine except for the calendars.

If I use css to set the rcShadTR to display none the control doesn't break so Im a little confused as to what this div does.
Tsvetina
Telerik team
 answered on 14 Dec 2011
1 answer
114 views
Hi Friends,

By using Rad Controls we can create IE Add on or any other way is there?

thanks,
Rumen
Telerik team
 answered on 14 Dec 2011
1 answer
114 views
I am trying to paste some code into a RadEditor control from Word.

If I paste it into another application like Dreamweaver, it includes a <style> section when I view the HTML, like this:

<style type="text/css">
<!--
p.MsoNormal {
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Cambria","serif";
}
p.MsoListParagraphCxSpLast {
margin-top:0cm;
margin-right:0cm;
margin-bottom:.0001pt;
margin-left:36.0pt;
font-size:12.0pt;
font-family:"Cambria","serif";
}
span.MsoHyperlink {
color:blue;
text-decoration:underline;
text-underline:single;
}
-->
</style>

If I paste it into the RadEditor control and look at the HTML, it includes everything apart from the <style> section. This means that some of the formatting defined in the <style> is not shown.

If I manually paste this section using the HTML editor in the RadEditor control it looks fine. However, the people who will be using the system are not technical enough to do this.

Is it possible to configure an option to include this when it is pasted (or if not, configure Word so that it applies they styling to the text elements itself rather than using inline CSS when you copy from it)?

Thanks, Richard


Dobromir
Telerik team
 answered on 14 Dec 2011
8 answers
553 views
We have a single video upload field as part of a larger form. All fields in the form, including the upload field, need to be required. We're having trouble figuring out how to make the radupload field required as the required field validator control won't work with radupload.

I saw an earlier question on the same topic but the answer just referred back to the custom validator which seems to validate for file type and size but I didn't see anywhere where it would validate that there is actually a file selected.

thanks for any help/direction you can give.

Jeff
Dimitar Terziev
Telerik team
 answered on 14 Dec 2011
3 answers
150 views
Hi,

I have a problem with the attributes (DataValueField), this is my code :
treeView.DataTextField = "CheminFr";
treeView.DataFieldID = "CLA_CODE";
treeView.DataFieldParentID = "PARENT_CLA_CODE";
treeView.DataValueField = "CLA_ID";           
treeView.DataValueField = "CLA_ACTIVE";
treeView.DataValueField = "profondeur";
treeView.DataValueField = "cheminEn";
treeView.DataValueField = "ChildrenAllowed";
treeView.DataValueField = "nbArticle";
 
//Récupère l'arbre à afficher
DataSet ds = MichelFactory.getAllHierarchy();
 
treeView.DataSource = ds;
treeView.DataBind();

In debug mode,
ds.Tables[0].Rows[0]["nbArticle"] = 52 but treeView.Nodes[0].Attributes.Count = 0 :-/

The tree is displayed correctly... but I can't find the attributes.

Do you have an idea?






Michel
Top achievements
Rank 1
 answered on 14 Dec 2011
1 answer
80 views
I have a listview with integrated DataPagers.  If I set AllowSEOPaging it causes the user's page size setting to be reset.

Steps to reproduce:
  1. Open the page
  2. Change page size to 20.  The page posts and now the listview is set to page size 20
  3. Select page 2 on the pager.  The page posts and the listview is on the second page, but the page size is back to 12 again.

If I remove the AllowSEOPaging property, then page size stays where the user set it.

<telerik:RadListView ID="SearchRadListView" runat="server" ItemPlaceholderID="ItemPlaceHolder"
    DataKeyNames="id" DataSourceID="SearchSqlDataSource" AllowPaging="True" PageSize="12" BackColor="White" >
    <LayoutTemplate>
        <div>
            <div style="clear: both; margin-right: 5px; margin-left: 5px;">
            <telerik:RadDataPager ID="RadDataPager2" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Default" AllowSEOPaging="True">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerGoToPageField />
                    <telerik:RadDataPagerPageSizeField />
                    <telerik:RadDataPagerTemplatePageField>
                    <PagerTemplate>
                    </PagerTemplate></telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            </div>
            <asp:PlaceHolder ID="ItemPlaceHolder" runat="server"></asp:PlaceHolder>
            <div style="clear: both; margin-right: 5px; margin-left: 5px;">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Default" AllowSEOPaging="True">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerGoToPageField />
                    <telerik:RadDataPagerPageSizeField />
                </Fields>
            </telerik:RadDataPager>
            </div>
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="mb-results" style="text-align: center;">
            <div>
                <a href='../species.asp?id=<%# Eval("id")%>'>
                    <img class="mbphotos" alt="<%# Eval("comname")%> - <%# Eval("GenusName")%> <%# Eval("SpeciesName")%>" src='<%# Eval("pic")%>'>
                </a>
            </div>
            <a href='../species.asp?id=<%# Eval("id")%>'><strong><%# Eval("comname")%></strong><br />
                <em><%# Eval("GenusName")%> <%# Eval("SpeciesName")%></em>
            </a>
            <br />
            Family: <a href='../search/Index.aspx?family=<%# Eval("FamilyName")%>'><%# Eval("FamilyName")%></a>
        </div>
    </ItemTemplate>
</telerik:RadListView>
Mira
Telerik team
 answered on 14 Dec 2011
1 answer
60 views
Hello,

When I use media or flash manager to insert video or flash into RTE it generates the following HTML:
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="150" height="150" type="application/x-oleobject">
<param name="URL" value="~/media/AC77CAFB2FB94221B2B45A0D773DEB27.ashx"/>
<embed src="%7E/media/AC77CAFB2FB94221B2B45A0D773DEB27.ashx" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer" height="150" width="150">
</object>


The problem is that the embed tag does not pass wc3 validation. How this can be solved?
Rumen
Telerik team
 answered on 14 Dec 2011
2 answers
172 views
Hey Techies,

We are using RadEditor control in MOSS. After entering text, as soon as we apply, SPELL CHECK, following error occurred. We are not getting root cause for same.

Spell Check Handler Server Error:500



[DictionaryFormatException: Invalid dictionary format.  Please import the word list with the Dictionary tool or download a newer dictionary.]

   Telerik.Web.UI.Dictionaries.SpellDictionary.LoadBaseDictionary(TextReader baseDictionaryReader) +306

   Telerik.Web.UI.Dictionaries.EditDistanceDictionary.Load(TextReader baseDictionaryReader, ICustomDictionarySource customSource, String cacheKey) +39

   Telerik.Web.UI.SpellChecker.LoadDictionary() +403

   Telerik.Web.UI.SpellChecker.CheckWord(String word, String sLastWord) +185

   Telerik.Web.UI.SpellChecker.CheckText() +226

   Telerik.Web.UI.SpellCheckHandler.ProcessSpellCheckRequest(HttpResponse response, SpellChecker checker, String text) +104

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +638

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +177

</pre></code>


we checked, *.tdf files are presented at following locations ->C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed\Resources\App_Data\RadSpell with Network Service provided.

Any help and pointers to resolve this is highly appericiated!!

Thanks,
Tarun




Ravi
Top achievements
Rank 1
 answered on 14 Dec 2011
0 answers
71 views
Hi,

I have the following code on my page:

var isDirty = false;
 
function OnTextBoxValueChanged(sender, args)
{
 isDirty = true;
}
 
window.onbeforeunload = function ()
{
 if (isDirty)
 {
   return 'You have unsaved changes on the form.';
 }
}

OnTextBoxValueChanged is the handler for RadTextBox's corresponding client event.

if user changes text in textbox, then moves focus to any other element and then presses 'close tab' in browser - confirmation window appears. This is correct. But the problem appears when user changes text and then immediately presses 'close tab'. In this case onbeforeunload event fires before onvaluechanged and isDirty variable has incorrect value (false) in onbeforeunload handler.

Am I doing something wrong or is there a workaround for my case?

Thanks,
Andrey
Andrey
Top achievements
Rank 1
 asked on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?