Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
533 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
146 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
77 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
54 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
156 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
67 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
133 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
160 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
2 answers
107 views
At the moment, we have our radmenu on a master page. This menu is being reloaded every time a new page is loaded so it's not very efficient. Is there a way we can get the menu to load once on initialisation of the application and persist until the session is ended?
Kate
Telerik team
 answered on 14 Dec 2011
3 answers
114 views

Hi:
I have a  grid that appears to work properly in ASP.net 3.5 and IE8.  That means the grid will fill up the page and the pager control will appear at the bottom and there is a vertical scroll bar that will scroll the number of rows per page.

But when I upgraded to framework 4 and IE 9, the grid extends past the bottom of the browser and I have to enlarge the browser window to see the page control.  In some cases only half the page control will appear without some type of manual refresh.

Are there issues with the Grid control and ASP.Net 4 and or IE9?  Incidentally, I don't believe it is an IE9 problem because I get the same behaviour in FireFox and Opera.

Thanks

Maria Ilieva
Telerik team
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?