Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
159 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
87 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
66 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
186 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
77 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
155 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
181 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
124 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
126 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
1 answer
51 views
Hello Friends,

i am new in telerik and i am facing one problem
i am using master and details table in radgrid in my project  when i click on expand icon page take postback and id not getting in itemdatabound event ,
i am also use

  

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 <AjaxSettings>

 <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 <UpdatedControls>

 <telerik:AjaxUpdatedControl ControlID="radGridSupportCategories" />

 <telerik:AjaxUpdatedControl ControlID="radbtnSearch" />

 </UpdatedControls>

 </telerik:AjaxSetting>

 </AjaxSettings>

 </telerik:RadAjaxManager>

 <telerik:RadGrid ID="radGridSupportCategories" runat="server" OnNeedDataSource="radGridSupportCategories_NeedDataSource"

 AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellSpacing="0"

 GridLines="None" OnDetailTableDataBind="radGridSupportCategories_DetailTableDataBind"

 OnItemDataBound="radGridSupportCategories_ItemDataBound">

 pls anyone has solution than tell me i am waiting

Princy
Top achievements
Rank 2
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?