Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
HI,

I have a radgrid which shows numeric data.

I agregate this data with the sum function and it shows in the footer the total.

Now I need to validate the footer.
When it is negative it needs to be red, and when it is positive in need to be black.

I am doing this in VB.net.

Is there anyway to call the footer text for a specific column on the code behind?
or is there a special data format string that will change the color of the text when it is negative?
Alessandro
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
119 views
I am displaying a RadGrid in a popup window and have Context Menus enabled but when I right click on the headers, the Context Menu does not display.  It works fine if I have it within the main document.
Maria Ilieva
Telerik team
 answered on 01 Nov 2011
1 answer
111 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
161 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
98 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
524 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
112 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
78 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
150 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
72 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
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?