Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
Hi Everybody,

Creating new folder in file explorer is not working for me. I tried creating it on client side.
I tried using the following method, it didn't worked, it shows the alert('in') repeatedly like a loop, and its not going through.

Anyone please give me a suggestion.

<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="95%" Height="450px"
  OnClientDelete="OnClientDelete" CssClass="rfeFocus" AllowPaging="true" PageSize="6"
  EnableCopy="true"   EnableCreateNewFolder="true" OnClientCreateNewFolder="GetName">
               <Configuration ViewPaths="~/FileExplorer/Default/Root Folder/Documents" UploadPaths="~/FileExplorer/Default/Root 
                  Folder/Documents" DeletePaths="~/FileExplorer/Default/Root Folder/Documents" />
               <KeyboardShortcuts FocusFileExplorer="Ctrl+f2" FocusToolBar="Shift+1" FocusAddressBar="Shift+2"
                 FocusTreeView="Shift+3" FocusGrid="Shift+4" FocusGridPagingSlider="Shift+5" UploadFile="Ctrl+u"
                 Back="Ctrl+k" Forward="Ctrl+l" NewFolder="Ctrl+n" Refresh="Ctrl+f3" ContextMenu="Shift+m" />
</telerik:RadFileExplorer>

function GetName()
{
            alert('in');
            var MyFM = $find('<%= FileExplorer1.ClientID %>');
            var appRoot = '<%= VirtualPathUtility.ToAbsolute("~") %>';
            MyFM.createNewDirectory(appRoot + "/Test", "556477");
            
}

Any one please provide a solution to this issue.

Thank You,
Dobromir
Telerik team
 answered on 14 Dec 2011
1 answer
104 views
In my .aspx file I have:


<style type="text/css">
.rsContent .rsContentTable .rsRow .rsSatCol,  
         .rsContent .rsContentTable .rsRow .rsSunCol   
        {  
          background:#D0ECBB;  
        }
</style>


I want for a specific cell in the scheduler to be colored green. With my code every column from Saturday and Sunday is colored. But I want only those cells which have appointments to be colored green. How to do this?
Plamen
Telerik team
 answered on 14 Dec 2011
2 answers
151 views
Hi,

I try to execute some server-side code when the cross is clicked. This code needs to deside if the window can be closed or not. I used this code for it:

OnClientBeforeClose = "function(s, e) {e.set_cancel(true);__doPostBack('" + UniqueID + "', '" + CloseDialog + "');}";


Inside the raisePostBack method I call "window.close()" client-sided if my code want the window to close.

I used parts of this sample to make this, but this is totaly handled client-side:
http://www.telerik.com/community/code-library/aspnet-ajax/window/confirm-closing-of-a-radwindow-by-using-radconfirm.aspx

My problem is that when I call the "window.close()" method client-sided the onClientBeforeClose method is executed first again and will stop the close action of the window.

Any suggestion how I can solve this problem?

Thanks!
Erik
 
Erik
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
152 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
126 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
103 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
107 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
531 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?