I'm looking for a way to modify the alt rsp. tooltip text for ExpandCollapseColumn-ExpandImageUrl and ExpandCollapseColumn-CollapseImageUrl. I want to have different text on several pages e.g. in one page simple "collapse", in an other page "more information" and so on.
I did similar with the filter menu in Page_Load
Dim Menu As GridFilterMenu = RadGrid1.FilterMenu
Dim item As RadMenuItem
For Each item In Menu.Items
item.BackColor = Color.LightGreen
'change the text for the StartsWith menu item
If item.Text = "NoFilter" Then
item.Text = "kein Filter"
End If
And so on.
But I didn't find a similar solution for the ExpandImage and CollapseImage in the ExpandColumn.
Any suggestions, ideas?
Thanks
How is it possible to use a custom CSS-File for the RadEditor Content if the RadEditor ist instantiated in a CS Class File and not as a aspx-Control?
We defined a RadControl Object and tried to add our CSS-File by "radEditor.CssFiles.Add(new EditorCssFile(cssUrl));" But it doesn't work tough. It seems that the Method "CssFiles.Add(EditorCssFile file)" doesn't work in the same way as adding a external CSS File trough a aspx Property.
this is the sourcecode:
public class ITeamTextEditor : RadEditor {
public ITeamTextEditor(Page page, String text) {
...
this.EditModes = Telerik.Web.UI.EditModes.Design ^ Telerik.Web.UI.EditModes.Html;
this.Content = text;
...
////doesn't work??////
String cssUrl = "/EditorContentArea.css";
*****this.CssFiles.Add(new EditorCssFile(cssUrl));*****
...
}
The CSS-File doesn't show up in the Head-Tag of the I-Frame of the RadEditor Content. We tried out your example with a RadEditor in a aspx file and it worked. But if you use the RadEditor inside C#-code, it doesn't.
Best Regards
Rinaldo
<script type="text/javascript" language="javascript"> function findPosX(obj) { var curleft = 0; if (obj.offsetParent) while (1) { curleft += obj.offsetLeft; if (!obj.offsetParent) break; obj = obj.offsetParent; } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (obj.offsetParent) while (1) { curtop += obj.offsetTop; if (!obj.offsetParent) break; obj = obj.offsetParent; } else if (obj.y) curtop += obj.y; return curtop; } function ClientNodeDragging(sender, eventArgs) { var domEvent = eventArgs.get_domEvent(); var node = eventArgs.get_node(); var MyPanel; if (document.getElementById('<%= leftPanel.FindControl("pnlPositionSelector").ClientID %>') != null) { MyPanel = document.getElementById('<%= leftPanel.FindControl("pnlPositionSelector").ClientID %>'); node.set_text("Dragging X:" + domEvent.offsetX + " Y:" + domEvent.offsetY + " target XPos=" + findPosX(MyPanel) + " target YPos=" + findPosY(MyPanel)); } else { node.set_text("Dragging X:" + domEvent.offsetX + " Y:" + domEvent.offsetY); } //MyPanel.style.height = NewHeight + "px"; //MyPanel.style.width = NewWidth + "px"; } </script>