Hi,
As per the file, I want to show calculated 4_Average_Assigned % based on two column value i.e- 1_Demand / 2_Assigned.Please help me to implement this.
Thanks,
Sagar
I need to prevent some users from modifying some recurring events but allow them to edit others based on role permissions. I've built a function that gets called on "Edit" event but the problem is "Edit" event gets called when editing and also adding an event. I need to allow adding events but prevent editing/modifying existing recurring events. Currently scheduler_edit function prevents both editing and adding events.
Here is my stripped down scheduler_edit function:
function scheduler_edit(e) {
if (!e.event.CanBeEdited) {
e.preventDefault();
}
}
Hi,
RadGrid throws an 'Index was outside the bounds of the array' error when using ColumnGroups and having datasource=nothing.
Version 2016.1.113.45
Example throwing error (dont bind grid to datasource):
<
telerik:RadGrid
runat
=
"server"
ID
=
"rg"
>
<
MasterTableView
>
<
ColumnGroups
>
<
telerik:GridColumnGroup
HeaderText
=
"Invoice"
Name
=
"Invoice"
></
telerik:GridColumnGroup
>
</
ColumnGroups
>
<
Columns
>
<
telerik:GridBoundColumn
ColumnGroupName
=
"Invoice"
HeaderText
=
"Test"
DataField
=
"Test"
></
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Working:
<
telerik:RadGrid
runat
=
"server"
ID
=
"rg"
>
<
MasterTableView
>
<
ColumnGroups
>
</
ColumnGroups
>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"Test"
DataField
=
"Test"
></
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi All,
how can i control the background color for each TileList from XML File...
Something like DataTitleTextField="Text" ... DataBGColorField="BGColor" ?
Thanks
I am updating a project to the latest version of Telerik UI for AJAX, and have noticed that if Idouble click on empty space below my text in the editor I get a javascript error "Unable to get property 'nextSibling' of undefined or null reference", relating to the following segment of code:
var h=function(o){while(!o.nextSibling){o=o.parentNode;
}return o.nextSibling;
};
As I have been unable to determine the source of this problem I am hoping you can help me out.
========ASPX======== |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head runat="server"> |
<title></title> |
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> |
<script type="text/javascript" language="javascript"> |
function ValidateEditor() |
{ alert($find("<%=editor1.ClientID %>").get_text().length); |
alert($find("<%=editor1.ClientID %>").get_html().length); |
alert($find("<%=editor1.ClientID %>").get_html(true).length); |
} |
function ValidateEditor1(sender, args) |
{ |
alert("args.Value.length = "+args.Value.length); |
} |
</script> |
</telerik:RadScriptBlock> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<asp:CustomValidator ID="val1" Display="None" runat="server" ClientValidationFunction="ValidateEditor" |
ValidationGroup="group1"></asp:CustomValidator> |
<asp:CustomValidator ID="CustomValidator1" Display="None" runat="server" ClientValidationFunction="ValidateEditor1" |
ValidationGroup="group1" ControlToValidate="editor1"></asp:CustomValidator> |
<telerik:RadEditor ID="editor1" runat="server" Width="400" Height="100" |
Skin="Vista" EditModes="Design"> |
<Tools> |
<telerik:EditorToolGroup> |
<telerik:EditorTool Name="Bold" /> |
<telerik:EditorTool Name="Italic" /> |
<telerik:EditorTool Name="Underline" /> |
<telerik:EditorTool Name="InsertOrderedList" /> |
<telerik:EditorTool Name="InsertUnorderedList" /> |
<telerik:EditorTool Name="Indent" /> |
<telerik:EditorTool Name="Outdent" /> |
<telerik:EditorTool Name="JustifyLeft" /> |
<telerik:EditorTool Name="JustifyCenter" /> |
<telerik:EditorTool Name="JustifyRight" /> |
</telerik:EditorToolGroup> |
</Tools> |
</telerik:RadEditor> |
<asp:Button Text="SAVE" ID="button16" OnClick="Save_Click" |
runat="server" ValidationGroup="group1" /> |
</div> |
</form> |
</body> |
========CODE BEHIND======== |
public partial class EditorValidation : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
protected void Save_Click(object sender, EventArgs e) |
{ |
int len = editor1.Content.Length; |
} |
} |
Specifically a RadFilterDropDownEditor, but I will also need date editors as well. I can't find any good documentation explaining how to set something up. My current strategy is based off of the code here: http://docs.telerik.com/devtools/aspnet-ajax/controls/filter/field-editors/programmatic-creation. I have to set the field editor's values with a list, but using the code below, there are no values in the drop down. I have also seen the code here but it is a completely different and unexplained approach, and involving data tables is, in my opinion, bad.
Here is essentially what I have:
<
telerik:RadFilter
runat
=
"server"
ID
=
"rfFilter"
RenderMode
=
"Lightweight"
FilterContainerID
=
"RadGrid1"
ShowApplyButton
=
"False"
ViewStateMode
=
"Enabled"
OnApplyExpressions
=
"rfFilter_ApplyExpressions"
/>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
RadFilterDropDownEditor districtFilter = new RadFilterDropDownEditor();
rfFilter.FieldEditors.Add(districtFilter);
statusFilter.FieldName = "District";
statusFilter.DataType = typeof(string);
var list = new ArrayList(GetDistrictList());
statusFilter.SetEditorValues(list);
}
}