Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 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
149 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
611 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
187 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
110 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
81 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
211 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
89 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
5 answers
195 views
Hi,

In a particular usage scenario my uploaded files are 0 byte files after upload using Rad Async Upload.

I have built a simple utility that will take multiple logos, trim the white-space and re-size the image to be x number of pixels. The utility utilizes Rad Async Upload to handle uploading the files and it works fine as long as all the images are in the same folder.

However, we have a folder setup somewhat like the following:

Logos
   Client Name One
      Client Name One.ai
      Client Name One.eps
      Client Name One.pdf
      Client Name One.png
      Client Name One.jpg 
   Client Name Two
      Client Name Two.ai
      Client Name Two.eps
      Client Name Two.pdf
      Client Name Two.png
      Client Name Two.jpg
 
  etc.


So say I want to re-size all the jpg logos to be 10,000 pixels to go on the clients section of the website. Using Chrome 16 on Windows Vista I:
  1. Open Up my utility and enter 10,000
  2. Click on the "Select" button generated by Rad Async Upload
  3. In the top right search box search for *
  4. Stack the results by type checking "JPEG Image"
  5. Select the 2 or more images to upload
  6. Do a postback
  7. The first image is processed correctly
  8. The second image throws an error because it is 0 Bytes

Please let me know if you need more information to reproduce.

Jeff Paetkau

 


Bozhidar
Telerik team
 answered on 14 Dec 2011
5 answers
342 views
Hi, 
I tried to set the height of an item to 100px, but than the text go to down.
what should I need to change in the css?

10x
Kate
Telerik team
 answered on 14 Dec 2011
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?