Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hello,

I seem to have some problem with table context menus. If I don't specify which toolbars to load, the html table context menu works fine (right clicking on it), but if I do it will no longer work. Here's the HTML for my rad editor:

<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Outlook" NewLineBr=true  >
                <Tools>
                   <telerik:EditorToolGroup DockingZone="Bottom" > 
                       <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />                      
                       <telerik:EditorTool Name="Redo" shortcut="CTRL+Y" /> 
                       <telerik:EditorSeparator />                  
                       <telerik:EditorTool Name="Cut" ShortCut="CTRL+X" />            
                       <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                       <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                       <telerik:EditorSeparator />
                       <telerik:EditorTool Name="PasteFromWord" /> 
                       <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                       <telerik:EditorTool Name="PastePlainText" />                                         
                       <telerik:EditorTool Name="PasteAsHtml" /> 
                   </telerik:EditorToolGroup>
                  
                    <telerik:EditorToolGroup DockingZone="Bottom">
                       <telerik:EditorSeparator />
                       <telerik:EditorTool Name="InsertTable" />                      
                       <telerik:EditorTool Name="LinkManager" shortcut="CTRL+K" />
                       <telerik:EditorTool Name="LinkManager" shortcut="CTRL+SHIFT+K" /> 
                       <telerik:EditorTool Name="InsertParagraph" shortcut="CTRL+ENTER" />           
                       <telerik:EditorTool Name="InsertHorizontalRule"  />
                       <telerik:EditorTool Name="InsertSymbol" /> 
                   </telerik:EditorToolGroup> 
                  
                   <telerik:EditorToolGroup DockingZone="Bottom">
                       <telerik:EditorSeparator />
                       <telerik:EditorTool Name="FindAndReplace" shortcut="CTRL+F" />
                       <telerik:EditorTool Name="AjaxSpellCheck" />
                       <telerik:EditorTool Name="ToggleTableBorder" />
                       <telerik:EditorTool Name="ToggleScreenMode" shortcut="F11" />
                   </telerik:EditorToolGroup>                                   
                
                   <telerik:EditorToolGroup >
                       <telerik:EditorTool Name="ForeColor" />
                       <telerik:EditorTool Name="BackColor" />            
                       <telerik:EditorTool Name="FontName"  />
                       <telerik:EditorTool Name="RealFontSize" /> 
                   </telerik:EditorToolGroup>  
                  
                   <telerik:EditorToolGroup >
                       <telerik:EditorTool Name="Bold" shortcut="CTRL+B" />
                       <telerik:EditorTool Name="Italic" shortcut="CTRL+I" />
                       <telerik:EditorTool Name="Underline" shortcut="CTRL+U" />
                       <telerik:EditorSeparator />          
                       <telerik:EditorTool Name="Outdent"  />
                       <telerik:EditorTool Name="Indent" />
                       <telerik:EditorTool Name="InsertUnorderedList" />
                       <telerik:EditorTool Name="InsertOrderedList" />
                       <telerik:EditorSeparator />                      
                       <telerik:EditorTool Name="Superscript" />
                       <telerik:EditorTool Name="Subscript" />
                       <telerik:EditorTool Name="StrikeThrough" />
                       <telerik:EditorSeparator /> 
                       <telerik:EditorTool Name="FormatStripper"  />
                       <telerik:EditorSeparator /> 
                       <telerik:EditorTool Name="JustifyLeft" /> 
                       <telerik:EditorTool Name="JustifyCenter" />
                       <telerik:EditorTool Name="JustifyRight" />
                       <telerik:EditorTool Name="JustifyFull" />
                       <telerik:EditorTool Name="JustifyNone" />                    
                   </telerik:EditorToolGroup>
    
                </Tools>               
            </telerik:RadEditor>

Any ideas?

Thanks,
Chris
Rumen
Telerik team
 answered on 22 Sep 2008
3 answers
182 views
Hello,

I have an ASP.NET page that contains a RadGrid control. It has not auto generated columns and I use simple data binding, because advanced one does not work correctly for me. This RadGrid also has a CommandItemTemplate with, to make it simple, Edit button (performs in place editing of selected item). And the problem is when I click Edit button for selected row, it does not make the row editable. ItemCommand fires, but ItemIndex is not set and Item is null.

It seems to me that the problem is with data-binding. RadGrid's data source is set and bound on each page load. But I do not know how to overcome this. Any help will be highly appreciated.
librido
Top achievements
Rank 1
 answered on 22 Sep 2008
1 answer
216 views
Hello,

I have a content page, with a radtoolbar and a radgrid. were using the radajaxmanger as well. on the radtoolbar is a button then when pressed use's ajax and javascript to load the page in the form of a model pop up view. on the toolbar as well, is an edit button, then when a record on the grid is selected and the edit button is clicked, uses ajax and javascript to load another page in modal pop up view.

the next 2 buttons, enable or disable records on the grid when a row on the grid is selected and 1 of the buttons is clicked.

then we have a button with export to excel.

heres the problem. export to excel and the enable and disable buttons will not fire with the ajax on the page. without the ajax, the modal pop up view pages will not fire, but the export to excel and disable/enable buttons will.

i used the RadAjaxManager.GetCurrent(this.Page).AjaxSettings.Clear(); line of code to clear the ajax then try to fire the export toexcel, however the button needs to be double clicked because the ajax isn't actually cleared until the postback occurs.

so you click the button once, it clears the ajax, you ahve to click the same button again for the export to excel to actually fire since the ajax cleared after the postback from the previous click.

same happens vice versa when trying to activate the ajax back in so the modal pop up views will work, the button has to be clicked twice because the ajax won't activate till after the postback.

im looking for suggestions to make the button 1 click to clear the ajax, do the postback, then run the export to excel for the grid data.

here is current coding.

            RadAjaxManager.GetCurrent(this.Page).AjaxSettings.Clear();

            GridView1.ExportSettings.ExportOnlyData = true;
            GridView1.ExportSettings.OpenInNewWindow = true;
            GridView1.ExportSettings.FileName = "RulesExport";
            GridView1.MasterTableView.ExportToExcel();

when re-enabling the ajax.....

RadAjaxManager1 = (RadAjaxManager)Master.FindControl("RadAjaxManager1");
            RadAjaxLoadingPanel1 = (RadAjaxLoadingPanel)Master.FindControl("RadAjaxLoadingPanel1");
            RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(RadAjaxManager1, this.GridView1, RadAjaxLoadingPanel1);
            RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(this.gridPane, this.GridView1, RadAjaxLoadingPanel1);


Vlad
Telerik team
 answered on 22 Sep 2008
3 answers
470 views

How to I format DateTime to 'dd/mm/yyyy' with date field in RadGrid?
Princy
Top achievements
Rank 2
 answered on 22 Sep 2008
1 answer
114 views
Hello,

I am using RadEditor and I would like to light the ApplyCSS DropDownList...
I am using the ContentAreaCssFile properties in ASPX code and it is working but after the all style of this CSS file, the dropdownlist is automaticaly binded with all the other CSS file which are declared in the master page like that :

 
    <link rel="stylesheet" href="Skins/Telerik/Dock.Telerik.css" type="text/css" /> 
    <link rel="stylesheet" href="Skins/Telerik/PanelBar.Telerik.css" type="text/css" /> 
    <link rel="stylesheet" href="Skins/Default2006/Editor.Default2006.css" type="text/css" /> 
    <link rel="Stylesheet" type="text/css" href="Skins/Editor.css" /> 
    <link rel="Stylesheet" type="text/css" href="Skins/Dock.css" /> 

How can I do to prevent this to happen?

Thank you for your help.
Read you soon
Rumen
Telerik team
 answered on 22 Sep 2008
1 answer
152 views

Hi,

I'm using the following code to save content from my editor:

string content = passedContent
StreamWriter SW;
SW=File.CreateText("c:\\Test.html");
SW.WriteLine(content);
SW.Close();

/* this is the html that is passed from the editor
<table>
    <tbody>
        <tr>
            <td>test </td>
            <td> </td>
        </tr>
    </tbody>
</table>
*/
this works fine. However when I view the html file I see  appearing within the content (within the empty table cell etc). When I open the page in notepad and re save using Encoding UTF-8 and the  disappear.
So I have tried:
SW.WriteLine(fileText, Encoding.UTF8);
but I'm still getting the  appearing!
Any ideas as to what’s happening?

Rumen
Telerik team
 answered on 22 Sep 2008
2 answers
219 views
Hi,$0$0I have installed Rad Editor on other MOSS systems but never experienced the issue I am having now with my latest installation.  It appears that rad editor is converting line breaks or spaces to a "$0" (dollar sign and zero).$0$0$0$0Yesterday I installed rad editor (latest version) on the latest SharePoint.  I have done other customizations but nothing I know of that would cause this.  I have a suspicioun that it might be something with output escaping but I don't know where that lives for the Rad Editor.$0$0Here is an example of the output I see when I go to HTML view.  When I click save, the characters show up in the regular page view.  The content was originally created with the standard out of the box SharePoint rich text editor so it did not contain the $0.$0$0$0$0$0$0$0<strong>Staff</strong> $0$0$0$0$0
Rumen
Telerik team
 answered on 22 Sep 2008
4 answers
329 views
Hi,

     How to bind the string values in the x axis? .I already see one of u r previous example that to set the autoscale property for the x axis to false.Then set the text property to the corresponding axis.In u r example i saw that u done all these property settings within the PlotArea.But in my  plotarea i didn't get this Xaxis within this area.So what's this problem is this due to any version problem or anything else.In the aspx page i add the assembly like this in top of my design page

%@ Register TagPrefix="radc" Namespace="Telerik.WebControls" Assembly="RadChart.Net2" %>
<%@ Register TagPrefix="radc" Namespace="Telerik.Charting" Assembly="RadChart.NET2" %>

           Here in my rad chart control i am also didn't get the autowraptext property .

What's the solution for this?
Help me immediately.....

Giri
Top achievements
Rank 1
 answered on 22 Sep 2008
3 answers
319 views
Hi

I have a little problem with empty cells.
If I set a cell to ""  the cell return &nbsp
I understand this.

I would like to know if there is a way that cell.text return nothing.

Actualy I have to put a lot of if in order to have the good result.

For

Each item As GridDataItem In Grille.Items 
  
If item.Selected Then 
    
If item("Tel.").Text <> "&nbsp;" Then ZTel.Text = item("Tel.").Text Else ZTel.Text = "" 
    If item("Nom").Text <> "&nbsp;" Then ZNom.Text = item("Nom").Text Else ZNom.Text = "" 
    
If item("Soc").Text <> "&nbsp;" Then ZSoc.Text = item("Soc").Text Else ZSoc.Text = "" 
    
If item("Lieu").Text <> "&nbsp;" Then Zlocal.Text = item("Lieu").Text Else Zlocal.Text = "" 
    
If item("Prenom").Text <> "&nbsp;" Then ZPrenom.Text = item("Prenom").Text Else ZPrenom.Text = "" 
    
If item("Gsm").Text <> "&nbsp;" Then Zgsm.Text = item("Gsm").Text Else Zgsm.Text = "" 
    If item("Servic").Text <> "&nbsp;" Then Zservice.Text = item("Servic").Text Else Zservice.Text = "" 
    
If item("email").Text <> "&nbsp;" Then Zemail.Text = item("email").Text Else Zemail.Text = "" 
    
If item("titre").Text <> "&nbsp;" Then Ztitre.Text = item("titre").Text Else Ztitre.Text = "" 
    
If item("Sam").Text <> "&nbsp;" Then ZSamSec.Text = item("Sam").Text Else ZSamSec.Text = "" 
    
If item("Sec").Text <> "&nbsp;" Then Zsec.Text = item("Sec").Text Else Zsec.Text = "" 
    
If item("Telsec").Text <> "&nbsp;" Then Zsectel.Text = item("Telsec").Text Else Zsectel.Text = "" 
    Exit For
  End If
Next


Is there a best way ???

Thanks all
Daniel
Telerik team
 answered on 22 Sep 2008
1 answer
170 views
Hi,

I am fairly new to ASP.NET.  I am having a bit of difficulty trying to use the treeview drag and drop as a means of ordering pages.

The use case is to allow the user to have the ability drag a node and move it to a new location in the same control and then save to the database.

My database structure is the same as the rad menu example...

Table: tblPages
Column: PageID
Column: ParentID
Column: PageTitle

Here is my control setup.

<telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" DataFieldID="PageID"
        DataFieldParentID="ParentID" DataSourceID="SqlDataSource1" DataTextField="PageTitle"
        Skin="Web20">
        <CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>
        <ExpandAnimation Duration="100"></ExpandAnimation>
    </telerik:RadTreeView>
  <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT * FROM [tblPages]"></asp:SqlDataSource>

I have nothing in my code behind. I tried using the examples but can't get anything to work without errors in VS 2008, complaining about the code.

Any help in a direction or pointing to a sample that is related to my goal  would be great. I have lost what hair I had left from trying to work with the demos. : (

Atanas Korchev
Telerik team
 answered on 22 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?