I have built a RadEditor .cs class that i drop onto pages that require the editor tool.
Following is a part of the class where i create a custom button.
How do I add an icon/image to the button within the cs class.
Icon currently default to a question mark.
is the only way to do tihs within CSS.
public class Editor: RadEditor
{
public Editor()
{
EditorToolGroup etg = new EditorToolGroup();
EditorTool
Custom = new EditorTool();
etg.Tools.Add(Custom);
}
}
Hi,
I just noticed that when clicking on the OK button, the dialog form height shrinks a little.
You can see this behavior on the example provided at:
http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx
1. Click on "radalert dialog" button. The radalert is displayed.
2. Click "OK" on the dialog, but do not release the mouse button. You'll observe the behavior.
3. If you release the mouse button outside the "OK" button and repeat the steps, it does not keep shrinking.
Thanks,
Teo
Hi,
I am having issues when a user clicks outside the RadWindow and then presses ESC. This closes the window and it is happening on IE 7/ IE 8 and FF 3.5.
I found this post: http://www.telerik.com/community/forums/aspnet-ajax/window/radwindow-issues-in-firefox-3-0-5.aspx
Which kind of help me but it does not work on FF since there is no access to window.event:
| <script type="text/javascript"> |
| TelerikTelerik.Web.UI.RadWindow.prototype.old_close = Telerik.Web.UI.RadWindow.prototype.close; // Store the original function |
| Telerik.Web.UI.RadWindow.prototype.close = function(e) |
| { |
| //Override close |
| var ESC = 27; // ESC Key code is 27 |
| if (window.event && window.event.keyCode == ESC) |
| { |
| return true; |
| } |
| else this.old_close(); // Call original function |
| } |
| </script> |
Should there be a property allowing to configure this behavior?
Any help would be appreciated.
Thanks.
I need to add the number of records selected for deletion to the confirm dialogue box.
I have a RadGrid with a programmatically added GridClientSelectColumn (for the checkboxes for each row in the grid) and GridCommandItem that is a linkbutton with text = "Delete Selected". What I like to be able to do is have a confirmation dialog box appear with the number of records the client as has selected to delete.
protected
void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if
(e.Item is GridCommandItem)
{
LinkButton Delete = e.Item.FindControl("btnDeleteSelected") as LinkButton;
string js = null;
js =
"javascript:return confirm('Do you want to DELETE ";
js = js + RadGrid1.SelectedIndexes.Count +
" record(s)?')";
Delete.Attributes[
"onclick"] = js;
}
}
I have tried the above in the code behind but the RadGrid1.SelectedIndexes.Count is always 0.
I realize this maybe because the ItemCreated event is triggered before the SelectedIndexChanged event.
|
On server selection from Select/Deselect GridButtonColumn/Auto Postback on row click: |
|
|
For each Item in grid: |
|
|
ItemCreated |
|
|
Page.Load |
|
|
ItemCommand |
|
|
SelectedIndexChanged |
|
|
Other postback events |
|
|
Page.PreRender |
So, is there anyway I can get the count of the selected records and pass it to the confirm javascript when I click on my Delet Selected link button??
Thanks in advance for your advice,
cathy