Dear All
I need to change text direction of RadEditor from server side on the basis of application language. I mean "rtl" and ltr". I have tried with the following but unable to see any difference. Can you guide me in this regard.
if (Page.IsPostBack == false) { RadData.Attributes.Add("dir", Activity.getLanguageDirection()); } <telerik:RadToolBar ID="RadToolBar1" Runat="server" Width="100%" Height="100%" Skin="Forest"> <Items> <telerik:RadToolBarButton Width="90%" Text="Button1" runat="server"> <ItemTemplate> <asp:ImageButton ID="btnoweb" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture3.png" /> <asp:ImageButton ID="btnCalender" Height="50" Width="50" runat="server" OnClick="btnCalender_Click" ImageUrl="~/images/CalenderView.png" /> <asp:ImageButton ID="btnAttach" Height="50" Width="50" runat="server" ImageUrl="~/images/Attach.png"/> <asp:Menu ID="mnuMenu" Height="50" Width="50" runat="server" ></asp:Menu> <asp:ImageButton ID="imgpose" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture5.png"/> <asp:TextBox ID="txtsearch" Width="650px" Height="40px" runat="server" ></asp:TextBox> <asp:ImageButton ID="ImageButton1" Height="50" Width="50" runat="server" ImageUrl="~/images/Cancel.png" /> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar>public class GridColBound : GridBoundColumnprotected override void SetupFilterControls(TableCell cell) { base.SetupFilterControls(cell); cell.Controls.RemoveAt(0); Label _lbl = new Label(); _lbl.ID = "FilterLabel" + this.DataField; _lbl.Visible = true; _lbl.Text = "Filter"; _lbl.BackColor = System.Drawing.Color.Green; _lbl.ForeColor = System.Drawing.Color.White; _lbl.BorderColor = System.Drawing.Color.Black; _lbl.BorderStyle = BorderStyle.Solid; cell.Controls.AddAt(0, _lbl); cell.Controls.RemoveAt(1); }
... window.blockConfirm = function (text, mozEvent, oWidth, oHeight, callerObj, oTitle){ var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually //Cancel the event ev.cancelBubble = true; ev.returnValue = false; if (ev.stopPropagation) ev.stopPropagation(); if (ev.preventDefault) ev.preventDefault(); //Determine who is the caller var callerObj = ev.srcElement ? ev.srcElement : ev.target; //Call the original radconfirm and pass it all necessary parameters if (callerObj) { //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again. var callBackFn = function (arg) { if (arg) { callerObj["onclick"] = ""; if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz else if (callerObj.tagName == "A") //We assume it is a link button! { try { eval(callerObj.href) } catch (e) { } } } } radconfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle); } return false;}function RadContextMenu_ItemClicking(sender, eventArgs){ var item = eventArgs.get_item(); if (item.get_text().substring(0, 7).toLowerCase() == "publish") { //display radconfirm popup return blockConfirm('message', eventArgs, 340, 100, '', 'Confirm Publish'); } if (item.get_text().substring(0, 7).toLowerCase() == "version" || item.get_text().substring(0, 7).toLowerCase() == "publish") { eventArgs.set_cancel(true); } else { //disable all context menus <asp:Literal ID="LiteralDisableContextMenu" runat="server" /> }}return blockConfirm('Are you sure you want to delete this item?', event, 340, 100, '', 'Confirm Delete?');Hi all,
I am using the below code to populate a DateInput when the user edits a record in a RadGrid so the Edit form is pre-populated with correct data. All is well until I try to Add a new record, because the ExpireDate variable is now NULL.
The Exception is:
An exception of type 'System.InvalidCastException' occurred in App_Web_xngshb9r.dll but was not handled in user code
Additional information: Specified cast is not valid.
And the code block (client-side):
<
telerik:RadDatePicker ID="RDP" runat="server" MinDate="01/01/1900" MaxDate="12/31/2100"
SelectedDate='<%# Eval("ExpireDate") %>' TabIndex="2" OnSelectedDateChanged="RDP_SelectedDateChanged">
</telerik:RadDatePicker>
Any help would be greatly appreciated!
<
button onclick = "radconfirm('Are you sure?', confirmCallBackFn); return false;"> show CONFIRM BOX</button>
But I would rather be able to do it similar to a .Show() method from Forms controls.