Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
I am creating a timesheet application and need to be able to associate users to assignments.  I am currently using a grid to display all users in the organization, with a GridClientSelectColumn accompanying each user.  The administrator of the system would select the checkbox next to a users name to let the system know that the selected user can log time to that assignment.  The problem that I am encountering is that I see no way to populate the checkboxes of the users that are already associated with the assignment. 

The other option that I have explored is to use a GridBoundColumn with a template employing a checkbox in the item template.  This option does not work for me because it requires three clicks to select each user:  First click = Edit, Second click = check the associate checkbox, Third click = Accept.  This is extremely inefficient when there are several users that need to be associated with each assignment.

Any suggestions would be greatly appreciated.
Princy
Top achievements
Rank 2
 answered on 22 Sep 2008
1 answer
142 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
175 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
210 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
466 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
112 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
143 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
218 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
324 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
311 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?