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

Currently when expanding a node the control performs a Post Back to the "NeedsData" event.  Each response from the server contains all of the HTML needed to rebuild the whole grid - this is making our grid extremely slow when digging into the lower levels. 

Having read the other forum posts it appears its not currently possible to get the control to render and operate fully on the client side.  Can you add this functionality?  

The control is perfect for our needs but due to the performance issues its currently stopping us from using it.

Regards,
Rene 
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
1 answer
139 views
I am writing to learn if it is possible to specify a physical path on a web server, rather than a virtual path in the web application, for the destination of an uploaded file;

Does this type of functionality need to be specified with C#, rather than in the configuration section of the RadFileExplorer?

Thanks in advance for any insight;  Best regards - Rob   

<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server">
              <Configuration ViewPaths="~/Customers" UploadPaths="~/Customers"
                       DeletePaths="~/Customers" />
       </telerik:RadFileExplorer>
Dobromir
Telerik team
 answered on 01 Nov 2011
1 answer
80 views
Hi,

I developed a generic custom provider for Webdav, UNC paths, and local paths (C:/...) 1 year ago and it worked very well.
I used the 2010 R2 version of the components.

I updated a few days ago and i installed the 2011 R2 and now it's not working anymore. It seems that some functions that need a virtualPath (for example CheckWritePermissions) get a physical path (in case of UNC path).

What is going wrong?

In the URL bar, it's the UNC path which is displayed, instead of the virtual path.

What can I do? Thanks a lot for your help!
Dobromir
Telerik team
 answered on 01 Nov 2011
7 answers
472 views
Hello,

Is there a way to change the images during expanding nodes in treeview?
for instance:

i have a parent node with 5 childs.
the parent has a "close folder" image. when i expand the parent i would like the parent image will be change to "open folder" image.
and when i close the parent the image will be change again to "close folder" image.
the other childs node will have another image lets call it "file" image.

it is exactly like the default plus and minus images in the treeview control.
when i click on the plus it becomes to minus and vice versa.

small example will be very helpful.

Regards,
Oren
Nikolay Tsenkov
Telerik team
 answered on 01 Nov 2011
3 answers
92 views
I am populating a grid from a datatable. I have to populate the columns from a database table to allow dynamic changing of fields and names:


                                foreach (DataRowView drv in dt.DefaultView)
                                {
                                    GridBoundColumn boundColumn;
                                    boundColumn = new GridBoundColumn();
                                    boundColumn.DataField = drv["DATA_FIELD"].ToString();
                                    boundColumn.UniqueName = drv["DATA_FIELD"].ToString();
                                    string x = L10N.Term(Context.Application, "test", drv["HEADER_TEXT"].ToString());
                                   
                                    boundColumn.HeaderText = L10n.Term(x);
                                    RadGrid1.MasterTableView.Columns.Add(boundColumn);


                                   
                                }

Even though I have told it what columns I want it to have it populates all the columns from the SQL search string. which has "Select * from "

Am I missing something?
Michael
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
65 views
Here's my big problem

I paste this msword content to radeditor

Test de formulaire

Avec du rouge

Du bleu

Et du vert

User highlight Test de formulaire and click custom button with this code :

var selection = String(editor.getSelectionHtml());

                //selection = selection.replace("<q>", "");
                //selection = selection.replace("</q>", "");
                //selection = selection.replace("<Q>", "");
                //selection = selection.replace("</Q>", "");

                //Remove all custom tags before insert new custom tags
                var html = editor.get_html(false);
                html = html.replace("<q>", "");
                html = html.replace("</q>", "");
                html = html.replace("<Q>", "");
                html = html.replace("</Q>", "");

                var newhtml = html.replace(selectedText, '<q>' + selectedText + '</q>');
                //var newhtml = html.replace(selection, '<q>' + selection + '</q>');
                editor.set_html(newhtml);

                //Set schedule text
                var txtScheduleText = $find("<%=txtScheduleText.ClientID%>");
                txtScheduleText.set_mode(4);
                txtScheduleText.set_html(selection);
                txtScheduleText.set_mode(4);

This code must replace selectedhtml text like this : <FONT size=3 face=calibri>Ceci est un test</FONT>  by <q><FONT size=3 face=calibri>Ceci est un test</FONT></q>

The problem is that when i call var newhtml = html.replace(selection, '<q>' + selection + '</q>'); selection not exist in html because html look like this with msword special tag :

<FONT face=georgia>

<P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal><FONT size=3 face=calibri>Ceci est un test<?xml:namespace prefix = o /><o:p></o:p></FONT></P>

<P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal><FONT color=#ff0000 size=3 face=calibri>En rouge<o:p></o:p></FONT></P>

<P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal><FONT color=#00b0f0 size=3 face=calibri>En bleu<o:p></o:p></FONT></P>

<P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal><FONT color=#00b050 size=3 face=calibri>En vert<o:p></o:p></FONT></P></FONT>

Do you have a valid solution to replace my html selection ?

 

 

 

Rumen
Telerik team
 answered on 01 Nov 2011
2 answers
128 views
so I've use radwindow alot but now i have a case where the window opens and closes immediately, various threads say to do this in order to cancel the post back "(); return false;" like this:
<telerik:RadButton ID="btnNew" runat="server" OnClientClicked="ShowLectureAuthor(); return false;"   Text="New"
		 ToolTip="Create New File" Skin="Telerik">
		<Icon PrimaryIconUrl="~/images/fileimages/AddRecord.gif" PrimaryIconLeft="5px" />
<Icon PrimaryIconUrl="~/images/fileimages/AddRecord.gif" PrimaryIconLeft="5px"></Icon>
 </telerik:RadButton> 
the javascript which works, looks like this:
    function ShowLectureAuthor() {
        var oWindow = window.radopen("Admin-Lecture-Author.aspx"null);
        oWindow.SetTitle("Author Document");
        oWindow.SetModal(true);
} when I add the (); return false; I get errors on page load and none of the buttons work: Webpage error details

Message: Expected '}'
Line: 762
Char: 421
Code: 0

Really confused , thanks in advance
david
Top achievements
Rank 1
 answered on 01 Nov 2011
2 answers
57 views
Hi,

I am using the version Q2 2011. When I expand the CSS Class combobox for the selected document inside the Document Manager I receive the bunch of errors "File does not exist" (about 50 of them) like http://localhost:51217/Menu/rmRoundedLeft_rtl.png, http://localhost:51217/Common/TreeView/TopLine.pngCommon/TreeView/TopLine.png, http://localhost:51217/Window/WindowHorizontalSprites.png, http://localhost:51217/Grid/rgDrag.gif, etc... And it happens for all embedded skins that I checked so far.

Any explanations and/or work around are greatly appreciated.

Thank you,
Tatiana
Tatiana
Top achievements
Rank 2
 answered on 01 Nov 2011
4 answers
118 views
I used RADGrid Control to create grid data as FreeView. My code in ASP.NET below:


<telerik:RadGrid ID="gridDocs" runat="server" AllowPaging="false" BorderWidth="0px"
        AutoGenerateColumns="False" OnItemCommand="gridDocs_ItemCommand" 
        OnItemDataBound="gridDocs_ItemDataBound" OnItemCreated="gridDocs_ItemCreated" OnColumnCreated="gridDocs_ColumnCreated"
        EnableLinqExpressions="false">
        <%-- JHE :  HierarchyDefaultExpanded="false" parameter which define if all is expanded or not--%>        
        <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind"
            DataKeyNames="ID, ParentID" Width="100%" ExpandCollapseColumn-Display="true" RowIndicatorColumn-Visible="true"
            GridLines="Both"> 
                      
            <NestedViewTemplate>
                <asp:Panel runat="server" ID="InnerContainer">
                    <asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>                         
                  </asp:Panel>
                </NestedViewTemplate>

            
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Resizable="true">
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"/>  
            <PagerStyle Mode="numericpages" />
            <NoRecordsTemplate>
                no records retrieved
            </NoRecordsTemplate>
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>            
            <Columns> 
....
The BOLD lines: I want to View Detail of a row. But If I don't user lines:

 <NestedViewTemplate>
                <asp:Panel runat="server" ID="InnerContainer">
                    <asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>                         
                  </asp:Panel>
                </NestedViewTemplate>


It works OK
If I use the Bold lines to show detail=> it does't work.
The problem: If I use  <NestedViewTemplate>=> The tree view is broken.

attached file is what I exptect: When I click on icon"+"=> detail will be shown.


Pls help me to do it
Thanks alot
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
1 answer
53 views
Unexpected behavior: when highlighting a line of text from right to left, the RadEditor toolbar disappears. I tested IE 8, FF 7, and Chrome 15--of the browsers tested, the behavior only occurs in IE8.

This only occurs if I "sweep" the cursor across the line of text. If I very carefully select only up to the first character in the line, the toolbar remains present.
Rumen
Telerik team
 answered on 01 Nov 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?